/*
* 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 codedeploy-2014-10-06.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.CodeDeploy.Model
{
///
/// Information about the target of an Amazon ECS deployment.
///
public partial class ECSTarget
{
private string _deploymentId;
private DateTime? _lastUpdatedAt;
private List _lifecycleEvents = new List();
private TargetStatus _status;
private string _targetArn;
private string _targetId;
private List _taskSetsInfo = new List();
///
/// Gets and sets the property DeploymentId.
///
/// The unique ID of a deployment.
///
///
public string DeploymentId
{
get { return this._deploymentId; }
set { this._deploymentId = value; }
}
// Check to see if DeploymentId property is set
internal bool IsSetDeploymentId()
{
return this._deploymentId != null;
}
///
/// Gets and sets the property LastUpdatedAt.
///
/// The date and time when the target Amazon ECS application was updated by a deployment.
///
///
///
public DateTime LastUpdatedAt
{
get { return this._lastUpdatedAt.GetValueOrDefault(); }
set { this._lastUpdatedAt = value; }
}
// Check to see if LastUpdatedAt property is set
internal bool IsSetLastUpdatedAt()
{
return this._lastUpdatedAt.HasValue;
}
///
/// Gets and sets the property LifecycleEvents.
///
/// The lifecycle events of the deployment to this target Amazon ECS application.
///
///
public List LifecycleEvents
{
get { return this._lifecycleEvents; }
set { this._lifecycleEvents = value; }
}
// Check to see if LifecycleEvents property is set
internal bool IsSetLifecycleEvents()
{
return this._lifecycleEvents != null && this._lifecycleEvents.Count > 0;
}
///
/// Gets and sets the property Status.
///
/// The status an Amazon ECS deployment's target ECS application.
///
///
public TargetStatus 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 TargetArn.
///
/// The Amazon Resource Name (ARN) of the target.
///
///
public string TargetArn
{
get { return this._targetArn; }
set { this._targetArn = value; }
}
// Check to see if TargetArn property is set
internal bool IsSetTargetArn()
{
return this._targetArn != null;
}
///
/// Gets and sets the property TargetId.
///
/// The unique ID of a deployment target that has a type of ecsTarget
.
///
///
public string TargetId
{
get { return this._targetId; }
set { this._targetId = value; }
}
// Check to see if TargetId property is set
internal bool IsSetTargetId()
{
return this._targetId != null;
}
///
/// Gets and sets the property TaskSetsInfo.
///
/// The ECSTaskSet
objects associated with the ECS target.
///
///
public List TaskSetsInfo
{
get { return this._taskSetsInfo; }
set { this._taskSetsInfo = value; }
}
// Check to see if TaskSetsInfo property is set
internal bool IsSetTaskSetsInfo()
{
return this._taskSetsInfo != null && this._taskSetsInfo.Count > 0;
}
}
}