/*
* 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 guardduty-2017-11-28.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.GuardDuty.Model
{
///
/// Contains information about the details of the ECS Cluster.
///
public partial class EcsClusterDetails
{
private int? _activeServicesCount;
private string _arn;
private string _name;
private int? _registeredContainerInstancesCount;
private int? _runningTasksCount;
private string _status;
private List _tags = new List();
private EcsTaskDetails _taskDetails;
///
/// Gets and sets the property ActiveServicesCount.
///
/// The number of services that are running on the cluster in an ACTIVE state.
///
///
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 Arn.
///
/// The Amazon Resource Name (ARN) that identifies the cluster.
///
///
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the ECS Cluster.
///
///
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 RegisteredContainerInstancesCount.
///
/// The number of container instances registered into the cluster.
///
///
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 ECS 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;
}
///
/// Gets and sets the property Tags.
///
/// The tags of the ECS Cluster.
///
///
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 TaskDetails.
///
/// Contains information about the details of the ECS Task.
///
///
public EcsTaskDetails TaskDetails
{
get { return this._taskDetails; }
set { this._taskDetails = value; }
}
// Check to see if TaskDetails property is set
internal bool IsSetTaskDetails()
{
return this._taskDetails != null;
}
}
}