/*
* 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 ecs-2014-11-13.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.ECS.Model
{
///
/// The details for a capacity provider.
///
public partial class CapacityProvider
{
private AutoScalingGroupProvider _autoScalingGroupProvider;
private string _capacityProviderArn;
private string _name;
private CapacityProviderStatus _status;
private List _tags = new List();
private CapacityProviderUpdateStatus _updateStatus;
private string _updateStatusReason;
///
/// Gets and sets the property AutoScalingGroupProvider.
///
/// The Auto Scaling group settings for the capacity provider.
///
///
public AutoScalingGroupProvider AutoScalingGroupProvider
{
get { return this._autoScalingGroupProvider; }
set { this._autoScalingGroupProvider = value; }
}
// Check to see if AutoScalingGroupProvider property is set
internal bool IsSetAutoScalingGroupProvider()
{
return this._autoScalingGroupProvider != null;
}
///
/// Gets and sets the property CapacityProviderArn.
///
/// The Amazon Resource Name (ARN) that identifies the capacity provider.
///
///
public string CapacityProviderArn
{
get { return this._capacityProviderArn; }
set { this._capacityProviderArn = value; }
}
// Check to see if CapacityProviderArn property is set
internal bool IsSetCapacityProviderArn()
{
return this._capacityProviderArn != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the capacity provider.
///
///
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;
}
///
/// Gets and sets the property Status.
///
/// The current status of the capacity provider. Only capacity providers in an ACTIVE
/// state can be used in a cluster. When a capacity provider is successfully deleted,
/// it has an INACTIVE
status.
///
///
public CapacityProviderStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Tags.
///
/// The metadata that you apply to the capacity provider to help you categorize and organize
/// it. Each tag consists of a key and an optional value. You define both.
///
///
///
/// The following basic restrictions apply to tags:
///
/// -
///
/// Maximum number of tags per resource - 50
///
///
-
///
/// For each resource, each tag key must be unique, and each tag key can have only one
/// value.
///
///
-
///
/// Maximum key length - 128 Unicode characters in UTF-8
///
///
-
///
/// Maximum value length - 256 Unicode characters in UTF-8
///
///
-
///
/// If your tagging schema is used across multiple services and resources, remember that
/// other services may have restrictions on allowed characters. Generally allowed characters
/// are: letters, numbers, and spaces representable in UTF-8, and the following characters:
/// + - = . _ : / @.
///
///
-
///
/// Tag keys and values are case-sensitive.
///
///
-
///
/// Do not use
aws:
, AWS:
, or any upper or lowercase combination
/// of such as a prefix for either keys or values as it is reserved for Amazon Web Services
/// use. You cannot edit or delete tag keys or values with this prefix. Tags with this
/// prefix do not count against your tags per resource limit.
///
///
///
[AWSProperty(Min=0, Max=50)]
public List 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;
}
///
/// Gets and sets the property UpdateStatus.
///
/// The update status of the capacity provider. The following are the possible states
/// that is returned.
///
/// - DELETE_IN_PROGRESS
-
///
/// The capacity provider is in the process of being deleted.
///
///
- DELETE_COMPLETE
-
///
/// The capacity provider was successfully deleted and has an
INACTIVE
status.
///
/// - DELETE_FAILED
-
///
/// The capacity provider can't be deleted. The update status reason provides further
/// details about why the delete failed.
///
///
///
public CapacityProviderUpdateStatus UpdateStatus
{
get { return this._updateStatus; }
set { this._updateStatus = value; }
}
// Check to see if UpdateStatus property is set
internal bool IsSetUpdateStatus()
{
return this._updateStatus != null;
}
///
/// Gets and sets the property UpdateStatusReason.
///
/// The update status reason. This provides further details about the update status for
/// the capacity provider.
///
///
public string UpdateStatusReason
{
get { return this._updateStatusReason; }
set { this._updateStatusReason = value; }
}
// Check to see if UpdateStatusReason property is set
internal bool IsSetUpdateStatusReason()
{
return this._updateStatusReason != null;
}
}
}