/*
* 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 elasticbeanstalk-2010-12-01.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.ElasticBeanstalk.Model
{
///
/// Detailed health information about an Amazon EC2 instance in your Elastic Beanstalk
/// environment.
///
public partial class SingleInstanceHealth
{
private ApplicationMetrics _applicationMetrics;
private string _availabilityZone;
private List _causes = new List();
private string _color;
private Deployment _deployment;
private string _healthStatus;
private string _instanceId;
private string _instanceType;
private DateTime? _launchedAt;
private SystemStatus _system;
///
/// Gets and sets the property ApplicationMetrics.
///
/// Request metrics from your application.
///
///
public ApplicationMetrics ApplicationMetrics
{
get { return this._applicationMetrics; }
set { this._applicationMetrics = value; }
}
// Check to see if ApplicationMetrics property is set
internal bool IsSetApplicationMetrics()
{
return this._applicationMetrics != null;
}
///
/// Gets and sets the property AvailabilityZone.
///
/// The availability zone in which the instance runs.
///
///
public string AvailabilityZone
{
get { return this._availabilityZone; }
set { this._availabilityZone = value; }
}
// Check to see if AvailabilityZone property is set
internal bool IsSetAvailabilityZone()
{
return this._availabilityZone != null;
}
///
/// Gets and sets the property Causes.
///
/// Represents the causes, which provide more information about the current health status.
///
///
public List Causes
{
get { return this._causes; }
set { this._causes = value; }
}
// Check to see if Causes property is set
internal bool IsSetCauses()
{
return this._causes != null && this._causes.Count > 0;
}
///
/// Gets and sets the property Color.
///
/// Represents the color indicator that gives you information about the health of the
/// EC2 instance. For more information, see Health
/// Colors and Statuses.
///
///
public string Color
{
get { return this._color; }
set { this._color = value; }
}
// Check to see if Color property is set
internal bool IsSetColor()
{
return this._color != null;
}
///
/// Gets and sets the property Deployment.
///
/// Information about the most recent deployment to an instance.
///
///
public Deployment Deployment
{
get { return this._deployment; }
set { this._deployment = value; }
}
// Check to see if Deployment property is set
internal bool IsSetDeployment()
{
return this._deployment != null;
}
///
/// Gets and sets the property HealthStatus.
///
/// Returns the health status of the specified instance. For more information, see Health
/// Colors and Statuses.
///
///
public string HealthStatus
{
get { return this._healthStatus; }
set { this._healthStatus = value; }
}
// Check to see if HealthStatus property is set
internal bool IsSetHealthStatus()
{
return this._healthStatus != null;
}
///
/// Gets and sets the property InstanceId.
///
/// The ID of the Amazon EC2 instance.
///
///
[AWSProperty(Min=1, Max=255)]
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.
///
/// The instance's type.
///
///
public string 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 LaunchedAt.
///
/// The time at which the EC2 instance was launched.
///
///
public DateTime LaunchedAt
{
get { return this._launchedAt.GetValueOrDefault(); }
set { this._launchedAt = value; }
}
// Check to see if LaunchedAt property is set
internal bool IsSetLaunchedAt()
{
return this._launchedAt.HasValue;
}
///
/// Gets and sets the property System.
///
/// Operating system metrics from the instance.
///
///
public SystemStatus System
{
get { return this._system; }
set { this._system = value; }
}
// Check to see if System property is set
internal bool IsSetSystem()
{
return this._system != null;
}
}
}