/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Provides details about an Amazon ECS cluster.
///
public partial class AwsEcsClusterDetails
{
private int? _activeServicesCount;
private List _capacityProviders = new List();
private string _clusterArn;
private string _clusterName;
private List _clusterSettings = new List();
private AwsEcsClusterConfigurationDetails _configuration;
private List _defaultCapacityProviderStrategy = new List();
private int? _registeredContainerInstancesCount;
private int? _runningTasksCount;
private string _status;
///
/// Gets and sets the property ActiveServicesCount.
///
/// The number of services that are running on the cluster in an ACTIVE
state.
/// You can view these services with the Amazon ECS
/// ListServices
API operation.
///
///
public int ActiveServicesCount
{
get { return this._activeServicesCount.GetValueOrDefault(); }
set { this._activeServicesCount = value; }
}
// Check to see if ActiveServicesCount property is set
internal bool IsSetActiveServicesCount()
{
return this._activeServicesCount.HasValue;
}
///
/// Gets and sets the property CapacityProviders.
///
/// The short name of one or more capacity providers to associate with the cluster.
///
///
public List CapacityProviders
{
get { return this._capacityProviders; }
set { this._capacityProviders = value; }
}
// Check to see if CapacityProviders property is set
internal bool IsSetCapacityProviders()
{
return this._capacityProviders != null && this._capacityProviders.Count > 0;
}
///
/// Gets and sets the property ClusterArn.
///
/// The Amazon Resource Name (ARN) that identifies the cluster.
///
///
public string ClusterArn
{
get { return this._clusterArn; }
set { this._clusterArn = value; }
}
// Check to see if ClusterArn property is set
internal bool IsSetClusterArn()
{
return this._clusterArn != null;
}
///
/// Gets and sets the property ClusterName.
///
/// A name that you use to identify your cluster.
///
///
public string ClusterName
{
get { return this._clusterName; }
set { this._clusterName = value; }
}
// Check to see if ClusterName property is set
internal bool IsSetClusterName()
{
return this._clusterName != null;
}
///
/// Gets and sets the property ClusterSettings.
///
/// The setting to use to create the cluster. Specifically used to configure whether to
/// enable CloudWatch Container Insights for the cluster.
///
///
public List ClusterSettings
{
get { return this._clusterSettings; }
set { this._clusterSettings = value; }
}
// Check to see if ClusterSettings property is set
internal bool IsSetClusterSettings()
{
return this._clusterSettings != null && this._clusterSettings.Count > 0;
}
///
/// Gets and sets the property Configuration.
///
/// The run command configuration for the cluster.
///
///
public AwsEcsClusterConfigurationDetails Configuration
{
get { return this._configuration; }
set { this._configuration = value; }
}
// Check to see if Configuration property is set
internal bool IsSetConfiguration()
{
return this._configuration != null;
}
///
/// Gets and sets the property DefaultCapacityProviderStrategy.
///
/// The default capacity provider strategy for the cluster. The default capacity provider
/// strategy is used when services or tasks are run without a specified launch type or
/// capacity provider strategy.
///
///
public List DefaultCapacityProviderStrategy
{
get { return this._defaultCapacityProviderStrategy; }
set { this._defaultCapacityProviderStrategy = value; }
}
// Check to see if DefaultCapacityProviderStrategy property is set
internal bool IsSetDefaultCapacityProviderStrategy()
{
return this._defaultCapacityProviderStrategy != null && this._defaultCapacityProviderStrategy.Count > 0;
}
///
/// Gets and sets the property RegisteredContainerInstancesCount.
///
/// The number of container instances registered into the cluster. This includes container
/// instances in both ACTIVE
and DRAINING
status.
///
///
public int RegisteredContainerInstancesCount
{
get { return this._registeredContainerInstancesCount.GetValueOrDefault(); }
set { this._registeredContainerInstancesCount = value; }
}
// Check to see if RegisteredContainerInstancesCount property is set
internal bool IsSetRegisteredContainerInstancesCount()
{
return this._registeredContainerInstancesCount.HasValue;
}
///
/// Gets and sets the property RunningTasksCount.
///
/// The number of tasks in the cluster that are in the RUNNING
state.
///
///
public int RunningTasksCount
{
get { return this._runningTasksCount.GetValueOrDefault(); }
set { this._runningTasksCount = value; }
}
// Check to see if RunningTasksCount property is set
internal bool IsSetRunningTasksCount()
{
return this._runningTasksCount.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The status of the cluster.
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}