/* * 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 pinpoint-sms-voice-v2-2022-03-31.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.PinpointSMSVoiceV2.Model { /// /// Describes the current Amazon Pinpoint monthly spend limits for sending voice and text /// messages. For more information on increasing your monthly spend limit, see /// Requesting increases to your monthly SMS spending quota for Amazon Pinpoint in /// the Amazon Pinpoint User Guide. /// public partial class SpendLimit { private long? _enforcedLimit; private long? _maxLimit; private SpendLimitName _name; private bool? _overridden; /// /// Gets and sets the property EnforcedLimit. /// /// The maximum amount of money, in US dollars, that you want to be able to spend sending /// messages each month. This value has to be less than or equal to the amount in MaxLimit. /// To use this custom limit, Overridden must be set to true. /// /// [AWSProperty(Required=true)] public long EnforcedLimit { get { return this._enforcedLimit.GetValueOrDefault(); } set { this._enforcedLimit = value; } } // Check to see if EnforcedLimit property is set internal bool IsSetEnforcedLimit() { return this._enforcedLimit.HasValue; } /// /// Gets and sets the property MaxLimit. /// /// The maximum amount of money that you are able to spend to send messages each month, /// in US dollars. /// /// [AWSProperty(Required=true)] public long MaxLimit { get { return this._maxLimit.GetValueOrDefault(); } set { this._maxLimit = value; } } // Check to see if MaxLimit property is set internal bool IsSetMaxLimit() { return this._maxLimit.HasValue; } /// /// Gets and sets the property Name. /// /// The name for the SpendLimit. /// /// [AWSProperty(Required=true)] public SpendLimitName Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Overridden. /// /// When set to True, the value that has been specified in the EnforcedLimit /// is used to determine the maximum amount in US dollars that can be spent to send messages /// each month, in US dollars. /// /// [AWSProperty(Required=true)] public bool Overridden { get { return this._overridden.GetValueOrDefault(); } set { this._overridden = value; } } // Check to see if Overridden property is set internal bool IsSetOverridden() { return this._overridden.HasValue; } } }