/*
* 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 autoscaling-2011-01-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.AutoScaling.Model
{
///
/// Container for the parameters to the SetInstanceHealth operation.
/// Sets the health status of the specified instance.
///
///
///
/// For more information, see Health
/// checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User Guide.
///
///
public partial class SetInstanceHealthRequest : AmazonAutoScalingRequest
{
private string _healthStatus;
private string _instanceId;
private bool? _shouldRespectGracePeriod;
///
/// Gets and sets the property HealthStatus.
///
/// The health status of the instance. Set to Healthy
to have the instance
/// remain in service. Set to Unhealthy
to have the instance be out of service.
/// Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.
///
///
[AWSProperty(Required=true, Min=1, Max=32)]
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 instance.
///
///
[AWSProperty(Required=true, Min=1, Max=19)]
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 ShouldRespectGracePeriod.
///
/// If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod
/// specified for the group, by default, this call respects the grace period. Set this
/// to False
, to have the call not respect the grace period associated with
/// the group.
///
///
///
/// For more information about the health check grace period, see CreateAutoScalingGroup
/// in the Amazon EC2 Auto Scaling API Reference.
///
///
public bool ShouldRespectGracePeriod
{
get { return this._shouldRespectGracePeriod.GetValueOrDefault(); }
set { this._shouldRespectGracePeriod = value; }
}
// Check to see if ShouldRespectGracePeriod property is set
internal bool IsSetShouldRespectGracePeriod()
{
return this._shouldRespectGracePeriod.HasValue;
}
}
}