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:
java.io.Serializable

public class UpdateInstanceRequest
extends AmazonWebServiceRequest
implements java.io.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(java.lang.Object obj)
           
 java.lang.String getArchitecture()
          The instance architecture.
 java.lang.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.
 java.lang.String getHostname()
          The instance host name.
 java.lang.String getInstanceId()
          The instance ID.
 java.lang.String getInstanceType()
          The instance type.
 java.util.List<java.lang.String> getLayerIds()
          The instance's layer IDs.
 java.lang.String getOs()
          The instance operating system.
 java.lang.String getSshKeyName()
          The instance SSH key name.
 int hashCode()
           
 void setArchitecture(Architecture architecture)
          The instance architecture.
 void setArchitecture(java.lang.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(java.lang.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(java.lang.String hostname)
          The instance host name.
 void setInstanceId(java.lang.String instanceId)
          The instance ID.
 void setInstanceType(java.lang.String instanceType)
          The instance type.
 void setLayerIds(java.util.Collection<java.lang.String> layerIds)
          The instance's layer IDs.
 void setOs(java.lang.String os)
          The instance operating system.
 void setSshKeyName(java.lang.String sshKeyName)
          The instance SSH key name.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UpdateInstanceRequest withArchitecture(Architecture architecture)
          The instance architecture.
 UpdateInstanceRequest withArchitecture(java.lang.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(java.lang.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(java.lang.String hostname)
          The instance host name.
 UpdateInstanceRequest withInstanceId(java.lang.String instanceId)
          The instance ID.
 UpdateInstanceRequest withInstanceType(java.lang.String instanceType)
          The instance type.
 UpdateInstanceRequest withLayerIds(java.util.Collection<java.lang.String> layerIds)
          The instance's layer IDs.
 UpdateInstanceRequest withLayerIds(java.lang.String... layerIds)
          The instance's layer IDs.
 UpdateInstanceRequest withOs(java.lang.String os)
          The instance operating system.
 UpdateInstanceRequest withSshKeyName(java.lang.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 java.lang.String getInstanceId()
The instance ID.

Returns:
The instance ID.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The instance ID.

Parameters:
instanceId - The instance ID.

withInstanceId

public UpdateInstanceRequest withInstanceId(java.lang.String instanceId)
The instance ID.

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

Parameters:
instanceId - The instance ID.

getLayerIds

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

Returns:
The instance's layer IDs.

setLayerIds

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

Parameters:
layerIds - The instance's layer IDs.

withLayerIds

public UpdateInstanceRequest withLayerIds(java.lang.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.

withLayerIds

public UpdateInstanceRequest withLayerIds(java.util.Collection<java.lang.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.

getInstanceType

public java.lang.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(java.lang.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(java.lang.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.

getAutoScalingType

public java.lang.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(java.lang.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(java.lang.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.
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.
See Also:
AutoScalingType

getHostname

public java.lang.String getHostname()
The instance host name.

Returns:
The instance host name.

setHostname

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

Parameters:
hostname - The instance host name.

withHostname

public UpdateInstanceRequest withHostname(java.lang.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.

getOs

public java.lang.String getOs()
The instance operating system.

Returns:
The instance operating system.

setOs

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

Parameters:
os - The instance operating system.

withOs

public UpdateInstanceRequest withOs(java.lang.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.

getSshKeyName

public java.lang.String getSshKeyName()
The instance SSH key name.

Returns:
The instance SSH key name.

setSshKeyName

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

Parameters:
sshKeyName - The instance SSH key name.

withSshKeyName

public UpdateInstanceRequest withSshKeyName(java.lang.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.

getArchitecture

public java.lang.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(java.lang.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(java.lang.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.
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.
See Also:
Architecture

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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