/* * 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 { /// /// A target Amazon EC2 or on-premises instance during a deployment that uses the EC2/On-premises /// compute platform. /// public partial class InstanceTarget { private string _deploymentId; private TargetLabel _instanceLabel; private DateTime? _lastUpdatedAt; private List _lifecycleEvents = new List(); private TargetStatus _status; private string _targetArn; private string _targetId; /// /// 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 InstanceLabel. /// /// A label that identifies whether the instance is an original target (BLUE) /// or a replacement target (GREEN). /// /// public TargetLabel InstanceLabel { get { return this._instanceLabel; } set { this._instanceLabel = value; } } // Check to see if InstanceLabel property is set internal bool IsSetInstanceLabel() { return this._instanceLabel != null; } /// /// Gets and sets the property LastUpdatedAt. /// /// The date and time when the target instance 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 instance. /// /// 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 EC2/On-premises deployment's target instance. /// /// 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 instanceTarget. /// /// /// 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; } } }