/* * 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 scalable target. /// public partial class ScalableTarget { private DateTime? _creationTime; private int? _maxCapacity; private int? _minCapacity; private string _resourceId; private string _roleARN; private ScalableDimension _scalableDimension; private string _scalableTargetARN; private ServiceNamespace _serviceNamespace; private SuspendedState _suspendedState; /// /// Gets and sets the property CreationTime. /// /// The Unix timestamp for when the scalable target 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 MaxCapacity. /// /// The maximum value to scale to in response to a scale-out activity. /// /// [AWSProperty(Required=true)] public int MaxCapacity { get { return this._maxCapacity.GetValueOrDefault(); } set { this._maxCapacity = value; } } // Check to see if MaxCapacity property is set internal bool IsSetMaxCapacity() { return this._maxCapacity.HasValue; } /// /// Gets and sets the property MinCapacity. /// /// The minimum value to scale to in response to a scale-in activity. /// /// [AWSProperty(Required=true)] public int MinCapacity { get { return this._minCapacity.GetValueOrDefault(); } set { this._minCapacity = value; } } // Check to see if MinCapacity property is set internal bool IsSetMinCapacity() { return this._minCapacity.HasValue; } /// /// Gets and sets the property ResourceId. /// /// The identifier of the resource associated with the scalable target. 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 RoleARN. /// /// The ARN of an IAM role that allows Application Auto Scaling to modify the scalable /// target on your behalf. /// /// [AWSProperty(Required=true, Min=1, Max=1600)] public string RoleARN { get { return this._roleARN; } set { this._roleARN = value; } } // Check to see if RoleARN property is set internal bool IsSetRoleARN() { return this._roleARN != null; } /// /// Gets and sets the property ScalableDimension. /// /// The scalable dimension associated with the scalable target. This string consists of /// the service namespace, resource type, and scaling property. /// /// /// [AWSProperty(Required=true)] 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 ScalableTargetARN. /// /// The ARN of the scalable target. /// /// public string ScalableTargetARN { get { return this._scalableTargetARN; } set { this._scalableTargetARN = value; } } // Check to see if ScalableTargetARN property is set internal bool IsSetScalableTargetARN() { return this._scalableTargetARN != 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 SuspendedState. /// /// Specifies whether the scaling activities for a scalable target are in a suspended /// state. /// /// public SuspendedState SuspendedState { get { return this._suspendedState; } set { this._suspendedState = value; } } // Check to see if SuspendedState property is set internal bool IsSetSuspendedState() { return this._suspendedState != null; } } }