/* * 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 a task in a cluster. /// public partial class AwsEcsTaskDetails { private string _clusterArn; private List _containers = new List(); private string _createdAt; private string _group; private string _startedAt; private string _startedBy; private string _taskDefinitionArn; private string _version; private List _volumes = new List(); /// /// Gets and sets the property ClusterArn. /// /// The Amazon Resource Name (ARN) of the cluster that hosts the task. /// /// 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 Containers. /// /// The containers that are associated with the task. /// /// public List Containers { get { return this._containers; } set { this._containers = value; } } // Check to see if Containers property is set internal bool IsSetContainers() { return this._containers != null && this._containers.Count > 0; } /// /// Gets and sets the property CreatedAt. /// /// The Unix timestamp for the time when the task was created. More specifically, it's /// for the time when the task entered the PENDING state. /// /// public string CreatedAt { get { return this._createdAt; } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt != null; } /// /// Gets and sets the property Group. /// /// The name of the task group that's associated with the task. /// /// public string Group { get { return this._group; } set { this._group = value; } } // Check to see if Group property is set internal bool IsSetGroup() { return this._group != null; } /// /// Gets and sets the property StartedAt. /// /// The Unix timestamp for the time when the task started. More specifically, it's for /// the time when the task transitioned from the PENDING state to the RUNNING /// state. /// /// public string StartedAt { get { return this._startedAt; } set { this._startedAt = value; } } // Check to see if StartedAt property is set internal bool IsSetStartedAt() { return this._startedAt != null; } /// /// Gets and sets the property StartedBy. /// /// The tag specified when a task is started. If an Amazon ECS service started the task, /// the startedBy parameter contains the deployment ID of that service. /// /// public string StartedBy { get { return this._startedBy; } set { this._startedBy = value; } } // Check to see if StartedBy property is set internal bool IsSetStartedBy() { return this._startedBy != null; } /// /// Gets and sets the property TaskDefinitionArn. /// /// The ARN of the task definition that creates the task. /// /// public string TaskDefinitionArn { get { return this._taskDefinitionArn; } set { this._taskDefinitionArn = value; } } // Check to see if TaskDefinitionArn property is set internal bool IsSetTaskDefinitionArn() { return this._taskDefinitionArn != null; } /// /// Gets and sets the property Version. /// /// The version counter for the task. /// /// public string Version { get { return this._version; } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version != null; } /// /// Gets and sets the property Volumes. /// /// Details about the data volume that is used in a task definition. /// /// public List Volumes { get { return this._volumes; } set { this._volumes = value; } } // Check to see if Volumes property is set internal bool IsSetVolumes() { return this._volumes != null && this._volumes.Count > 0; } } }