/*
* 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
{
///
/// Health details for an AWS Elastic Beanstalk environment.
///
public partial class DescribeEnvironmentHealthResponse : AmazonWebServiceResponse
{
private ApplicationMetrics _applicationMetrics;
private List _causes = new List();
private string _color;
private string _environmentName;
private string _healthStatus;
private InstanceHealthSummary _instancesHealth;
private DateTime? _refreshedAt;
private EnvironmentHealth _status;
///
/// Gets and sets the property ApplicationMetrics.
///
/// Application request metrics for the environment.
///
///
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 Causes.
///
/// Descriptions of the data that contributed to the environment's 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.
///
/// The health
/// color of the environment.
///
///
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 EnvironmentName.
///
/// The environment's name.
///
///
[AWSProperty(Min=4, Max=40)]
public string EnvironmentName
{
get { return this._environmentName; }
set { this._environmentName = value; }
}
// Check to see if EnvironmentName property is set
internal bool IsSetEnvironmentName()
{
return this._environmentName != null;
}
///
/// Gets and sets the property HealthStatus.
///
/// The health
/// status of the environment. For example, Ok
.
///
///
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 InstancesHealth.
///
/// Summary health information for the instances in the environment.
///
///
public InstanceHealthSummary InstancesHealth
{
get { return this._instancesHealth; }
set { this._instancesHealth = value; }
}
// Check to see if InstancesHealth property is set
internal bool IsSetInstancesHealth()
{
return this._instancesHealth != null;
}
///
/// Gets and sets the property RefreshedAt.
///
/// The date and time that the health information was retrieved.
///
///
public DateTime RefreshedAt
{
get { return this._refreshedAt.GetValueOrDefault(); }
set { this._refreshedAt = value; }
}
// Check to see if RefreshedAt property is set
internal bool IsSetRefreshedAt()
{
return this._refreshedAt.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The environment's operational status. Ready
, Launching
,
/// Updating
, Terminating
, or Terminated
.
///
///
public EnvironmentHealth Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}