/* * 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-2016-12-01.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.Pinpoint.Model { /// /// For a campaign, specifies limits on the messages that the campaign can send. For an /// application, specifies the default limits for messages that campaigns in the application /// can send. /// public partial class CampaignLimits { private int? _daily; private int? _maximumDuration; private int? _messagesPerSecond; private int? _session; private int? _total; /// /// Gets and sets the property Daily. /// /// The maximum number of messages that a campaign can send to a single endpoint during /// a 24-hour period. For an application, this value specifies the default limit for the /// number of messages that campaigns and journeys can send to a single endpoint during /// a 24-hour period. The maximum value is 100. /// /// public int Daily { get { return this._daily.GetValueOrDefault(); } set { this._daily = value; } } // Check to see if Daily property is set internal bool IsSetDaily() { return this._daily.HasValue; } /// /// Gets and sets the property MaximumDuration. /// /// The maximum amount of time, in seconds, that a campaign can attempt to deliver a message /// after the scheduled start time for the campaign. The minimum value is 60 seconds. /// /// public int MaximumDuration { get { return this._maximumDuration.GetValueOrDefault(); } set { this._maximumDuration = value; } } // Check to see if MaximumDuration property is set internal bool IsSetMaximumDuration() { return this._maximumDuration.HasValue; } /// /// Gets and sets the property MessagesPerSecond. /// /// The maximum number of messages that a campaign can send each second. For an application, /// this value specifies the default limit for the number of messages that campaigns can /// send each second. The minimum value is 50. The maximum value is 20,000. /// /// public int MessagesPerSecond { get { return this._messagesPerSecond.GetValueOrDefault(); } set { this._messagesPerSecond = value; } } // Check to see if MessagesPerSecond property is set internal bool IsSetMessagesPerSecond() { return this._messagesPerSecond.HasValue; } /// /// Gets and sets the property Session. /// /// The maximum total number of messages that the campaign can send per user session. /// /// public int Session { get { return this._session.GetValueOrDefault(); } set { this._session = value; } } // Check to see if Session property is set internal bool IsSetSession() { return this._session.HasValue; } /// /// Gets and sets the property Total. /// /// The maximum number of messages that a campaign can send to a single endpoint during /// the course of the campaign. If a campaign recurs, this setting applies to all runs /// of the campaign. The maximum value is 100. /// /// public int Total { get { return this._total.GetValueOrDefault(); } set { this._total = value; } } // Check to see if Total property is set internal bool IsSetTotal() { return this._total.HasValue; } } }