/* * 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 task in an ECS cluster. /// public partial class EcsTaskDetails { private string _arn; private List _containers = new List(); private string _definitionArn; private string _group; private DateTime? _startedAt; private string _startedBy; private List _tags = new List(); private DateTime? _taskCreatedAt; private string _version; private List _volumes = new List(); /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the task. /// /// 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 Containers. /// /// The containers that's 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 DefinitionArn. /// /// The ARN of the task definition that creates the task. /// /// public string DefinitionArn { get { return this._definitionArn; } set { this._definitionArn = value; } } // Check to see if DefinitionArn property is set internal bool IsSetDefinitionArn() { return this._definitionArn != 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. /// /// public DateTime StartedAt { get { return this._startedAt.GetValueOrDefault(); } set { this._startedAt = value; } } // Check to see if StartedAt property is set internal bool IsSetStartedAt() { return this._startedAt.HasValue; } /// /// Gets and sets the property StartedBy. /// /// Contains the tag specified when a task is started. /// /// 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 Tags. /// /// The tags of the ECS Task. /// /// 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 TaskCreatedAt. /// /// The Unix timestamp for the time when the task was created. /// /// public DateTime TaskCreatedAt { get { return this._taskCreatedAt.GetValueOrDefault(); } set { this._taskCreatedAt = value; } } // Check to see if TaskCreatedAt property is set internal bool IsSetTaskCreatedAt() { return this._taskCreatedAt.HasValue; } /// /// 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. /// /// The list of data volume definitions for the task. /// /// 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; } } }