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
 String getAvailabilityZone()
          Availability zones associated with this instance.
 String getHealthStatus()
          The instance's health status.
 String getInstanceId()
          Specifies the EC2 instance ID.
 String getLaunchConfigurationName()
          The launch configuration associated with this instance.
 String getLifecycleState()
          Contains a description of the current lifecycle state.
 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 EC2 instance ID.
 void setLaunchConfigurationName(String launchConfigurationName)
          The launch configuration associated with this instance.
 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 EC2 instance ID.
 Instance withLaunchConfigurationName(String launchConfigurationName)
          The launch configuration associated with this instance.
 Instance withLifecycleState(String lifecycleState)
          Contains a description of the current lifecycle state.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance

public Instance()
Method Detail

getInstanceId

public String getInstanceId()
Specifies the EC2 instance ID.

Constraints:
Length: 1 - 16
Pattern: [ -??-??-?\r\n\t]*

Returns:
Specifies the EC2 instance ID.

setInstanceId

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

Constraints:
Length: 1 - 16
Pattern: [ -??-??-?\r\n\t]*

Parameters:
instanceId - Specifies the EC2 instance ID.

withInstanceId

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

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 EC2 instance ID.
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:
Length: 1 - 32
Pattern: [ -??-??-?\r\n\t]*

Returns:
Contains a description of the current lifecycle state.

setLifecycleState

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

Constraints:
Length: 1 - 32
Pattern: [ -??-??-?\r\n\t]*

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

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:
Length: 1 - 32
Pattern: [ -??-??-?\r\n\t]*

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.

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()


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