Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class UpdateInstanceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.opsworks.model.UpdateInstanceRequest
All Implemented Interfaces:
Serializable

public class UpdateInstanceRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the UpdateInstance operation.

Updates a specified instance.

See Also:
AWSOpsWorks.updateInstance(UpdateInstanceRequest), Serialized Form

Constructor Summary
UpdateInstanceRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getArchitecture()
          The instance architecture.
 String getAutoScalingType()
          The instance's auto scaling type, which has three possible values: AlwaysRunning: A 24/7 instance, which is not affected by auto scaling. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
 String getHostname()
          The instance host name.
 String getInstanceId()
          The instance ID.
 String getInstanceType()
          The instance type.
 List<String> getLayerIds()
          The instance's layer IDs.
 String getOs()
          The instance operating system.
 String getSshKeyName()
          The instance SSH key name.
 int hashCode()
           
 void setArchitecture(Architecture architecture)
          The instance architecture.
 void setArchitecture(String architecture)
          The instance architecture.
 void setAutoScalingType(AutoScalingType autoScalingType)
          The instance's auto scaling type, which has three possible values: AlwaysRunning: A 24/7 instance, which is not affected by auto scaling. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
 void setAutoScalingType(String autoScalingType)
          The instance's auto scaling type, which has three possible values: AlwaysRunning: A 24/7 instance, which is not affected by auto scaling. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
 void setHostname(String hostname)
          The instance host name.
 void setInstanceId(String instanceId)
          The instance ID.
 void setInstanceType(String instanceType)
          The instance type.
 void setLayerIds(Collection<String> layerIds)
          The instance's layer IDs.
 void setOs(String os)
          The instance operating system.
 void setSshKeyName(String sshKeyName)
          The instance SSH key name.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UpdateInstanceRequest withArchitecture(Architecture architecture)
          The instance architecture.
 UpdateInstanceRequest withArchitecture(String architecture)
          The instance architecture.
 UpdateInstanceRequest withAutoScalingType(AutoScalingType autoScalingType)
          The instance's auto scaling type, which has three possible values: AlwaysRunning: A 24/7 instance, which is not affected by auto scaling. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
 UpdateInstanceRequest withAutoScalingType(String autoScalingType)
          The instance's auto scaling type, which has three possible values: AlwaysRunning: A 24/7 instance, which is not affected by auto scaling. TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule. LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
 UpdateInstanceRequest withHostname(String hostname)
          The instance host name.
 UpdateInstanceRequest withInstanceId(String instanceId)
          The instance ID.
 UpdateInstanceRequest withInstanceType(String instanceType)
          The instance type.
 UpdateInstanceRequest withLayerIds(Collection<String> layerIds)
          The instance's layer IDs.
 UpdateInstanceRequest withLayerIds(String... layerIds)
          The instance's layer IDs.
 UpdateInstanceRequest withOs(String os)
          The instance operating system.
 UpdateInstanceRequest withSshKeyName(String sshKeyName)
          The instance SSH key name.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateInstanceRequest

public UpdateInstanceRequest()
Method Detail

getInstanceId

public String getInstanceId()
The instance ID.

Returns:
The instance ID.

setInstanceId

public void setInstanceId(String instanceId)
The instance ID.

Parameters:
instanceId - The instance ID.

withInstanceId

public UpdateInstanceRequest withInstanceId(String instanceId)
The instance ID.

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

Parameters:
instanceId - The instance ID.
Returns:
A reference to this updated object so that method calls can be chained together.

getLayerIds

public List<String> getLayerIds()
The instance's layer IDs.

Returns:
The instance's layer IDs.

setLayerIds

public void setLayerIds(Collection<String> layerIds)
The instance's layer IDs.

Parameters:
layerIds - The instance's layer IDs.

withLayerIds

public UpdateInstanceRequest withLayerIds(String... layerIds)
The instance's layer IDs.

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

Parameters:
layerIds - The instance's layer IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

withLayerIds

public UpdateInstanceRequest withLayerIds(Collection<String> layerIds)
The instance's layer IDs.

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

Parameters:
layerIds - The instance's layer IDs.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public String getInstanceType()
The instance type. OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

Returns:
The instance type. OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

setInstanceType

public void setInstanceType(String instanceType)
The instance type. OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

Parameters:
instanceType - The instance type. OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

withInstanceType

public UpdateInstanceRequest withInstanceType(String instanceType)
The instance type. OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.

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

Parameters:
instanceType - The instance type. OpsWorks supports all instance types except Cluster Compute, Cluster GPU, and High Memory Cluster. For more information, see Instance Families and Types. The parameter values that you use to specify the various types are in the API Name column of the Available Instance Types table.
Returns:
A reference to this updated object so that method calls can be chained together.

getAutoScalingType

public String getAutoScalingType()
The instance's auto scaling type, which has three possible values:

Constraints:
Allowed Values: load, timer

Returns:
The instance's auto scaling type, which has three possible values:
  • AlwaysRunning: A 24/7 instance, which is not affected by auto scaling.
  • TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
See Also:
AutoScalingType

setAutoScalingType

public void setAutoScalingType(String autoScalingType)
The instance's auto scaling type, which has three possible values:

Constraints:
Allowed Values: load, timer

Parameters:
autoScalingType - The instance's auto scaling type, which has three possible values:
  • AlwaysRunning: A 24/7 instance, which is not affected by auto scaling.
  • TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
See Also:
AutoScalingType

withAutoScalingType

public UpdateInstanceRequest withAutoScalingType(String autoScalingType)
The instance's auto scaling type, which has three possible values:

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

Constraints:
Allowed Values: load, timer

Parameters:
autoScalingType - The instance's auto scaling type, which has three possible values:
  • AlwaysRunning: A 24/7 instance, which is not affected by auto scaling.
  • TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AutoScalingType

setAutoScalingType

public void setAutoScalingType(AutoScalingType autoScalingType)
The instance's auto scaling type, which has three possible values:

Constraints:
Allowed Values: load, timer

Parameters:
autoScalingType - The instance's auto scaling type, which has three possible values:
  • AlwaysRunning: A 24/7 instance, which is not affected by auto scaling.
  • TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
See Also:
AutoScalingType

withAutoScalingType

public UpdateInstanceRequest withAutoScalingType(AutoScalingType autoScalingType)
The instance's auto scaling type, which has three possible values:

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

Constraints:
Allowed Values: load, timer

Parameters:
autoScalingType - The instance's auto scaling type, which has three possible values:
  • AlwaysRunning: A 24/7 instance, which is not affected by auto scaling.
  • TimeBasedAutoScaling: A time-based auto scaling instance, which is started and stopped based on a specified schedule.
  • LoadBasedAutoScaling: A load-based auto scaling instance, which is started and stopped based on load metrics.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
AutoScalingType

getHostname

public String getHostname()
The instance host name.

Returns:
The instance host name.

setHostname

public void setHostname(String hostname)
The instance host name.

Parameters:
hostname - The instance host name.

withHostname

public UpdateInstanceRequest withHostname(String hostname)
The instance host name.

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

Parameters:
hostname - The instance host name.
Returns:
A reference to this updated object so that method calls can be chained together.

getOs

public String getOs()
The instance operating system.

Returns:
The instance operating system.

setOs

public void setOs(String os)
The instance operating system.

Parameters:
os - The instance operating system.

withOs

public UpdateInstanceRequest withOs(String os)
The instance operating system.

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

Parameters:
os - The instance operating system.
Returns:
A reference to this updated object so that method calls can be chained together.

getSshKeyName

public String getSshKeyName()
The instance SSH key name.

Returns:
The instance SSH key name.

setSshKeyName

public void setSshKeyName(String sshKeyName)
The instance SSH key name.

Parameters:
sshKeyName - The instance SSH key name.

withSshKeyName

public UpdateInstanceRequest withSshKeyName(String sshKeyName)
The instance SSH key name.

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

Parameters:
sshKeyName - The instance SSH key name.
Returns:
A reference to this updated object so that method calls can be chained together.

getArchitecture

public String getArchitecture()
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Constraints:
Allowed Values: x86_64, i386

Returns:
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
See Also:
Architecture

setArchitecture

public void setArchitecture(String architecture)
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Constraints:
Allowed Values: x86_64, i386

Parameters:
architecture - The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
See Also:
Architecture

withArchitecture

public UpdateInstanceRequest withArchitecture(String architecture)
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

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

Constraints:
Allowed Values: x86_64, i386

Parameters:
architecture - The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Architecture

setArchitecture

public void setArchitecture(Architecture architecture)
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

Constraints:
Allowed Values: x86_64, i386

Parameters:
architecture - The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
See Also:
Architecture

withArchitecture

public UpdateInstanceRequest withArchitecture(Architecture architecture)
The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.

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

Constraints:
Allowed Values: x86_64, i386

Parameters:
architecture - The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Architecture

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.