/*
* 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 an instance in a deployment.
///
[Obsolete("InstanceSummary is deprecated, use DeploymentTarget instead.")]
public partial class InstanceSummary
{
private string _deploymentId;
private string _instanceId;
private InstanceType _instanceType;
private DateTime? _lastUpdatedAt;
private List _lifecycleEvents = new List();
private InstanceStatus _status;
///
/// 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 InstanceId.
///
/// The instance ID.
///
///
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
///
/// Gets and sets the property InstanceType.
///
/// Information about which environment an instance belongs to in a blue/green deployment.
///
/// -
///
/// BLUE: The instance is part of the original environment.
///
///
-
///
/// GREEN: The instance is part of the replacement environment.
///
///
///
public InstanceType InstanceType
{
get { return this._instanceType; }
set { this._instanceType = value; }
}
// Check to see if InstanceType property is set
internal bool IsSetInstanceType()
{
return this._instanceType != null;
}
///
/// Gets and sets the property LastUpdatedAt.
///
/// A timestamp that indicates when the instance information was last updated.
///
///
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.
///
/// A list of lifecycle events for this 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 deployment status for this instance:
///
/// -
///
///
Pending
: The deployment is pending for this instance.
///
/// -
///
///
In Progress
: The deployment is in progress for this instance.
///
/// -
///
///
Succeeded
: The deployment has succeeded for this instance.
///
/// -
///
///
Failed
: The deployment has failed for this instance.
///
/// -
///
///
Skipped
: The deployment has been skipped for this instance.
///
/// -
///
///
Unknown
: The deployment status is unknown for this instance.
///
///
///
public InstanceStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}