repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the DeletePricingRule operation. /// Deletes the pricing rule that's identified by the input Amazon Resource Name (ARN). /// </summary> public partial class DeletePricingRuleRequest : AmazonBillingConductorRequest { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the pricing rule that you are deleting. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the DeletePricingRule operation. /// </summary> public partial class DeletePricingRuleResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the deleted pricing rule. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
57
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the DisassociateAccounts operation. /// Removes the specified list of account IDs from the given billing group. /// </summary> public partial class DisassociateAccountsRequest : AmazonBillingConductorRequest { private List<string> _accountIds = new List<string>(); private string _arn; /// <summary> /// Gets and sets the property AccountIds. /// <para> /// The array of account IDs to disassociate. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=30)] public List<string> AccountIds { get { return this._accountIds; } set { this._accountIds = value; } } // Check to see if AccountIds property is set internal bool IsSetAccountIds() { return this._accountIds != null && this._accountIds.Count > 0; } /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the billing group that the array of account IDs /// will disassociate from. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the DisassociateAccounts operation. /// </summary> public partial class DisassociateAccountsResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the billing group that the array of account IDs /// is disassociated from. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the DisassociatePricingRules operation. /// Disassociates a list of pricing rules from a pricing plan. /// </summary> public partial class DisassociatePricingRulesRequest : AmazonBillingConductorRequest { private string _arn; private List<string> _pricingRuleArns = new List<string>(); /// <summary> /// Gets and sets the property Arn. /// <para> /// The pricing plan Amazon Resource Name (ARN) to disassociate pricing rules from. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property PricingRuleArns. /// <para> /// A list containing the Amazon Resource Name (ARN) of the pricing rules that will be /// disassociated. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=30)] public List<string> PricingRuleArns { get { return this._pricingRuleArns; } set { this._pricingRuleArns = value; } } // Check to see if PricingRuleArns property is set internal bool IsSetPricingRuleArns() { return this._pricingRuleArns != null && this._pricingRuleArns.Count > 0; } } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the DisassociatePricingRules operation. /// </summary> public partial class DisassociatePricingRulesResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the pricing plan that the pricing rules successfully /// disassociated from. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A resource disassociation result for a percentage custom line item. /// </summary> public partial class DisassociateResourceResponseElement { private string _arn; private AssociateResourceError _error; /// <summary> /// Gets and sets the property Arn. /// <para> /// The resource ARN that was disassociated from the custom line item. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Error. /// <para> /// An <code>AssociateResourceError</code> that's shown if the resource disassociation /// fails. /// </para> /// </summary> public AssociateResourceError Error { get { return this._error; } set { this._error = value; } } // Check to see if Error property is set internal bool IsSetError() { return this._error != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The possible Amazon Web Services Free Tier configurations. /// </summary> public partial class FreeTierConfig { private bool? _activated; /// <summary> /// Gets and sets the property Activated. /// <para> /// Activate or deactivate Amazon Web Services Free Tier application. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Activated { get { return this._activated.GetValueOrDefault(); } set { this._activated = value; } } // Check to see if Activated property is set internal bool IsSetActivated() { return this._activated.HasValue; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// An unexpected error occurred while processing a request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InternalServerException : AmazonBillingConductorException { private int? _retryAfterSeconds; /// <summary> /// Constructs a new InternalServerException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InternalServerException(string message) : base(message) {} /// <summary> /// Construct instance of InternalServerException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InternalServerException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InternalServerException /// </summary> /// <param name="innerException"></param> public InternalServerException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InternalServerException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InternalServerException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InternalServerException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InternalServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.RetryAfterSeconds = (int)info.GetValue("RetryAfterSeconds", typeof(int)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("RetryAfterSeconds", this.RetryAfterSeconds); } #endif /// <summary> /// Gets and sets the property RetryAfterSeconds. /// <para> /// Number of seconds you can retry after the call. /// </para> /// </summary> public int RetryAfterSeconds { get { return this._retryAfterSeconds.GetValueOrDefault(); } set { this._retryAfterSeconds = value; } } // Check to see if RetryAfterSeconds property is set internal bool IsSetRetryAfterSeconds() { return this._retryAfterSeconds.HasValue; } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The filter on the account ID of the linked account, or any of the following: /// /// /// <para> /// <code>MONITORED</code>: linked accounts that are associated to billing groups. /// </para> /// /// <para> /// <code>UNMONITORED</code>: linked accounts that are not associated to billing groups. /// </para> /// /// <para> /// <code>Billing Group Arn</code>: linked accounts that are associated to the provided /// Billing Group Arn. /// </para> /// </summary> public partial class ListAccountAssociationsFilter { private string _accountId; private List<string> _accountIds = new List<string>(); private string _association; /// <summary> /// Gets and sets the property AccountId. /// <para> /// The Amazon Web Services account ID to filter on. /// </para> /// </summary> public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property AccountIds. /// <para> /// The list of Amazon Web Services IDs to retrieve their associated billing group for /// a given time range. /// </para> /// </summary> [AWSProperty(Min=1, Max=30)] public List<string> AccountIds { get { return this._accountIds; } set { this._accountIds = value; } } // Check to see if AccountIds property is set internal bool IsSetAccountIds() { return this._accountIds != null && this._accountIds.Count > 0; } /// <summary> /// Gets and sets the property Association. /// <para> /// <code>MONITORED</code>: linked accounts that are associated to billing groups. /// </para> /// /// <para> /// <code>UNMONITORED</code>: linked accounts that are not associated to billing groups. /// </para> /// /// <para> /// <code>Billing Group Arn</code>: linked accounts that are associated to the provided /// Billing Group Arn. /// </para> /// </summary> public string Association { get { return this._association; } set { this._association = value; } } // Check to see if Association property is set internal bool IsSetAssociation() { return this._association != null; } } }
120
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListAccountAssociations operation. /// This is a paginated call to list linked accounts that are linked to the payer account /// for the specified time period. If no information is provided, the current billing /// period is used. The response will optionally include the billing group that's associated /// with the linked account. /// </summary> public partial class ListAccountAssociationsRequest : AmazonBillingConductorRequest { private string _billingPeriod; private ListAccountAssociationsFilter _filters; private string _nextToken; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The preferred billing period to get account associations. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property Filters. /// <para> /// The filter on the account ID of the linked account, or any of the following: /// </para> /// /// <para> /// <code>MONITORED</code>: linked accounts that are associated to billing groups. /// </para> /// /// <para> /// <code>UNMONITORED</code>: linked accounts that aren't associated to billing groups. /// </para> /// /// <para> /// <code>Billing Group Arn</code>: linked accounts that are associated to the provided /// billing group Arn. /// </para> /// </summary> public ListAccountAssociationsFilter Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to retrieve accounts. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListAccountAssociations operation. /// </summary> public partial class ListAccountAssociationsResponse : AmazonWebServiceResponse { private List<AccountAssociationsListElement> _linkedAccounts = new List<AccountAssociationsListElement>(); private string _nextToken; /// <summary> /// Gets and sets the property LinkedAccounts. /// <para> /// The list of linked accounts in the payer account. /// </para> /// </summary> public List<AccountAssociationsListElement> LinkedAccounts { get { return this._linkedAccounts; } set { this._linkedAccounts = value; } } // Check to see if LinkedAccounts property is set internal bool IsSetLinkedAccounts() { return this._linkedAccounts != null && this._linkedAccounts.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get accounts. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The filter used to retrieve specific <code>BillingGroupCostReportElements</code>. /// </summary> public partial class ListBillingGroupCostReportsFilter { private List<string> _billingGroupArns = new List<string>(); /// <summary> /// Gets and sets the property BillingGroupArns. /// <para> /// The list of Amazon Resource Names (ARNs) used to filter billing groups to retrieve /// reports. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> BillingGroupArns { get { return this._billingGroupArns; } set { this._billingGroupArns = value; } } // Check to see if BillingGroupArns property is set internal bool IsSetBillingGroupArns() { return this._billingGroupArns != null && this._billingGroupArns.Count > 0; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListBillingGroupCostReports operation. /// A paginated call to retrieve a summary report of actual Amazon Web Services charges /// and the calculated Amazon Web Services charges based on the associated pricing plan /// of a billing group. /// </summary> public partial class ListBillingGroupCostReportsRequest : AmazonBillingConductorRequest { private string _billingPeriod; private ListBillingGroupCostReportsFilter _filters; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The preferred billing period for your report. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property Filters. /// <para> /// A <code>ListBillingGroupCostReportsFilter</code> to specify billing groups to retrieve /// reports from. /// </para> /// </summary> public ListBillingGroupCostReportsFilter Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of reports to retrieve. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get reports. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListBillingGroupCostReports operation. /// </summary> public partial class ListBillingGroupCostReportsResponse : AmazonWebServiceResponse { private List<BillingGroupCostReportElement> _billingGroupCostReports = new List<BillingGroupCostReportElement>(); private string _nextToken; /// <summary> /// Gets and sets the property BillingGroupCostReports. /// <para> /// A list of <code>BillingGroupCostReportElement</code> retrieved. /// </para> /// </summary> public List<BillingGroupCostReportElement> BillingGroupCostReports { get { return this._billingGroupCostReports; } set { this._billingGroupCostReports = value; } } // Check to see if BillingGroupCostReports property is set internal bool IsSetBillingGroupCostReports() { return this._billingGroupCostReports != null && this._billingGroupCostReports.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get reports. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The filter that specifies the billing groups and pricing plans to retrieve billing /// group information. /// </summary> public partial class ListBillingGroupsFilter { private List<string> _arns = new List<string>(); private string _pricingPlan; private List<string> _statuses = new List<string>(); /// <summary> /// Gets and sets the property Arns. /// <para> /// The list of billing group Amazon Resource Names (ARNs) to retrieve information. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> Arns { get { return this._arns; } set { this._arns = value; } } // Check to see if Arns property is set internal bool IsSetArns() { return this._arns != null && this._arns.Count > 0; } /// <summary> /// Gets and sets the property PricingPlan. /// <para> /// The pricing plan Amazon Resource Names (ARNs) to retrieve information. /// </para> /// </summary> public string PricingPlan { get { return this._pricingPlan; } set { this._pricingPlan = value; } } // Check to see if PricingPlan property is set internal bool IsSetPricingPlan() { return this._pricingPlan != null; } /// <summary> /// Gets and sets the property Statuses. /// <para> /// A list of billing groups to retrieve their current status for a specific time range /// /// </para> /// </summary> [AWSProperty(Min=1, Max=2)] public List<string> Statuses { get { return this._statuses; } set { this._statuses = value; } } // Check to see if Statuses property is set internal bool IsSetStatuses() { return this._statuses != null && this._statuses.Count > 0; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListBillingGroups operation. /// A paginated call to retrieve a list of billing groups for the given billing period. /// If you don't provide a billing group, the current billing period is used. /// </summary> public partial class ListBillingGroupsRequest : AmazonBillingConductorRequest { private string _billingPeriod; private ListBillingGroupsFilter _filters; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The preferred billing period to get billing groups. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property Filters. /// <para> /// A <code>ListBillingGroupsFilter</code> that specifies the billing group and pricing /// plan to retrieve billing group information. /// </para> /// </summary> public ListBillingGroupsFilter Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of billing groups to retrieve. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get billing groups. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListBillingGroups operation. /// </summary> public partial class ListBillingGroupsResponse : AmazonWebServiceResponse { private List<BillingGroupListElement> _billingGroups = new List<BillingGroupListElement>(); private string _nextToken; /// <summary> /// Gets and sets the property BillingGroups. /// <para> /// A list of <code>BillingGroupListElement</code> retrieved. /// </para> /// </summary> public List<BillingGroupListElement> BillingGroups { get { return this._billingGroups; } set { this._billingGroups = value; } } // Check to see if BillingGroups property is set internal bool IsSetBillingGroups() { return this._billingGroups != null && this._billingGroups.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get billing groups. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
76
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of the charge details of a custom line item. /// </summary> public partial class ListCustomLineItemChargeDetails { private ListCustomLineItemFlatChargeDetails _flat; private ListCustomLineItemPercentageChargeDetails _percentage; private CustomLineItemType _type; /// <summary> /// Gets and sets the property Flat. /// <para> /// A <code>ListCustomLineItemFlatChargeDetails</code> that describes the charge details /// of a flat custom line item. /// </para> /// </summary> public ListCustomLineItemFlatChargeDetails Flat { get { return this._flat; } set { this._flat = value; } } // Check to see if Flat property is set internal bool IsSetFlat() { return this._flat != null; } /// <summary> /// Gets and sets the property Percentage. /// <para> /// A <code>ListCustomLineItemPercentageChargeDetails</code> that describes the charge /// details of a percentage custom line item. /// </para> /// </summary> public ListCustomLineItemPercentageChargeDetails Percentage { get { return this._percentage; } set { this._percentage = value; } } // Check to see if Percentage property is set internal bool IsSetPercentage() { return this._percentage != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of the custom line item that indicates whether the charge is a <code>fee</code> /// or <code>credit</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public CustomLineItemType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of the charge details that are associated with a flat custom line /// item. /// </summary> public partial class ListCustomLineItemFlatChargeDetails { private double? _chargeValue; /// <summary> /// Gets and sets the property ChargeValue. /// <para> /// The custom line item's fixed charge value in USD. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=1000000)] public double ChargeValue { get { return this._chargeValue.GetValueOrDefault(); } set { this._chargeValue = value; } } // Check to see if ChargeValue property is set internal bool IsSetChargeValue() { return this._chargeValue.HasValue; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of the charge details that are associated with a percentage custom /// line item. /// </summary> public partial class ListCustomLineItemPercentageChargeDetails { private double? _percentageValue; /// <summary> /// Gets and sets the property PercentageValue. /// <para> /// The custom line item's percentage value. This will be multiplied against the combined /// value of its associated resources to determine its charge value. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=10000)] public double PercentageValue { get { return this._percentageValue.GetValueOrDefault(); } set { this._percentageValue = value; } } // Check to see if PercentageValue property is set internal bool IsSetPercentageValue() { return this._percentageValue.HasValue; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A filter that specifies the custom line items and billing groups to retrieve FFLI /// information. /// </summary> public partial class ListCustomLineItemsFilter { private List<string> _arns = new List<string>(); private List<string> _billingGroups = new List<string>(); private List<string> _names = new List<string>(); /// <summary> /// Gets and sets the property Arns. /// <para> /// A list of custom line item ARNs to retrieve information. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> Arns { get { return this._arns; } set { this._arns = value; } } // Check to see if Arns property is set internal bool IsSetArns() { return this._arns != null && this._arns.Count > 0; } /// <summary> /// Gets and sets the property BillingGroups. /// <para> /// The billing group Amazon Resource Names (ARNs) to retrieve information. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> BillingGroups { get { return this._billingGroups; } set { this._billingGroups = value; } } // Check to see if BillingGroups property is set internal bool IsSetBillingGroups() { return this._billingGroups != null && this._billingGroups.Count > 0; } /// <summary> /// Gets and sets the property Names. /// <para> /// A list of custom line items to retrieve information. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> Names { get { return this._names; } set { this._names = value; } } // Check to see if Names property is set internal bool IsSetNames() { return this._names != null && this._names.Count > 0; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListCustomLineItems operation. /// A paginated call to get a list of all custom line items (FFLIs) for the given billing /// period. If you don't provide a billing period, the current billing period is used. /// </summary> public partial class ListCustomLineItemsRequest : AmazonBillingConductorRequest { private string _billingPeriod; private ListCustomLineItemsFilter _filters; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The preferred billing period to get custom line items (FFLIs). /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property Filters. /// <para> /// A <code>ListCustomLineItemsFilter</code> that specifies the custom line item names /// and/or billing group Amazon Resource Names (ARNs) to retrieve FFLI information. /// </para> /// </summary> public ListCustomLineItemsFilter Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of billing groups to retrieve. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get custom line items (FFLIs). /// /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListCustomLineItems operation. /// </summary> public partial class ListCustomLineItemsResponse : AmazonWebServiceResponse { private List<CustomLineItemListElement> _customLineItems = new List<CustomLineItemListElement>(); private string _nextToken; /// <summary> /// Gets and sets the property CustomLineItems. /// <para> /// A list of <code>FreeFormLineItemListElements</code> received. /// </para> /// </summary> public List<CustomLineItemListElement> CustomLineItems { get { return this._customLineItems; } set { this._customLineItems = value; } } // Check to see if CustomLineItems property is set internal bool IsSetCustomLineItems() { return this._customLineItems != null && this._customLineItems.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get custom line items (FFLIs). /// /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A billing period filter that specifies the custom line item versions to retrieve. /// </summary> public partial class ListCustomLineItemVersionsBillingPeriodRangeFilter { private string _endBillingPeriod; private string _startBillingPeriod; /// <summary> /// Gets and sets the property EndBillingPeriod. /// <para> /// The exclusive end billing period that defines a billing period range where a custom /// line item version is applied. /// </para> /// </summary> public string EndBillingPeriod { get { return this._endBillingPeriod; } set { this._endBillingPeriod = value; } } // Check to see if EndBillingPeriod property is set internal bool IsSetEndBillingPeriod() { return this._endBillingPeriod != null; } /// <summary> /// Gets and sets the property StartBillingPeriod. /// <para> /// The inclusive start billing period that defines a billing period range where a custom /// line item version is applied. /// </para> /// </summary> public string StartBillingPeriod { get { return this._startBillingPeriod; } set { this._startBillingPeriod = value; } } // Check to see if StartBillingPeriod property is set internal bool IsSetStartBillingPeriod() { return this._startBillingPeriod != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A filter that specifies the billing period range where the custom line item versions /// reside. /// </summary> public partial class ListCustomLineItemVersionsFilter { private ListCustomLineItemVersionsBillingPeriodRangeFilter _billingPeriodRange; /// <summary> /// Gets and sets the property BillingPeriodRange. /// <para> /// The billing period range in which the custom line item version is applied. /// </para> /// </summary> public ListCustomLineItemVersionsBillingPeriodRangeFilter BillingPeriodRange { get { return this._billingPeriodRange; } set { this._billingPeriodRange = value; } } // Check to see if BillingPeriodRange property is set internal bool IsSetBillingPeriodRange() { return this._billingPeriodRange != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListCustomLineItemVersions operation. /// A paginated call to get a list of all custom line item versions. /// </summary> public partial class ListCustomLineItemVersionsRequest : AmazonBillingConductorRequest { private string _arn; private ListCustomLineItemVersionsFilter _filters; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) for the custom line item. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Filters. /// <para> /// A <code>ListCustomLineItemVersionsFilter</code> that specifies the billing period /// range in which the custom line item versions are applied. /// </para> /// </summary> public ListCustomLineItemVersionsFilter Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of custom line item versions to retrieve. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to retrieve custom line item /// versions. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListCustomLineItemVersions operation. /// </summary> public partial class ListCustomLineItemVersionsResponse : AmazonWebServiceResponse { private List<CustomLineItemVersionListElement> _customLineItemVersions = new List<CustomLineItemVersionListElement>(); private string _nextToken; /// <summary> /// Gets and sets the property CustomLineItemVersions. /// <para> /// A list of <code>CustomLineItemVersionListElements</code> that are received. /// </para> /// </summary> public List<CustomLineItemVersionListElement> CustomLineItemVersions { get { return this._customLineItemVersions; } set { this._customLineItemVersions = value; } } // Check to see if CustomLineItemVersions property is set internal bool IsSetCustomLineItemVersions() { return this._customLineItemVersions != null && this._customLineItemVersions.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to retrieve custom line item /// versions. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
77
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListPricingPlansAssociatedWithPricingRule operation. /// A list of the pricing plans that are associated with a pricing rule. /// </summary> public partial class ListPricingPlansAssociatedWithPricingRuleRequest : AmazonBillingConductorRequest { private string _billingPeriod; private int? _maxResults; private string _nextToken; private string _pricingRuleArn; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The pricing plan billing period for which associations will be listed. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The optional maximum number of pricing rule associations to retrieve. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The optional pagination token returned by a previous call. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property PricingRuleArn. /// <para> /// The pricing rule Amazon Resource Name (ARN) for which associations will be listed. /// /// </para> /// </summary> [AWSProperty(Required=true)] public string PricingRuleArn { get { return this._pricingRuleArn; } set { this._pricingRuleArn = value; } } // Check to see if PricingRuleArn property is set internal bool IsSetPricingRuleArn() { return this._pricingRuleArn != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListPricingPlansAssociatedWithPricingRule operation. /// </summary> public partial class ListPricingPlansAssociatedWithPricingRuleResponse : AmazonWebServiceResponse { private string _billingPeriod; private string _nextToken; private List<string> _pricingPlanArns = new List<string>(); private string _pricingRuleArn; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The pricing plan billing period for which associations will be listed. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token to be used on subsequent calls. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property PricingPlanArns. /// <para> /// The list containing pricing plans that are associated with the requested pricing /// rule. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> PricingPlanArns { get { return this._pricingPlanArns; } set { this._pricingPlanArns = value; } } // Check to see if PricingPlanArns property is set internal bool IsSetPricingPlanArns() { return this._pricingPlanArns != null && this._pricingPlanArns.Count > 0; } /// <summary> /// Gets and sets the property PricingRuleArn. /// <para> /// The pricing rule Amazon Resource Name (ARN) for which associations will be listed. /// /// </para> /// </summary> public string PricingRuleArn { get { return this._pricingRuleArn; } set { this._pricingRuleArn = value; } } // Check to see if PricingRuleArn property is set internal bool IsSetPricingRuleArn() { return this._pricingRuleArn != null; } } }
117
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The filter that specifies the Amazon Resource Names (ARNs) of pricing plans, to retrieve /// pricing plan information. /// </summary> public partial class ListPricingPlansFilter { private List<string> _arns = new List<string>(); /// <summary> /// Gets and sets the property Arns. /// <para> /// A list of pricing plan Amazon Resource Names (ARNs) to retrieve information. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> Arns { get { return this._arns; } set { this._arns = value; } } // Check to see if Arns property is set internal bool IsSetArns() { return this._arns != null && this._arns.Count > 0; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListPricingPlans operation. /// A paginated call to get pricing plans for the given billing period. If you don't provide /// a billing period, the current billing period is used. /// </summary> public partial class ListPricingPlansRequest : AmazonBillingConductorRequest { private string _billingPeriod; private ListPricingPlansFilter _filters; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The preferred billing period to get pricing plan. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property Filters. /// <para> /// A <code>ListPricingPlansFilter</code> that specifies the Amazon Resource Name (ARNs) /// of pricing plans to retrieve pricing plans information. /// </para> /// </summary> public ListPricingPlansFilter Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of pricing plans to retrieve. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent call to get pricing plans. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListPricingPlans operation. /// </summary> public partial class ListPricingPlansResponse : AmazonWebServiceResponse { private string _billingPeriod; private string _nextToken; private List<PricingPlanListElement> _pricingPlans = new List<PricingPlanListElement>(); /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The billing period for which the described pricing plans are applicable. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get pricing plans. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property PricingPlans. /// <para> /// A list of <code>PricingPlanListElement</code> retrieved. /// </para> /// </summary> public List<PricingPlanListElement> PricingPlans { get { return this._pricingPlans; } set { this._pricingPlans = value; } } // Check to see if PricingPlans property is set internal bool IsSetPricingPlans() { return this._pricingPlans != null && this._pricingPlans.Count > 0; } } }
95
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListPricingRulesAssociatedToPricingPlan operation. /// Lists the pricing rules that are associated with a pricing plan. /// </summary> public partial class ListPricingRulesAssociatedToPricingPlanRequest : AmazonBillingConductorRequest { private string _billingPeriod; private int? _maxResults; private string _nextToken; private string _pricingPlanArn; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The billing period for which the pricing rule associations are to be listed. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The optional maximum number of pricing rule associations to retrieve. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The optional pagination token returned by a previous call. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property PricingPlanArn. /// <para> /// The Amazon Resource Name (ARN) of the pricing plan for which associations are to /// be listed. /// </para> /// </summary> [AWSProperty(Required=true)] public string PricingPlanArn { get { return this._pricingPlanArn; } set { this._pricingPlanArn = value; } } // Check to see if PricingPlanArn property is set internal bool IsSetPricingPlanArn() { return this._pricingPlanArn != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListPricingRulesAssociatedToPricingPlan operation. /// </summary> public partial class ListPricingRulesAssociatedToPricingPlanResponse : AmazonWebServiceResponse { private string _billingPeriod; private string _nextToken; private string _pricingPlanArn; private List<string> _pricingRuleArns = new List<string>(); /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The billing period for which the pricing rule associations are listed. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token to be used on subsequent calls. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property PricingPlanArn. /// <para> /// The Amazon Resource Name (ARN) of the pricing plan for which associations are listed. /// </para> /// </summary> public string PricingPlanArn { get { return this._pricingPlanArn; } set { this._pricingPlanArn = value; } } // Check to see if PricingPlanArn property is set internal bool IsSetPricingPlanArn() { return this._pricingPlanArn != null; } /// <summary> /// Gets and sets the property PricingRuleArns. /// <para> /// A list containing pricing rules that are associated with the requested pricing plan. /// /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> PricingRuleArns { get { return this._pricingRuleArns; } set { this._pricingRuleArns = value; } } // Check to see if PricingRuleArns property is set internal bool IsSetPricingRuleArns() { return this._pricingRuleArns != null && this._pricingRuleArns.Count > 0; } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The filter that specifies criteria that the pricing rules returned by the <code>ListPricingRules</code> /// API will adhere to. /// </summary> public partial class ListPricingRulesFilter { private List<string> _arns = new List<string>(); /// <summary> /// Gets and sets the property Arns. /// <para> /// A list containing the pricing rule Amazon Resource Names (ARNs) to include in the /// API response. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> Arns { get { return this._arns; } set { this._arns = value; } } // Check to see if Arns property is set internal bool IsSetArns() { return this._arns != null && this._arns.Count > 0; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListPricingRules operation. /// Describes a pricing rule that can be associated to a pricing plan, or set of pricing /// plans. /// </summary> public partial class ListPricingRulesRequest : AmazonBillingConductorRequest { private string _billingPeriod; private ListPricingRulesFilter _filters; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The preferred billing period to get the pricing plan. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property Filters. /// <para> /// A <code>DescribePricingRuleFilter</code> that specifies the Amazon Resource Name /// (ARNs) of pricing rules to retrieve pricing rules information. /// </para> /// </summary> public ListPricingRulesFilter Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of pricing rules to retrieve. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent call to get pricing rules. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListPricingRules operation. /// </summary> public partial class ListPricingRulesResponse : AmazonWebServiceResponse { private string _billingPeriod; private string _nextToken; private List<PricingRuleListElement> _pricingRules = new List<PricingRuleListElement>(); /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The billing period for which the described pricing rules are applicable. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used on subsequent calls to get pricing rules. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property PricingRules. /// <para> /// A list containing the described pricing rules. /// </para> /// </summary> public List<PricingRuleListElement> PricingRules { get { return this._pricingRules; } set { this._pricingRules = value; } } // Check to see if PricingRules property is set internal bool IsSetPricingRules() { return this._pricingRules != null && this._pricingRules.Count > 0; } } }
95
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A filter that specifies the type of resource associations that should be retrieved /// for a custom line item. /// </summary> public partial class ListResourcesAssociatedToCustomLineItemFilter { private CustomLineItemRelationship _relationship; /// <summary> /// Gets and sets the property Relationship. /// <para> /// The type of relationship between the custom line item and the associated resource. /// /// </para> /// </summary> public CustomLineItemRelationship Relationship { get { return this._relationship; } set { this._relationship = value; } } // Check to see if Relationship property is set internal bool IsSetRelationship() { return this._relationship != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListResourcesAssociatedToCustomLineItem operation. /// List the resources that are associated to a custom line item. /// </summary> public partial class ListResourcesAssociatedToCustomLineItemRequest : AmazonBillingConductorRequest { private string _arn; private string _billingPeriod; private ListResourcesAssociatedToCustomLineItemFilter _filters; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN of the custom line item for which the resource associations will be listed. /// /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property BillingPeriod. /// <para> /// The billing period for which the resource associations will be listed. /// </para> /// </summary> public string BillingPeriod { get { return this._billingPeriod; } set { this._billingPeriod = value; } } // Check to see if BillingPeriod property is set internal bool IsSetBillingPeriod() { return this._billingPeriod != null; } /// <summary> /// Gets and sets the property Filters. /// <para> /// (Optional) A <code>ListResourcesAssociatedToCustomLineItemFilter</code> that can /// specify the types of resources that should be retrieved. /// </para> /// </summary> public ListResourcesAssociatedToCustomLineItemFilter Filters { get { return this._filters; } set { this._filters = value; } } // Check to see if Filters property is set internal bool IsSetFilters() { return this._filters != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// (Optional) The maximum number of resource associations to be retrieved. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// (Optional) The pagination token that's returned by a previous request. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
138
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListResourcesAssociatedToCustomLineItem operation. /// </summary> public partial class ListResourcesAssociatedToCustomLineItemResponse : AmazonWebServiceResponse { private string _arn; private List<ListResourcesAssociatedToCustomLineItemResponseElement> _associatedResources = new List<ListResourcesAssociatedToCustomLineItemResponseElement>(); private string _nextToken; /// <summary> /// Gets and sets the property Arn. /// <para> /// The custom line item ARN for which the resource associations are listed. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property AssociatedResources. /// <para> /// A list of <code>ListResourcesAssociatedToCustomLineItemResponseElement</code> for /// each resource association retrieved. /// </para> /// </summary> public List<ListResourcesAssociatedToCustomLineItemResponseElement> AssociatedResources { get { return this._associatedResources; } set { this._associatedResources = value; } } // Check to see if AssociatedResources property is set internal bool IsSetAssociatedResources() { return this._associatedResources != null && this._associatedResources.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token to be used in subsequent requests to retrieve additional results. /// /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of a resource association for a custom line item. /// </summary> public partial class ListResourcesAssociatedToCustomLineItemResponseElement { private string _arn; private string _endBillingPeriod; private CustomLineItemRelationship _relationship; /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN of the associated resource. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property EndBillingPeriod. /// <para> /// The end billing period of the associated resource. /// </para> /// </summary> public string EndBillingPeriod { get { return this._endBillingPeriod; } set { this._endBillingPeriod = value; } } // Check to see if EndBillingPeriod property is set internal bool IsSetEndBillingPeriod() { return this._endBillingPeriod != null; } /// <summary> /// Gets and sets the property Relationship. /// <para> /// The type of relationship between the custom line item and the associated resource. /// /// </para> /// </summary> public CustomLineItemRelationship Relationship { get { return this._relationship; } set { this._relationship = value; } } // Check to see if Relationship property is set internal bool IsSetRelationship() { return this._relationship != null; } } }
96
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the ListTagsForResource operation. /// A list the tags for a resource. /// </summary> public partial class ListTagsForResourceRequest : AmazonBillingConductorRequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) that identifies the resource to list the tags. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=100)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the ListTagsForResource operation. /// </summary> public partial class ListTagsForResourceResponse : AmazonWebServiceResponse { private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// The tags for the resource. /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of a pricing plan. /// </summary> public partial class PricingPlanListElement { private string _arn; private long? _creationTime; private string _description; private long? _lastModifiedTime; private string _name; private long? _size; /// <summary> /// Gets and sets the property Arn. /// <para> /// The pricing plan Amazon Resource Names (ARN). This can be used to uniquely identify /// a pricing plan. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The time when the pricing plan was created. /// </para> /// </summary> public long CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The pricing plan description. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time when the pricing plan was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of a pricing plan. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Size. /// <para> /// The pricing rules count that's currently associated with this pricing plan list element. /// /// </para> /// </summary> [AWSProperty(Min=1)] public long Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } } }
157
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of a pricing rule. /// </summary> public partial class PricingRuleListElement { private string _arn; private long? _associatedPricingPlanCount; private string _billingEntity; private long? _creationTime; private string _description; private long? _lastModifiedTime; private double? _modifierPercentage; private string _name; private string _operation; private PricingRuleScope _scope; private string _service; private Tiering _tiering; private PricingRuleType _type; private string _usageType; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) used to uniquely identify a pricing rule. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property AssociatedPricingPlanCount. /// <para> /// The pricing plans count that this pricing rule is associated with. /// </para> /// </summary> [AWSProperty(Min=0)] public long AssociatedPricingPlanCount { get { return this._associatedPricingPlanCount.GetValueOrDefault(); } set { this._associatedPricingPlanCount = value; } } // Check to see if AssociatedPricingPlanCount property is set internal bool IsSetAssociatedPricingPlanCount() { return this._associatedPricingPlanCount.HasValue; } /// <summary> /// Gets and sets the property BillingEntity. /// <para> /// The seller of services provided by Amazon Web Services, their affiliates, or third-party /// providers selling services via Amazon Web Services Marketplace. /// </para> /// </summary> public string BillingEntity { get { return this._billingEntity; } set { this._billingEntity = value; } } // Check to see if BillingEntity property is set internal bool IsSetBillingEntity() { return this._billingEntity != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The time when the pricing rule was created. /// </para> /// </summary> public long CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The pricing rule description. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time when the pricing rule was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property ModifierPercentage. /// <para> /// A percentage modifier applied on the public pricing rates. /// </para> /// </summary> [AWSProperty(Min=0)] public double ModifierPercentage { get { return this._modifierPercentage.GetValueOrDefault(); } set { this._modifierPercentage = value; } } // Check to see if ModifierPercentage property is set internal bool IsSetModifierPercentage() { return this._modifierPercentage.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of a pricing rule. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Operation. /// <para> /// Operation is the specific Amazon Web Services action covered by this line item. This /// describes the specific usage of the line item. /// </para> /// /// <para> /// If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates /// which operation the <code>PricingRule</code> is modifying. For example, a value of /// <code>RunInstances:0202</code> indicates the operation of running an Amazon EC2 instance. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string Operation { get { return this._operation; } set { this._operation = value; } } // Check to see if Operation property is set internal bool IsSetOperation() { return this._operation != null; } /// <summary> /// Gets and sets the property Scope. /// <para> /// The scope of pricing rule that indicates if it is globally applicable, or if it is /// service-specific. /// </para> /// </summary> public PricingRuleScope Scope { get { return this._scope; } set { this._scope = value; } } // Check to see if Scope property is set internal bool IsSetScope() { return this._scope != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// If the <code>Scope</code> attribute is <code>SERVICE</code>, this attribute indicates /// which service the <code>PricingRule</code> is applicable for. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != null; } /// <summary> /// Gets and sets the property Tiering. /// <para> /// The set of tiering configurations for the pricing rule. /// </para> /// </summary> public Tiering Tiering { get { return this._tiering; } set { this._tiering = value; } } // Check to see if Tiering property is set internal bool IsSetTiering() { return this._tiering != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of pricing rule. /// </para> /// </summary> public PricingRuleType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property UsageType. /// <para> /// Usage type is the unit that each service uses to measure the usage of a specific /// type of resource. /// </para> /// /// <para> /// If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates /// which usage type the <code>PricingRule</code> is modifying. For example, <code>USW2-BoxUsage:m2.2xlarge</code> /// describes an<code> M2 High Memory Double Extra Large</code> instance in the US West /// (Oregon) Region. <pre><code>&lt;/p&gt; </code></pre> /// </summary> [AWSProperty(Min=1, Max=256)] public string UsageType { get { return this._usageType; } set { this._usageType = value; } } // Check to see if UsageType property is set internal bool IsSetUsageType() { return this._usageType != null; } } }
328
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The request references a resource that doesn't exist. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonBillingConductorException { private string _resourceId; private string _resourceType; /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.ResourceId = (string)info.GetValue("ResourceId", typeof(string)); this.ResourceType = (string)info.GetValue("ResourceType", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("ResourceId", this.ResourceId); info.AddValue("ResourceType", this.ResourceType); } #endif /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Resource identifier that was not found. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property ResourceType. /// <para> /// Resource type that was not found. /// </para> /// </summary> [AWSProperty(Required=true)] public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } } }
168
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The request would cause a service limit to exceed. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceLimitExceededException : AmazonBillingConductorException { private string _limitCode; private string _resourceId; private string _resourceType; private string _serviceCode; /// <summary> /// Constructs a new ServiceLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceLimitExceededException /// </summary> /// <param name="innerException"></param> public ServiceLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceLimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceLimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.LimitCode = (string)info.GetValue("LimitCode", typeof(string)); this.ResourceId = (string)info.GetValue("ResourceId", typeof(string)); this.ResourceType = (string)info.GetValue("ResourceType", typeof(string)); this.ServiceCode = (string)info.GetValue("ServiceCode", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("LimitCode", this.LimitCode); info.AddValue("ResourceId", this.ResourceId); info.AddValue("ResourceType", this.ResourceType); info.AddValue("ServiceCode", this.ServiceCode); } #endif /// <summary> /// Gets and sets the property LimitCode. /// <para> /// The unique code identifier of the service limit that is being exceeded. /// </para> /// </summary> [AWSProperty(Required=true)] public string LimitCode { get { return this._limitCode; } set { this._limitCode = value; } } // Check to see if LimitCode property is set internal bool IsSetLimitCode() { return this._limitCode != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// Identifier of the resource affected. /// </para> /// </summary> public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property ResourceType. /// <para> /// Type of the resource affected. /// </para> /// </summary> public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// <summary> /// Gets and sets the property ServiceCode. /// <para> /// The unique code for the service of the limit that is being exceeded. /// </para> /// </summary> [AWSProperty(Required=true)] public string ServiceCode { get { return this._serviceCode; } set { this._serviceCode = value; } } // Check to see if ServiceCode property is set internal bool IsSetServiceCode() { return this._serviceCode != null; } } }
210
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// Associates the specified tags to a resource with the specified <code>resourceArn</code>. /// If existing tags on a resource are not specified in the request parameters, they are /// not changed. /// </summary> public partial class TagResourceRequest : AmazonBillingConductorRequest { private string _resourceArn; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the resource to which to add tags. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=100)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The tags to add to the resource as a list of key-value pairs. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=200)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
81
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the TagResource operation. /// </summary> public partial class TagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The request was denied due to request throttling. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonBillingConductorException { private int? _retryAfterSeconds; /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottlingException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.RetryAfterSeconds = (int)info.GetValue("RetryAfterSeconds", typeof(int)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("RetryAfterSeconds", this.RetryAfterSeconds); } #endif /// <summary> /// Gets and sets the property RetryAfterSeconds. /// <para> /// Number of seconds you can safely retry after the call. /// </para> /// </summary> public int RetryAfterSeconds { get { return this._retryAfterSeconds.GetValueOrDefault(); } set { this._retryAfterSeconds = value; } } // Check to see if RetryAfterSeconds property is set internal bool IsSetRetryAfterSeconds() { return this._retryAfterSeconds.HasValue; } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The set of tiering configurations for the pricing rule. /// </summary> public partial class Tiering { private FreeTierConfig _freeTier; /// <summary> /// Gets and sets the property FreeTier. /// <para> /// The possible Amazon Web Services Free Tier configurations. /// </para> /// </summary> [AWSProperty(Required=true)] public FreeTierConfig FreeTier { get { return this._freeTier; } set { this._freeTier = value; } } // Check to see if FreeTier property is set internal bool IsSetFreeTier() { return this._freeTier != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the UntagResource operation. /// Deletes specified tags from a resource. /// </summary> public partial class UntagResourceRequest : AmazonBillingConductorRequest { private string _resourceArn; private List<string> _tagKeys = new List<string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the resource to which to delete tags. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=100)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property TagKeys. /// <para> /// The tags to delete from the resource as a list of key-value pairs. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=200)] public List<string> TagKeys { get { return this._tagKeys; } set { this._tagKeys = value; } } // Check to see if TagKeys property is set internal bool IsSetTagKeys() { return this._tagKeys != null && this._tagKeys.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the UntagResource operation. /// </summary> public partial class UntagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the UpdateBillingGroup operation. /// This updates an existing billing group. /// </summary> public partial class UpdateBillingGroupRequest : AmazonBillingConductorRequest { private string _arn; private ComputationPreference _computationPreference; private string _description; private string _name; private BillingGroupStatus _status; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the billing group being updated. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property ComputationPreference. /// <para> /// The preferences and settings that will be used to compute the Amazon Web Services /// charges for a billing group. /// </para> /// </summary> public ComputationPreference ComputationPreference { get { return this._computationPreference; } set { this._computationPreference = value; } } // Check to see if ComputationPreference property is set internal bool IsSetComputationPreference() { return this._computationPreference != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// A description of the billing group. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the billing group. The names must be unique to each billing group. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the billing group. Only one of the valid values can be used. /// </para> /// </summary> public BillingGroupStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
138
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the UpdateBillingGroup operation. /// </summary> public partial class UpdateBillingGroupResponse : AmazonWebServiceResponse { private string _arn; private string _description; private long? _lastModifiedTime; private string _name; private string _pricingPlanArn; private string _primaryAccountId; private long? _size; private BillingGroupStatus _status; private string _statusReason; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the billing group that was updated. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// A description of the billing group. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time when the billing group was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the billing group. The names must be unique to each billing group. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property PricingPlanArn. /// <para> /// The Amazon Resource Name (ARN) of the pricing plan to compute Amazon Web Services /// charges for the billing group. /// </para> /// </summary> public string PricingPlanArn { get { return this._pricingPlanArn; } set { this._pricingPlanArn = value; } } // Check to see if PricingPlanArn property is set internal bool IsSetPricingPlanArn() { return this._pricingPlanArn != null; } /// <summary> /// Gets and sets the property PrimaryAccountId. /// <para> /// The account ID that serves as the main account in a billing group. /// </para> /// </summary> public string PrimaryAccountId { get { return this._primaryAccountId; } set { this._primaryAccountId = value; } } // Check to see if PrimaryAccountId property is set internal bool IsSetPrimaryAccountId() { return this._primaryAccountId != null; } /// <summary> /// Gets and sets the property Size. /// <para> /// The number of accounts in the particular billing group. /// </para> /// </summary> [AWSProperty(Min=0)] public long Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the billing group. Only one of the valid values can be used. /// </para> /// </summary> public BillingGroupStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property StatusReason. /// <para> /// The reason why the billing group is in its current status. /// </para> /// </summary> public string StatusReason { get { return this._statusReason; } set { this._statusReason = value; } } // Check to see if StatusReason property is set internal bool IsSetStatusReason() { return this._statusReason != null; } } }
213
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of the new charge details of a custom line item. This should contain /// only one of <code>Flat</code> or <code>Percentage</code>. /// </summary> public partial class UpdateCustomLineItemChargeDetails { private UpdateCustomLineItemFlatChargeDetails _flat; private UpdateCustomLineItemPercentageChargeDetails _percentage; /// <summary> /// Gets and sets the property Flat. /// <para> /// An <code>UpdateCustomLineItemFlatChargeDetails</code> that describes the new charge /// details of a flat custom line item. /// </para> /// </summary> public UpdateCustomLineItemFlatChargeDetails Flat { get { return this._flat; } set { this._flat = value; } } // Check to see if Flat property is set internal bool IsSetFlat() { return this._flat != null; } /// <summary> /// Gets and sets the property Percentage. /// <para> /// An <code>UpdateCustomLineItemPercentageChargeDetails</code> that describes the new /// charge details of a percentage custom line item. /// </para> /// </summary> public UpdateCustomLineItemPercentageChargeDetails Percentage { get { return this._percentage; } set { this._percentage = value; } } // Check to see if Percentage property is set internal bool IsSetPercentage() { return this._percentage != null; } } }
79
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of the new charge details that are associated with a flat custom /// line item. /// </summary> public partial class UpdateCustomLineItemFlatChargeDetails { private double? _chargeValue; /// <summary> /// Gets and sets the property ChargeValue. /// <para> /// The custom line item's new fixed charge value in USD. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=1000000)] public double ChargeValue { get { return this._chargeValue.GetValueOrDefault(); } set { this._chargeValue = value; } } // Check to see if ChargeValue property is set internal bool IsSetChargeValue() { return this._chargeValue.HasValue; } } }
59
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// A representation of the new charge details that are associated with a percentage /// custom line item. /// </summary> public partial class UpdateCustomLineItemPercentageChargeDetails { private double? _percentageValue; /// <summary> /// Gets and sets the property PercentageValue. /// <para> /// The custom line item's new percentage value. This will be multiplied against the /// combined value of its associated resources to determine its charge value. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=10000)] public double PercentageValue { get { return this._percentageValue.GetValueOrDefault(); } set { this._percentageValue = value; } } // Check to see if PercentageValue property is set internal bool IsSetPercentageValue() { return this._percentageValue.HasValue; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the UpdateCustomLineItem operation. /// Update an existing custom line item in the current or previous billing period. /// </summary> public partial class UpdateCustomLineItemRequest : AmazonBillingConductorRequest { private string _arn; private CustomLineItemBillingPeriodRange _billingPeriodRange; private UpdateCustomLineItemChargeDetails _chargeDetails; private string _description; private string _name; /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN of the custom line item to be updated. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property BillingPeriodRange. /// </summary> public CustomLineItemBillingPeriodRange BillingPeriodRange { get { return this._billingPeriodRange; } set { this._billingPeriodRange = value; } } // Check to see if BillingPeriodRange property is set internal bool IsSetBillingPeriodRange() { return this._billingPeriodRange != null; } /// <summary> /// Gets and sets the property ChargeDetails. /// <para> /// A <code>ListCustomLineItemChargeDetails</code> containing the new charge details /// for the custom line item. /// </para> /// </summary> public UpdateCustomLineItemChargeDetails ChargeDetails { get { return this._chargeDetails; } set { this._chargeDetails = value; } } // Check to see if ChargeDetails property is set internal bool IsSetChargeDetails() { return this._chargeDetails != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The new line item description of the custom line item. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=255)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The new name for the custom line item. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
135
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the UpdateCustomLineItem operation. /// </summary> public partial class UpdateCustomLineItemResponse : AmazonWebServiceResponse { private string _arn; private long? _associationSize; private string _billingGroupArn; private ListCustomLineItemChargeDetails _chargeDetails; private string _description; private long? _lastModifiedTime; private string _name; /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN of the successfully updated custom line item. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property AssociationSize. /// <para> /// The number of resources that are associated to the custom line item. /// </para> /// </summary> [AWSProperty(Min=0)] public long AssociationSize { get { return this._associationSize.GetValueOrDefault(); } set { this._associationSize = value; } } // Check to see if AssociationSize property is set internal bool IsSetAssociationSize() { return this._associationSize.HasValue; } /// <summary> /// Gets and sets the property BillingGroupArn. /// <para> /// The ARN of the billing group that the custom line item is applied to. /// </para> /// </summary> public string BillingGroupArn { get { return this._billingGroupArn; } set { this._billingGroupArn = value; } } // Check to see if BillingGroupArn property is set internal bool IsSetBillingGroupArn() { return this._billingGroupArn != null; } /// <summary> /// Gets and sets the property ChargeDetails. /// <para> /// A <code>ListCustomLineItemChargeDetails</code> containing the charge details of the /// successfully updated custom line item. /// </para> /// </summary> public ListCustomLineItemChargeDetails ChargeDetails { get { return this._chargeDetails; } set { this._chargeDetails = value; } } // Check to see if ChargeDetails property is set internal bool IsSetChargeDetails() { return this._chargeDetails != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the successfully updated custom line item. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=255)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time when the custom line item was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the successfully updated custom line item. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
175
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The possible Amazon Web Services Free Tier configurations. /// </summary> public partial class UpdateFreeTierConfig { private bool? _activated; /// <summary> /// Gets and sets the property Activated. /// <para> /// Activate or deactivate application of Amazon Web Services Free Tier. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Activated { get { return this._activated.GetValueOrDefault(); } set { this._activated = value; } } // Check to see if Activated property is set internal bool IsSetActivated() { return this._activated.HasValue; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the UpdatePricingPlan operation. /// This updates an existing pricing plan. /// </summary> public partial class UpdatePricingPlanRequest : AmazonBillingConductorRequest { private string _arn; private string _description; private string _name; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the pricing plan that you're updating. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the pricing plan. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the pricing plan. The name must be unique to each pricing plan. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the UpdatePricingPlan operation. /// </summary> public partial class UpdatePricingPlanResponse : AmazonWebServiceResponse { private string _arn; private string _description; private long? _lastModifiedTime; private string _name; private long? _size; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the updated pricing plan. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The new description for the pricing rule. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time when the pricing plan was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the pricing plan. The name must be unique to each pricing plan. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Size. /// <para> /// The pricing rules count that's currently associated with this pricing plan list. /// /// </para> /// </summary> [AWSProperty(Min=1)] public long Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// Container for the parameters to the UpdatePricingRule operation. /// Updates an existing pricing rule. /// </summary> public partial class UpdatePricingRuleRequest : AmazonBillingConductorRequest { private string _arn; private string _description; private double? _modifierPercentage; private string _name; private UpdateTieringInput _tiering; private PricingRuleType _type; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the pricing rule to update. /// </para> /// </summary> [AWSProperty(Required=true)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The new description for the pricing rule. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property ModifierPercentage. /// <para> /// The new modifier to show pricing plan rates as a percentage. /// </para> /// </summary> [AWSProperty(Min=0)] public double ModifierPercentage { get { return this._modifierPercentage.GetValueOrDefault(); } set { this._modifierPercentage = value; } } // Check to see if ModifierPercentage property is set internal bool IsSetModifierPercentage() { return this._modifierPercentage.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The new name of the pricing rule. The name must be unique to each pricing rule. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Tiering. /// <para> /// The set of tiering configurations for the pricing rule. /// </para> /// </summary> public UpdateTieringInput Tiering { get { return this._tiering; } set { this._tiering = value; } } // Check to see if Tiering property is set internal bool IsSetTiering() { return this._tiering != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The new pricing rule type. /// </para> /// </summary> public PricingRuleType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
157
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// This is the response object from the UpdatePricingRule operation. /// </summary> public partial class UpdatePricingRuleResponse : AmazonWebServiceResponse { private string _arn; private long? _associatedPricingPlanCount; private string _billingEntity; private string _description; private long? _lastModifiedTime; private double? _modifierPercentage; private string _name; private string _operation; private PricingRuleScope _scope; private string _service; private UpdateTieringInput _tiering; private PricingRuleType _type; private string _usageType; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the successfully updated pricing rule. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property AssociatedPricingPlanCount. /// <para> /// The pricing plans count that this pricing rule is associated with. /// </para> /// </summary> [AWSProperty(Min=0)] public long AssociatedPricingPlanCount { get { return this._associatedPricingPlanCount.GetValueOrDefault(); } set { this._associatedPricingPlanCount = value; } } // Check to see if AssociatedPricingPlanCount property is set internal bool IsSetAssociatedPricingPlanCount() { return this._associatedPricingPlanCount.HasValue; } /// <summary> /// Gets and sets the property BillingEntity. /// <para> /// The seller of services provided by Amazon Web Services, their affiliates, or third-party /// providers selling services via Amazon Web Services Marketplace. /// </para> /// </summary> public string BillingEntity { get { return this._billingEntity; } set { this._billingEntity = value; } } // Check to see if BillingEntity property is set internal bool IsSetBillingEntity() { return this._billingEntity != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The new description for the pricing rule. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=0, Max=1024)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property LastModifiedTime. /// <para> /// The most recent time the pricing rule was modified. /// </para> /// </summary> public long LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// <summary> /// Gets and sets the property ModifierPercentage. /// <para> /// The new modifier to show pricing plan rates as a percentage. /// </para> /// </summary> [AWSProperty(Min=0)] public double ModifierPercentage { get { return this._modifierPercentage.GetValueOrDefault(); } set { this._modifierPercentage = value; } } // Check to see if ModifierPercentage property is set internal bool IsSetModifierPercentage() { return this._modifierPercentage.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The new name of the pricing rule. The name must be unique to each pricing rule. /// </para> /// </summary> [AWSProperty(Sensitive=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Operation. /// <para> /// Operation refers to the specific Amazon Web Services covered by this line item. This /// describes the specific usage of the line item. /// </para> /// /// <para> /// If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates /// which operation the <code>PricingRule</code> is modifying. For example, a value of /// <code>RunInstances:0202</code> indicates the operation of running an Amazon EC2 instance. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string Operation { get { return this._operation; } set { this._operation = value; } } // Check to see if Operation property is set internal bool IsSetOperation() { return this._operation != null; } /// <summary> /// Gets and sets the property Scope. /// <para> /// The scope of pricing rule that indicates if it's globally applicable, or it's service-specific. /// /// </para> /// </summary> public PricingRuleScope Scope { get { return this._scope; } set { this._scope = value; } } // Check to see if Scope property is set internal bool IsSetScope() { return this._scope != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// If the <code>Scope</code> attribute is set to <code>SERVICE</code>, the attribute /// indicates which service the <code>PricingRule</code> is applicable for. /// </para> /// </summary> [AWSProperty(Min=1, Max=128)] public string Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != null; } /// <summary> /// Gets and sets the property Tiering. /// <para> /// The set of tiering configurations for the pricing rule. /// </para> /// </summary> public UpdateTieringInput Tiering { get { return this._tiering; } set { this._tiering = value; } } // Check to see if Tiering property is set internal bool IsSetTiering() { return this._tiering != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The new pricing rule type. /// </para> /// </summary> public PricingRuleType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property UsageType. /// <para> /// Usage type is the unit that each service uses to measure the usage of a specific type /// of resource. /// </para> /// /// <para> /// If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates /// which usage type the <code>PricingRule</code> is modifying. For example, <code>USW2-BoxUsage:m2.2xlarge</code> /// describes an <code>M2 High Memory Double Extra Large</code> instance in the US West /// (Oregon) Region. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string UsageType { get { return this._usageType; } set { this._usageType = value; } } // Check to see if UsageType property is set internal bool IsSetUsageType() { return this._usageType != null; } } }
310
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The set of tiering configurations for the pricing rule. /// </summary> public partial class UpdateTieringInput { private UpdateFreeTierConfig _freeTier; /// <summary> /// Gets and sets the property FreeTier. /// <para> /// The possible Amazon Web Services Free Tier configurations. /// </para> /// </summary> [AWSProperty(Required=true)] public UpdateFreeTierConfig FreeTier { get { return this._freeTier; } set { this._freeTier = value; } } // Check to see if FreeTier property is set internal bool IsSetFreeTier() { return this._freeTier != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The input doesn't match with the constraints specified by Amazon Web Services services. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ValidationException : AmazonBillingConductorException { private List<ValidationExceptionField> _fields = new List<ValidationExceptionField>(); private ValidationExceptionReason _reason; /// <summary> /// Constructs a new ValidationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ValidationException(string message) : base(message) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ValidationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="innerException"></param> public ValidationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ValidationException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Fields = (List<ValidationExceptionField>)info.GetValue("Fields", typeof(List<ValidationExceptionField>)); this.Reason = (ValidationExceptionReason)info.GetValue("Reason", typeof(ValidationExceptionReason)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Fields", this.Fields); info.AddValue("Reason", this.Reason); } #endif /// <summary> /// Gets and sets the property Fields. /// <para> /// The fields that caused the error, if applicable. /// </para> /// </summary> public List<ValidationExceptionField> Fields { get { return this._fields; } set { this._fields = value; } } // Check to see if Fields property is set internal bool IsSetFields() { return this._fields != null && this._fields.Count > 0; } /// <summary> /// Gets and sets the property Reason. /// <para> /// The reason the request's validation failed. /// </para> /// </summary> public ValidationExceptionReason Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } } }
166
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BillingConductor.Model { /// <summary> /// The field's information of a request that resulted in an exception. /// </summary> public partial class ValidationExceptionField { private string _message; private string _name; /// <summary> /// Gets and sets the property Message. /// <para> /// The message describing why the field failed validation. /// </para> /// </summary> [AWSProperty(Required=true)] public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The field name. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessDeniedException Object /// </summary> public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessDeniedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccountAssociationsListElement Object /// </summary> public class AccountAssociationsListElementUnmarshaller : IUnmarshaller<AccountAssociationsListElement, XmlUnmarshallerContext>, IUnmarshaller<AccountAssociationsListElement, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AccountAssociationsListElement IUnmarshaller<AccountAssociationsListElement, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccountAssociationsListElement Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AccountAssociationsListElement unmarshalledObject = new AccountAssociationsListElement(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AccountEmail", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AccountEmail = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AccountName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AccountName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BillingGroupArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.BillingGroupArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AccountAssociationsListElementUnmarshaller _instance = new AccountAssociationsListElementUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccountAssociationsListElementUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// AccountGrouping Marshaller /// </summary> public class AccountGroupingMarshaller : IRequestMarshaller<AccountGrouping, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AccountGrouping requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLinkedAccountIds()) { context.Writer.WritePropertyName("LinkedAccountIds"); context.Writer.WriteArrayStart(); foreach(var requestObjectLinkedAccountIdsListValue in requestObject.LinkedAccountIds) { context.Writer.Write(requestObjectLinkedAccountIdsListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AccountGroupingMarshaller Instance = new AccountGroupingMarshaller(); } }
67
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// AssociateAccounts Request Marshaller /// </summary> public class AssociateAccountsRequestMarshaller : IMarshaller<IRequest, AssociateAccountsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((AssociateAccountsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AssociateAccountsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BillingConductor"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-30"; request.HttpMethod = "POST"; request.ResourcePath = "/associate-accounts"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAccountIds()) { context.Writer.WritePropertyName("AccountIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestAccountIdsListValue in publicRequest.AccountIds) { context.Writer.Write(publicRequestAccountIdsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetArn()) { context.Writer.WritePropertyName("Arn"); context.Writer.Write(publicRequest.Arn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AssociateAccountsRequestMarshaller _instance = new AssociateAccountsRequestMarshaller(); internal static AssociateAccountsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateAccountsRequestMarshaller Instance { get { return _instance; } } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociateAccounts operation /// </summary> public class AssociateAccountsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { AssociateAccountsResponse response = new AssociateAccountsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBillingConductorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AssociateAccountsResponseUnmarshaller _instance = new AssociateAccountsResponseUnmarshaller(); internal static AssociateAccountsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateAccountsResponseUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// AssociatePricingRules Request Marshaller /// </summary> public class AssociatePricingRulesRequestMarshaller : IMarshaller<IRequest, AssociatePricingRulesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((AssociatePricingRulesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AssociatePricingRulesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BillingConductor"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-30"; request.HttpMethod = "PUT"; request.ResourcePath = "/associate-pricing-rules"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetArn()) { context.Writer.WritePropertyName("Arn"); context.Writer.Write(publicRequest.Arn); } if(publicRequest.IsSetPricingRuleArns()) { context.Writer.WritePropertyName("PricingRuleArns"); context.Writer.WriteArrayStart(); foreach(var publicRequestPricingRuleArnsListValue in publicRequest.PricingRuleArns) { context.Writer.Write(publicRequestPricingRuleArnsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AssociatePricingRulesRequestMarshaller _instance = new AssociatePricingRulesRequestMarshaller(); internal static AssociatePricingRulesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociatePricingRulesRequestMarshaller Instance { get { return _instance; } } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociatePricingRules operation /// </summary> public class AssociatePricingRulesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { AssociatePricingRulesResponse response = new AssociatePricingRulesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBillingConductorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AssociatePricingRulesResponseUnmarshaller _instance = new AssociatePricingRulesResponseUnmarshaller(); internal static AssociatePricingRulesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociatePricingRulesResponseUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociateResourceError Object /// </summary> public class AssociateResourceErrorUnmarshaller : IUnmarshaller<AssociateResourceError, XmlUnmarshallerContext>, IUnmarshaller<AssociateResourceError, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssociateResourceError IUnmarshaller<AssociateResourceError, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AssociateResourceError Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssociateResourceError unmarshalledObject = new AssociateResourceError(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Message", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Message = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Reason = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssociateResourceErrorUnmarshaller _instance = new AssociateResourceErrorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssociateResourceErrorUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociateResourceResponseElement Object /// </summary> public class AssociateResourceResponseElementUnmarshaller : IUnmarshaller<AssociateResourceResponseElement, XmlUnmarshallerContext>, IUnmarshaller<AssociateResourceResponseElement, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssociateResourceResponseElement IUnmarshaller<AssociateResourceResponseElement, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AssociateResourceResponseElement Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssociateResourceResponseElement unmarshalledObject = new AssociateResourceResponseElement(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Error", targetDepth)) { var unmarshaller = AssociateResourceErrorUnmarshaller.Instance; unmarshalledObject.Error = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssociateResourceResponseElementUnmarshaller _instance = new AssociateResourceResponseElementUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssociateResourceResponseElementUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// BatchAssociateResourcesToCustomLineItem Request Marshaller /// </summary> public class BatchAssociateResourcesToCustomLineItemRequestMarshaller : IMarshaller<IRequest, BatchAssociateResourcesToCustomLineItemRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((BatchAssociateResourcesToCustomLineItemRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchAssociateResourcesToCustomLineItemRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BillingConductor"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-30"; request.HttpMethod = "PUT"; request.ResourcePath = "/batch-associate-resources-to-custom-line-item"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetBillingPeriodRange()) { context.Writer.WritePropertyName("BillingPeriodRange"); context.Writer.WriteObjectStart(); var marshaller = CustomLineItemBillingPeriodRangeMarshaller.Instance; marshaller.Marshall(publicRequest.BillingPeriodRange, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetResourceArns()) { context.Writer.WritePropertyName("ResourceArns"); context.Writer.WriteArrayStart(); foreach(var publicRequestResourceArnsListValue in publicRequest.ResourceArns) { context.Writer.Write(publicRequestResourceArnsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTargetArn()) { context.Writer.WritePropertyName("TargetArn"); context.Writer.Write(publicRequest.TargetArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static BatchAssociateResourcesToCustomLineItemRequestMarshaller _instance = new BatchAssociateResourcesToCustomLineItemRequestMarshaller(); internal static BatchAssociateResourcesToCustomLineItemRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchAssociateResourcesToCustomLineItemRequestMarshaller Instance { get { return _instance; } } } }
123
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchAssociateResourcesToCustomLineItem operation /// </summary> public class BatchAssociateResourcesToCustomLineItemResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { BatchAssociateResourcesToCustomLineItemResponse response = new BatchAssociateResourcesToCustomLineItemResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("FailedAssociatedResources", targetDepth)) { var unmarshaller = new ListUnmarshaller<AssociateResourceResponseElement, AssociateResourceResponseElementUnmarshaller>(AssociateResourceResponseElementUnmarshaller.Instance); response.FailedAssociatedResources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SuccessfullyAssociatedResources", targetDepth)) { var unmarshaller = new ListUnmarshaller<AssociateResourceResponseElement, AssociateResourceResponseElementUnmarshaller>(AssociateResourceResponseElementUnmarshaller.Instance); response.SuccessfullyAssociatedResources = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBillingConductorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchAssociateResourcesToCustomLineItemResponseUnmarshaller _instance = new BatchAssociateResourcesToCustomLineItemResponseUnmarshaller(); internal static BatchAssociateResourcesToCustomLineItemResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchAssociateResourcesToCustomLineItemResponseUnmarshaller Instance { get { return _instance; } } } }
140
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// BatchDisassociateResourcesFromCustomLineItem Request Marshaller /// </summary> public class BatchDisassociateResourcesFromCustomLineItemRequestMarshaller : IMarshaller<IRequest, BatchDisassociateResourcesFromCustomLineItemRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((BatchDisassociateResourcesFromCustomLineItemRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchDisassociateResourcesFromCustomLineItemRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BillingConductor"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-30"; request.HttpMethod = "PUT"; request.ResourcePath = "/batch-disassociate-resources-from-custom-line-item"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetBillingPeriodRange()) { context.Writer.WritePropertyName("BillingPeriodRange"); context.Writer.WriteObjectStart(); var marshaller = CustomLineItemBillingPeriodRangeMarshaller.Instance; marshaller.Marshall(publicRequest.BillingPeriodRange, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetResourceArns()) { context.Writer.WritePropertyName("ResourceArns"); context.Writer.WriteArrayStart(); foreach(var publicRequestResourceArnsListValue in publicRequest.ResourceArns) { context.Writer.Write(publicRequestResourceArnsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTargetArn()) { context.Writer.WritePropertyName("TargetArn"); context.Writer.Write(publicRequest.TargetArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static BatchDisassociateResourcesFromCustomLineItemRequestMarshaller _instance = new BatchDisassociateResourcesFromCustomLineItemRequestMarshaller(); internal static BatchDisassociateResourcesFromCustomLineItemRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchDisassociateResourcesFromCustomLineItemRequestMarshaller Instance { get { return _instance; } } } }
123
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchDisassociateResourcesFromCustomLineItem operation /// </summary> public class BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { BatchDisassociateResourcesFromCustomLineItemResponse response = new BatchDisassociateResourcesFromCustomLineItemResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("FailedDisassociatedResources", targetDepth)) { var unmarshaller = new ListUnmarshaller<DisassociateResourceResponseElement, DisassociateResourceResponseElementUnmarshaller>(DisassociateResourceResponseElementUnmarshaller.Instance); response.FailedDisassociatedResources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SuccessfullyDisassociatedResources", targetDepth)) { var unmarshaller = new ListUnmarshaller<DisassociateResourceResponseElement, DisassociateResourceResponseElementUnmarshaller>(DisassociateResourceResponseElementUnmarshaller.Instance); response.SuccessfullyDisassociatedResources = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBillingConductorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller _instance = new BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller(); internal static BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchDisassociateResourcesFromCustomLineItemResponseUnmarshaller Instance { get { return _instance; } } } }
136
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BillingGroupCostReportElement Object /// </summary> public class BillingGroupCostReportElementUnmarshaller : IUnmarshaller<BillingGroupCostReportElement, XmlUnmarshallerContext>, IUnmarshaller<BillingGroupCostReportElement, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BillingGroupCostReportElement IUnmarshaller<BillingGroupCostReportElement, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public BillingGroupCostReportElement Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BillingGroupCostReportElement unmarshalledObject = new BillingGroupCostReportElement(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AWSCost", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AWSCost = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Currency", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Currency = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Margin", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Margin = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MarginPercentage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MarginPercentage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProformaCost", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ProformaCost = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BillingGroupCostReportElementUnmarshaller _instance = new BillingGroupCostReportElementUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BillingGroupCostReportElementUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BillingGroupListElement Object /// </summary> public class BillingGroupListElementUnmarshaller : IUnmarshaller<BillingGroupListElement, XmlUnmarshallerContext>, IUnmarshaller<BillingGroupListElement, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BillingGroupListElement IUnmarshaller<BillingGroupListElement, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public BillingGroupListElement Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BillingGroupListElement unmarshalledObject = new BillingGroupListElement(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ComputationPreference", targetDepth)) { var unmarshaller = ComputationPreferenceUnmarshaller.Instance; unmarshalledObject.ComputationPreference = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedTime", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.LastModifiedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PrimaryAccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PrimaryAccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Size", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Size = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusReason = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BillingGroupListElementUnmarshaller _instance = new BillingGroupListElementUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BillingGroupListElementUnmarshaller Instance { get { return _instance; } } } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// ComputationPreference Marshaller /// </summary> public class ComputationPreferenceMarshaller : IRequestMarshaller<ComputationPreference, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ComputationPreference requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPricingPlanArn()) { context.Writer.WritePropertyName("PricingPlanArn"); context.Writer.Write(requestObject.PricingPlanArn); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ComputationPreferenceMarshaller Instance = new ComputationPreferenceMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ComputationPreference Object /// </summary> public class ComputationPreferenceUnmarshaller : IUnmarshaller<ComputationPreference, XmlUnmarshallerContext>, IUnmarshaller<ComputationPreference, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ComputationPreference IUnmarshaller<ComputationPreference, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ComputationPreference Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ComputationPreference unmarshalledObject = new ComputationPreference(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("PricingPlanArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PricingPlanArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ComputationPreferenceUnmarshaller _instance = new ComputationPreferenceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ComputationPreferenceUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConflictException Object /// </summary> public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Reason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CreateBillingGroup Request Marshaller /// </summary> public class CreateBillingGroupRequestMarshaller : IMarshaller<IRequest, CreateBillingGroupRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateBillingGroupRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateBillingGroupRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BillingConductor"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-30"; request.HttpMethod = "POST"; request.ResourcePath = "/create-billing-group"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAccountGrouping()) { context.Writer.WritePropertyName("AccountGrouping"); context.Writer.WriteObjectStart(); var marshaller = AccountGroupingMarshaller.Instance; marshaller.Marshall(publicRequest.AccountGrouping, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetComputationPreference()) { context.Writer.WritePropertyName("ComputationPreference"); context.Writer.WriteObjectStart(); var marshaller = ComputationPreferenceMarshaller.Instance; marshaller.Marshall(publicRequest.ComputationPreference, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetPrimaryAccountId()) { context.Writer.WritePropertyName("PrimaryAccountId"); context.Writer.Write(publicRequest.PrimaryAccountId); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetClientToken()) { request.Headers["X-Amzn-Client-Token"] = publicRequest.ClientToken; } return request; } private static CreateBillingGroupRequestMarshaller _instance = new CreateBillingGroupRequestMarshaller(); internal static CreateBillingGroupRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateBillingGroupRequestMarshaller Instance { get { return _instance; } } } }
154
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateBillingGroup operation /// </summary> public class CreateBillingGroupResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateBillingGroupResponse response = new CreateBillingGroupResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBillingConductorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateBillingGroupResponseUnmarshaller _instance = new CreateBillingGroupResponseUnmarshaller(); internal static CreateBillingGroupResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateBillingGroupResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CreateCustomLineItem Request Marshaller /// </summary> public class CreateCustomLineItemRequestMarshaller : IMarshaller<IRequest, CreateCustomLineItemRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateCustomLineItemRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateCustomLineItemRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BillingConductor"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-30"; request.HttpMethod = "POST"; request.ResourcePath = "/create-custom-line-item"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetBillingGroupArn()) { context.Writer.WritePropertyName("BillingGroupArn"); context.Writer.Write(publicRequest.BillingGroupArn); } if(publicRequest.IsSetBillingPeriodRange()) { context.Writer.WritePropertyName("BillingPeriodRange"); context.Writer.WriteObjectStart(); var marshaller = CustomLineItemBillingPeriodRangeMarshaller.Instance; marshaller.Marshall(publicRequest.BillingPeriodRange, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetChargeDetails()) { context.Writer.WritePropertyName("ChargeDetails"); context.Writer.WriteObjectStart(); var marshaller = CustomLineItemChargeDetailsMarshaller.Instance; marshaller.Marshall(publicRequest.ChargeDetails, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetClientToken()) { request.Headers["X-Amzn-Client-Token"] = publicRequest.ClientToken; } return request; } private static CreateCustomLineItemRequestMarshaller _instance = new CreateCustomLineItemRequestMarshaller(); internal static CreateCustomLineItemRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateCustomLineItemRequestMarshaller Instance { get { return _instance; } } } }
154
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateCustomLineItem operation /// </summary> public class CreateCustomLineItemResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateCustomLineItemResponse response = new CreateCustomLineItemResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBillingConductorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateCustomLineItemResponseUnmarshaller _instance = new CreateCustomLineItemResponseUnmarshaller(); internal static CreateCustomLineItemResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateCustomLineItemResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CreateFreeTierConfig Marshaller /// </summary> public class CreateFreeTierConfigMarshaller : IRequestMarshaller<CreateFreeTierConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CreateFreeTierConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetActivated()) { context.Writer.WritePropertyName("Activated"); context.Writer.Write(requestObject.Activated); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CreateFreeTierConfigMarshaller Instance = new CreateFreeTierConfigMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CreatePricingPlan Request Marshaller /// </summary> public class CreatePricingPlanRequestMarshaller : IMarshaller<IRequest, CreatePricingPlanRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreatePricingPlanRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreatePricingPlanRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BillingConductor"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-30"; request.HttpMethod = "POST"; request.ResourcePath = "/create-pricing-plan"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetPricingRuleArns()) { context.Writer.WritePropertyName("PricingRuleArns"); context.Writer.WriteArrayStart(); foreach(var publicRequestPricingRuleArnsListValue in publicRequest.PricingRuleArns) { context.Writer.Write(publicRequestPricingRuleArnsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetClientToken()) { request.Headers["X-Amzn-Client-Token"] = publicRequest.ClientToken; } return request; } private static CreatePricingPlanRequestMarshaller _instance = new CreatePricingPlanRequestMarshaller(); internal static CreatePricingPlanRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreatePricingPlanRequestMarshaller Instance { get { return _instance; } } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreatePricingPlan operation /// </summary> public class CreatePricingPlanResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreatePricingPlanResponse response = new CreatePricingPlanResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBillingConductorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreatePricingPlanResponseUnmarshaller _instance = new CreatePricingPlanResponseUnmarshaller(); internal static CreatePricingPlanResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreatePricingPlanResponseUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CreatePricingRule Request Marshaller /// </summary> public class CreatePricingRuleRequestMarshaller : IMarshaller<IRequest, CreatePricingRuleRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreatePricingRuleRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreatePricingRuleRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BillingConductor"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-07-30"; request.HttpMethod = "POST"; request.ResourcePath = "/create-pricing-rule"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetBillingEntity()) { context.Writer.WritePropertyName("BillingEntity"); context.Writer.Write(publicRequest.BillingEntity); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetModifierPercentage()) { context.Writer.WritePropertyName("ModifierPercentage"); context.Writer.Write(publicRequest.ModifierPercentage); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetOperation()) { context.Writer.WritePropertyName("Operation"); context.Writer.Write(publicRequest.Operation); } if(publicRequest.IsSetScope()) { context.Writer.WritePropertyName("Scope"); context.Writer.Write(publicRequest.Scope); } if(publicRequest.IsSetService()) { context.Writer.WritePropertyName("Service"); context.Writer.Write(publicRequest.Service); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTiering()) { context.Writer.WritePropertyName("Tiering"); context.Writer.WriteObjectStart(); var marshaller = CreateTieringInputMarshaller.Instance; marshaller.Marshall(publicRequest.Tiering, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(publicRequest.Type); } if(publicRequest.IsSetUsageType()) { context.Writer.WritePropertyName("UsageType"); context.Writer.Write(publicRequest.UsageType); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetClientToken()) { request.Headers["X-Amzn-Client-Token"] = publicRequest.ClientToken; } return request; } private static CreatePricingRuleRequestMarshaller _instance = new CreatePricingRuleRequestMarshaller(); internal static CreatePricingRuleRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreatePricingRuleRequestMarshaller Instance { get { return _instance; } } } }
179
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreatePricingRule operation /// </summary> public class CreatePricingRuleResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreatePricingRuleResponse response = new CreatePricingRuleResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLimitExceededException")) { return ServiceLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBillingConductorException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreatePricingRuleResponseUnmarshaller _instance = new CreatePricingRuleResponseUnmarshaller(); internal static CreatePricingRuleResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreatePricingRuleResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CreateTieringInput Marshaller /// </summary> public class CreateTieringInputMarshaller : IRequestMarshaller<CreateTieringInput, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CreateTieringInput requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFreeTier()) { context.Writer.WritePropertyName("FreeTier"); context.Writer.WriteObjectStart(); var marshaller = CreateFreeTierConfigMarshaller.Instance; marshaller.Marshall(requestObject.FreeTier, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CreateTieringInputMarshaller Instance = new CreateTieringInputMarshaller(); } }
67
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CustomLineItemBillingPeriodRange Marshaller /// </summary> public class CustomLineItemBillingPeriodRangeMarshaller : IRequestMarshaller<CustomLineItemBillingPeriodRange, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomLineItemBillingPeriodRange requestObject, JsonMarshallerContext context) { if(requestObject.IsSetExclusiveEndBillingPeriod()) { context.Writer.WritePropertyName("ExclusiveEndBillingPeriod"); context.Writer.Write(requestObject.ExclusiveEndBillingPeriod); } if(requestObject.IsSetInclusiveStartBillingPeriod()) { context.Writer.WritePropertyName("InclusiveStartBillingPeriod"); context.Writer.Write(requestObject.InclusiveStartBillingPeriod); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomLineItemBillingPeriodRangeMarshaller Instance = new CustomLineItemBillingPeriodRangeMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CustomLineItemChargeDetails Marshaller /// </summary> public class CustomLineItemChargeDetailsMarshaller : IRequestMarshaller<CustomLineItemChargeDetails, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomLineItemChargeDetails requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFlat()) { context.Writer.WritePropertyName("Flat"); context.Writer.WriteObjectStart(); var marshaller = CustomLineItemFlatChargeDetailsMarshaller.Instance; marshaller.Marshall(requestObject.Flat, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPercentage()) { context.Writer.WritePropertyName("Percentage"); context.Writer.WriteObjectStart(); var marshaller = CustomLineItemPercentageChargeDetailsMarshaller.Instance; marshaller.Marshall(requestObject.Percentage, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(requestObject.Type); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomLineItemChargeDetailsMarshaller Instance = new CustomLineItemChargeDetailsMarshaller(); } }
84
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the billingconductor-2021-07-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BillingConductor.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BillingConductor.Model.Internal.MarshallTransformations { /// <summary> /// CustomLineItemFlatChargeDetails Marshaller /// </summary> public class CustomLineItemFlatChargeDetailsMarshaller : IRequestMarshaller<CustomLineItemFlatChargeDetails, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomLineItemFlatChargeDetails requestObject, JsonMarshallerContext context) { if(requestObject.IsSetChargeValue()) { context.Writer.WritePropertyName("ChargeValue"); context.Writer.Write(requestObject.ChargeValue); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomLineItemFlatChargeDetailsMarshaller Instance = new CustomLineItemFlatChargeDetailsMarshaller(); } }
62