com.amazonaws.services.autoscaling.model
Class Instance

java.lang.Object
  extended by com.amazonaws.services.autoscaling.model.Instance

public class Instance
extends Object

The Instance data type.


Constructor Summary
Instance()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          Availability Zones associated with this instance.
 String getHealthStatus()
          The instance's health status.
 String getInstanceId()
          Specifies the ID of the Amazon EC2 instance.
 String getLaunchConfigurationName()
          The launch configuration associated with this instance.
 String getLifecycleState()
          Contains a description of the current lifecycle state.
 int hashCode()
           
 void setAvailabilityZone(String availabilityZone)
          Availability Zones associated with this instance.
 void setHealthStatus(String healthStatus)
          The instance's health status.
 void setInstanceId(String instanceId)
          Specifies the ID of the Amazon EC2 instance.
 void setLaunchConfigurationName(String launchConfigurationName)
          The launch configuration associated with this instance.
 void setLifecycleState(LifecycleState lifecycleState)
          Contains a description of the current lifecycle state.
 void setLifecycleState(String lifecycleState)
          Contains a description of the current lifecycle state.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Instance withAvailabilityZone(String availabilityZone)
          Availability Zones associated with this instance.
 Instance withHealthStatus(String healthStatus)
          The instance's health status.
 Instance withInstanceId(String instanceId)
          Specifies the ID of the Amazon EC2 instance.
 Instance withLaunchConfigurationName(String launchConfigurationName)
          The launch configuration associated with this instance.
 Instance withLifecycleState(LifecycleState lifecycleState)
          Contains a description of the current lifecycle state.
 Instance withLifecycleState(String lifecycleState)
          Contains a description of the current lifecycle state.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

public Instance()
Method Detail

getInstanceId

public String getInstanceId()
Specifies the ID of the Amazon EC2 instance.

Constraints:
Length: 1 - 16
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Specifies the ID of the Amazon EC2 instance.

setInstanceId

public void setInstanceId(String instanceId)
Specifies the ID of the Amazon EC2 instance.

Constraints:
Length: 1 - 16
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
instanceId - Specifies the ID of the Amazon EC2 instance.

withInstanceId

public Instance withInstanceId(String instanceId)
Specifies the ID of the Amazon EC2 instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 16
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
instanceId - Specifies the ID of the Amazon EC2 instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getAvailabilityZone

public String getAvailabilityZone()
Availability Zones associated with this instance.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
Availability Zones associated with this instance.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
Availability Zones associated with this instance.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
availabilityZone - Availability Zones associated with this instance.

withAvailabilityZone

public Instance withAvailabilityZone(String availabilityZone)
Availability Zones associated with this instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
availabilityZone - Availability Zones associated with this instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getLifecycleState

public String getLifecycleState()
Contains a description of the current lifecycle state.

Constraints:
Allowed Values: Pending, Quarantined, InService, Terminating, Terminated

Returns:
Contains a description of the current lifecycle state.
See Also:
LifecycleState

setLifecycleState

public void setLifecycleState(String lifecycleState)
Contains a description of the current lifecycle state.

Constraints:
Allowed Values: Pending, Quarantined, InService, Terminating, Terminated

Parameters:
lifecycleState - Contains a description of the current lifecycle state.
See Also:
LifecycleState

withLifecycleState

public Instance withLifecycleState(String lifecycleState)
Contains a description of the current lifecycle state.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Pending, Quarantined, InService, Terminating, Terminated

Parameters:
lifecycleState - Contains a description of the current lifecycle state.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
LifecycleState

setLifecycleState

public void setLifecycleState(LifecycleState lifecycleState)
Contains a description of the current lifecycle state.

Constraints:
Allowed Values: Pending, Quarantined, InService, Terminating, Terminated

Parameters:
lifecycleState - Contains a description of the current lifecycle state.
See Also:
LifecycleState

withLifecycleState

public Instance withLifecycleState(LifecycleState lifecycleState)
Contains a description of the current lifecycle state.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Pending, Quarantined, InService, Terminating, Terminated

Parameters:
lifecycleState - Contains a description of the current lifecycle state.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
LifecycleState

getHealthStatus

public String getHealthStatus()
The instance's health status.

Constraints:
Length: 1 - 32
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The instance's health status.

setHealthStatus

public void setHealthStatus(String healthStatus)
The instance's health status.

Constraints:
Length: 1 - 32
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
healthStatus - The instance's health status.

withHealthStatus

public Instance withHealthStatus(String healthStatus)
The instance's health status.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 32
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
healthStatus - The instance's health status.
Returns:
A reference to this updated object so that method calls can be chained together.

getLaunchConfigurationName

public String getLaunchConfigurationName()
The launch configuration associated with this instance.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The launch configuration associated with this instance.

setLaunchConfigurationName

public void setLaunchConfigurationName(String launchConfigurationName)
The launch configuration associated with this instance.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
launchConfigurationName - The launch configuration associated with this instance.

withLaunchConfigurationName

public Instance withLaunchConfigurationName(String launchConfigurationName)
The launch configuration associated with this instance.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 255
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
launchConfigurationName - The launch configuration associated with this instance.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.