/* * 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 application-autoscaling-2016-02-06.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.ApplicationAutoScaling.Model { /// /// Represents a scheduled action. /// public partial class ScheduledAction { private DateTime? _creationTime; private DateTime? _endTime; private string _resourceId; private ScalableDimension _scalableDimension; private ScalableTargetAction _scalableTargetAction; private string _schedule; private string _scheduledActionARN; private string _scheduledActionName; private ServiceNamespace _serviceNamespace; private DateTime? _startTime; private string _timezone; /// /// Gets and sets the property CreationTime. /// /// The date and time that the scheduled action was created. /// /// [AWSProperty(Required=true)] public DateTime 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; } /// /// Gets and sets the property EndTime. /// /// The date and time that the action is scheduled to end, in UTC. /// /// public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// /// Gets and sets the property ResourceId. /// /// The identifier of the resource associated with the scaling policy. This string consists /// of the resource type and unique identifier. /// /// /// [AWSProperty(Required=true, Min=1, Max=1600)] 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; } /// /// Gets and sets the property ScalableDimension. /// /// The scalable dimension. This string consists of the service namespace, resource type, /// and scaling property. /// /// /// public ScalableDimension ScalableDimension { get { return this._scalableDimension; } set { this._scalableDimension = value; } } // Check to see if ScalableDimension property is set internal bool IsSetScalableDimension() { return this._scalableDimension != null; } /// /// Gets and sets the property ScalableTargetAction. /// /// The new minimum and maximum capacity. You can set both values or just one. At the /// scheduled time, if the current capacity is below the minimum capacity, Application /// Auto Scaling scales out to the minimum capacity. If the current capacity is above /// the maximum capacity, Application Auto Scaling scales in to the maximum capacity. /// /// public ScalableTargetAction ScalableTargetAction { get { return this._scalableTargetAction; } set { this._scalableTargetAction = value; } } // Check to see if ScalableTargetAction property is set internal bool IsSetScalableTargetAction() { return this._scalableTargetAction != null; } /// /// Gets and sets the property Schedule. /// /// The schedule for this action. The following formats are supported: /// /// /// /// At expressions are useful for one-time schedules. Cron expressions are useful for /// scheduled actions that run periodically at a specified date and time, and rate expressions /// are useful for scheduled actions that run at a regular interval. /// /// /// /// At and cron expressions use Universal Coordinated Time (UTC) by default. /// /// /// /// The cron format consists of six fields separated by white spaces: [Minutes] [Hours] /// [Day_of_Month] [Month] [Day_of_Week] [Year]. /// /// /// /// For rate expressions, value is a positive integer and unit is minute /// | minutes | hour | hours | day /// | days. /// /// /// /// For more information and examples, see Example /// scheduled actions for Application Auto Scaling in the Application Auto Scaling /// User Guide. /// /// [AWSProperty(Required=true, Min=1, Max=1600)] public string Schedule { get { return this._schedule; } set { this._schedule = value; } } // Check to see if Schedule property is set internal bool IsSetSchedule() { return this._schedule != null; } /// /// Gets and sets the property ScheduledActionARN. /// /// The Amazon Resource Name (ARN) of the scheduled action. /// /// [AWSProperty(Required=true, Min=1, Max=1600)] public string ScheduledActionARN { get { return this._scheduledActionARN; } set { this._scheduledActionARN = value; } } // Check to see if ScheduledActionARN property is set internal bool IsSetScheduledActionARN() { return this._scheduledActionARN != null; } /// /// Gets and sets the property ScheduledActionName. /// /// The name of the scheduled action. /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string ScheduledActionName { get { return this._scheduledActionName; } set { this._scheduledActionName = value; } } // Check to see if ScheduledActionName property is set internal bool IsSetScheduledActionName() { return this._scheduledActionName != null; } /// /// Gets and sets the property ServiceNamespace. /// /// The namespace of the Amazon Web Services service that provides the resource, or a /// custom-resource. /// /// [AWSProperty(Required=true)] public ServiceNamespace ServiceNamespace { get { return this._serviceNamespace; } set { this._serviceNamespace = value; } } // Check to see if ServiceNamespace property is set internal bool IsSetServiceNamespace() { return this._serviceNamespace != null; } /// /// Gets and sets the property StartTime. /// /// The date and time that the action is scheduled to begin, in UTC. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property Timezone. /// /// The time zone used when referring to the date and time of a scheduled action, when /// the scheduled action uses an at or cron expression. /// /// [AWSProperty(Min=1, Max=1600)] public string Timezone { get { return this._timezone; } set { this._timezone = value; } } // Check to see if Timezone property is set internal bool IsSetTimezone() { return this._timezone != null; } } }