AWS SDK for .NET Documentation
InstanceState Class
AmazonAmazon.ElasticLoadBalancing.ModelInstanceState Did this page help you?   Yes   No    Tell us about it...

The InstanceState data type.

Declaration Syntax
C#
public class InstanceState
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
InstanceState()()()()
Default constructor for a new InstanceState object. Callers should use the properties or fluent setter (With...) methods to initialize this object after creating it.

Description
Provides a description of the instance state.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
InstanceId
Provides an EC2 instance ID.

ReasonCode
Provides information about the cause of OutOfService instances. Specifically, it indicates whether the cause is Elastic Load Balancing or the instance behind the load balancer. Valid value: ELB|Instance|N/A

State
Specifies the current state of the instance. Valid value: InService|OutOfService

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithDescription(String) Obsolete.
Sets the Description property

WithInstanceId(String) Obsolete.
Sets the InstanceId property

WithReasonCode(String) Obsolete.
Sets the ReasonCode property

WithState(String) Obsolete.
Sets the State property

Inheritance Hierarchy
Object
InstanceState

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)