com.amazonaws.services.ec2.model
Class ModifyInstanceAttributeRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ModifyInstanceAttributeRequest

public class ModifyInstanceAttributeRequest
extends AmazonWebServiceRequest

Container for the parameters to the ModifyInstanceAttribute operation.

Modifies an attribute of an instance.

See Also:
AmazonEC2.modifyInstanceAttribute(ModifyInstanceAttributeRequest)

Constructor Summary
ModifyInstanceAttributeRequest()
          Default constructor for a new ModifyInstanceAttributeRequest object.
ModifyInstanceAttributeRequest(String instanceId, InstanceAttributeName attribute)
          Constructs a new ModifyInstanceAttributeRequest object.
ModifyInstanceAttributeRequest(String instanceId, String attribute)
          Constructs a new ModifyInstanceAttributeRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAttribute()
          The name of the attribute being modified.
 List<InstanceBlockDeviceMappingSpecification> getBlockDeviceMappings()
          The new block device mappings for the instance whose attributes are being modified.
 Boolean getDisableApiTermination()
          Boolean value
 Boolean getEbsOptimized()
          Boolean value
 List<String> getGroups()
          Returns the value of the Groups property for this object.
 String getInstanceId()
          The ID of the instance whose attribute is being modified.
 String getInstanceInitiatedShutdownBehavior()
          String value
 String getInstanceType()
          String value
 String getKernel()
          String value
 String getRamdisk()
          String value
 Boolean getSourceDestCheck()
          Boolean value
 String getUserData()
          String value
 String getValue()
          The new value of the instance attribute being modified.
 int hashCode()
           
 Boolean isDisableApiTermination()
          Boolean value
 Boolean isEbsOptimized()
          Boolean value
 Boolean isSourceDestCheck()
          Boolean value
 void setAttribute(InstanceAttributeName attribute)
          The name of the attribute being modified.
 void setAttribute(String attribute)
          The name of the attribute being modified.
 void setBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
          The new block device mappings for the instance whose attributes are being modified.
 void setDisableApiTermination(Boolean disableApiTermination)
          Boolean value
 void setEbsOptimized(Boolean ebsOptimized)
          Boolean value
 void setGroups(Collection<String> groups)
          Sets the value of the Groups property for this object.
 void setInstanceId(String instanceId)
          The ID of the instance whose attribute is being modified.
 void setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
          String value
 void setInstanceType(String instanceType)
          String value
 void setKernel(String kernel)
          String value
 void setRamdisk(String ramdisk)
          String value
 void setSourceDestCheck(Boolean sourceDestCheck)
          Boolean value
 void setUserData(String userData)
          String value
 void setValue(String value)
          The new value of the instance attribute being modified.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ModifyInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
          The name of the attribute being modified.
 ModifyInstanceAttributeRequest withAttribute(String attribute)
          The name of the attribute being modified.
 ModifyInstanceAttributeRequest withBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
          The new block device mappings for the instance whose attributes are being modified.
 ModifyInstanceAttributeRequest withBlockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings)
          The new block device mappings for the instance whose attributes are being modified.
 ModifyInstanceAttributeRequest withDisableApiTermination(Boolean disableApiTermination)
          Boolean value
 ModifyInstanceAttributeRequest withEbsOptimized(Boolean ebsOptimized)
          Boolean value
 ModifyInstanceAttributeRequest withGroups(Collection<String> groups)
          Sets the value of the Groups property for this object.
 ModifyInstanceAttributeRequest withGroups(String... groups)
          Sets the value of the Groups property for this object.
 ModifyInstanceAttributeRequest withInstanceId(String instanceId)
          The ID of the instance whose attribute is being modified.
 ModifyInstanceAttributeRequest withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
          String value
 ModifyInstanceAttributeRequest withInstanceType(String instanceType)
          String value
 ModifyInstanceAttributeRequest withKernel(String kernel)
          String value
 ModifyInstanceAttributeRequest withRamdisk(String ramdisk)
          String value
 ModifyInstanceAttributeRequest withSourceDestCheck(Boolean sourceDestCheck)
          Boolean value
 ModifyInstanceAttributeRequest withUserData(String userData)
          String value
 ModifyInstanceAttributeRequest withValue(String value)
          The new value of the instance attribute being modified.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModifyInstanceAttributeRequest

public ModifyInstanceAttributeRequest()
Default constructor for a new ModifyInstanceAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


ModifyInstanceAttributeRequest

public ModifyInstanceAttributeRequest(String instanceId,
                                      String attribute)
Constructs a new ModifyInstanceAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceId - The ID of the instance whose attribute is being modified.
attribute - The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping


ModifyInstanceAttributeRequest

public ModifyInstanceAttributeRequest(String instanceId,
                                      InstanceAttributeName attribute)
Constructs a new ModifyInstanceAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
instanceId - The ID of the instance whose attribute is being modified.
attribute - The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

Method Detail

getInstanceId

public String getInstanceId()
The ID of the instance whose attribute is being modified.

Returns:
The ID of the instance whose attribute is being modified.

setInstanceId

public void setInstanceId(String instanceId)
The ID of the instance whose attribute is being modified.

Parameters:
instanceId - The ID of the instance whose attribute is being modified.

withInstanceId

public ModifyInstanceAttributeRequest withInstanceId(String instanceId)
The ID of the instance whose attribute is being modified.

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

Parameters:
instanceId - The ID of the instance whose attribute is being modified.
Returns:
A reference to this updated object so that method calls can be chained together.

getAttribute

public String getAttribute()
The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

Returns:
The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

See Also:
InstanceAttributeName

setAttribute

public void setAttribute(String attribute)
The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

Parameters:
attribute - The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

See Also:
InstanceAttributeName

withAttribute

public ModifyInstanceAttributeRequest withAttribute(String attribute)
The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

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

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

Parameters:
attribute - The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceAttributeName

setAttribute

public void setAttribute(InstanceAttributeName attribute)
The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

Parameters:
attribute - The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

See Also:
InstanceAttributeName

withAttribute

public ModifyInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

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

Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized

Parameters:
attribute - The name of the attribute being modified.

Available attribute names: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDevice, blockDeviceMapping

Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceAttributeName

getValue

public String getValue()
The new value of the instance attribute being modified.

Only valid when kernel, ramdisk, userData, disableApiTermination or instanceInitiateShutdownBehavior is specified as the attribute being modified.

Returns:
The new value of the instance attribute being modified.

Only valid when kernel, ramdisk, userData, disableApiTermination or instanceInitiateShutdownBehavior is specified as the attribute being modified.


setValue

public void setValue(String value)
The new value of the instance attribute being modified.

Only valid when kernel, ramdisk, userData, disableApiTermination or instanceInitiateShutdownBehavior is specified as the attribute being modified.

Parameters:
value - The new value of the instance attribute being modified.

Only valid when kernel, ramdisk, userData, disableApiTermination or instanceInitiateShutdownBehavior is specified as the attribute being modified.


withValue

public ModifyInstanceAttributeRequest withValue(String value)
The new value of the instance attribute being modified.

Only valid when kernel, ramdisk, userData, disableApiTermination or instanceInitiateShutdownBehavior is specified as the attribute being modified.

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

Parameters:
value - The new value of the instance attribute being modified.

Only valid when kernel, ramdisk, userData, disableApiTermination or instanceInitiateShutdownBehavior is specified as the attribute being modified.

Returns:
A reference to this updated object so that method calls can be chained together.

getBlockDeviceMappings

public List<InstanceBlockDeviceMappingSpecification> getBlockDeviceMappings()
The new block device mappings for the instance whose attributes are being modified.

Only valid when blockDeviceMapping is specified as the attribute being modified.

Returns:
The new block device mappings for the instance whose attributes are being modified.

Only valid when blockDeviceMapping is specified as the attribute being modified.


setBlockDeviceMappings

public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
The new block device mappings for the instance whose attributes are being modified.

Only valid when blockDeviceMapping is specified as the attribute being modified.

Parameters:
blockDeviceMappings - The new block device mappings for the instance whose attributes are being modified.

Only valid when blockDeviceMapping is specified as the attribute being modified.


withBlockDeviceMappings

public ModifyInstanceAttributeRequest withBlockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings)
The new block device mappings for the instance whose attributes are being modified.

Only valid when blockDeviceMapping is specified as the attribute being modified.

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

Parameters:
blockDeviceMappings - The new block device mappings for the instance whose attributes are being modified.

Only valid when blockDeviceMapping is specified as the attribute being modified.

Returns:
A reference to this updated object so that method calls can be chained together.

withBlockDeviceMappings

public ModifyInstanceAttributeRequest withBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
The new block device mappings for the instance whose attributes are being modified.

Only valid when blockDeviceMapping is specified as the attribute being modified.

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

Parameters:
blockDeviceMappings - The new block device mappings for the instance whose attributes are being modified.

Only valid when blockDeviceMapping is specified as the attribute being modified.

Returns:
A reference to this updated object so that method calls can be chained together.

isSourceDestCheck

public Boolean isSourceDestCheck()
Boolean value

Returns:
Boolean value

setSourceDestCheck

public void setSourceDestCheck(Boolean sourceDestCheck)
Boolean value

Parameters:
sourceDestCheck - Boolean value

withSourceDestCheck

public ModifyInstanceAttributeRequest withSourceDestCheck(Boolean sourceDestCheck)
Boolean value

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

Parameters:
sourceDestCheck - Boolean value
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceDestCheck

public Boolean getSourceDestCheck()
Boolean value

Returns:
Boolean value

isDisableApiTermination

public Boolean isDisableApiTermination()
Boolean value

Returns:
Boolean value

setDisableApiTermination

public void setDisableApiTermination(Boolean disableApiTermination)
Boolean value

Parameters:
disableApiTermination - Boolean value

withDisableApiTermination

public ModifyInstanceAttributeRequest withDisableApiTermination(Boolean disableApiTermination)
Boolean value

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

Parameters:
disableApiTermination - Boolean value
Returns:
A reference to this updated object so that method calls can be chained together.

getDisableApiTermination

public Boolean getDisableApiTermination()
Boolean value

Returns:
Boolean value

getInstanceType

public String getInstanceType()
String value

Returns:
String value

setInstanceType

public void setInstanceType(String instanceType)
String value

Parameters:
instanceType - String value

withInstanceType

public ModifyInstanceAttributeRequest withInstanceType(String instanceType)
String value

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

Parameters:
instanceType - String value
Returns:
A reference to this updated object so that method calls can be chained together.

getKernel

public String getKernel()
String value

Returns:
String value

setKernel

public void setKernel(String kernel)
String value

Parameters:
kernel - String value

withKernel

public ModifyInstanceAttributeRequest withKernel(String kernel)
String value

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

Parameters:
kernel - String value
Returns:
A reference to this updated object so that method calls can be chained together.

getRamdisk

public String getRamdisk()
String value

Returns:
String value

setRamdisk

public void setRamdisk(String ramdisk)
String value

Parameters:
ramdisk - String value

withRamdisk

public ModifyInstanceAttributeRequest withRamdisk(String ramdisk)
String value

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

Parameters:
ramdisk - String value
Returns:
A reference to this updated object so that method calls can be chained together.

getUserData

public String getUserData()
String value

Returns:
String value

setUserData

public void setUserData(String userData)
String value

Parameters:
userData - String value

withUserData

public ModifyInstanceAttributeRequest withUserData(String userData)
String value

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

Parameters:
userData - String value
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceInitiatedShutdownBehavior

public String getInstanceInitiatedShutdownBehavior()
String value

Returns:
String value

setInstanceInitiatedShutdownBehavior

public void setInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
String value

Parameters:
instanceInitiatedShutdownBehavior - String value

withInstanceInitiatedShutdownBehavior

public ModifyInstanceAttributeRequest withInstanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
String value

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

Parameters:
instanceInitiatedShutdownBehavior - String value
Returns:
A reference to this updated object so that method calls can be chained together.

getGroups

public List<String> getGroups()
Returns the value of the Groups property for this object.

Returns:
The value of the Groups property for this object.

setGroups

public void setGroups(Collection<String> groups)
Sets the value of the Groups property for this object.

Parameters:
groups - The new value for the Groups property for this object.

withGroups

public ModifyInstanceAttributeRequest withGroups(String... groups)
Sets the value of the Groups property for this object.

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

Parameters:
groups - The new value for the Groups property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroups

public ModifyInstanceAttributeRequest withGroups(Collection<String> groups)
Sets the value of the Groups property for this object.

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

Parameters:
groups - The new value for the Groups property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

isEbsOptimized

public Boolean isEbsOptimized()
Boolean value

Returns:
Boolean value

setEbsOptimized

public void setEbsOptimized(Boolean ebsOptimized)
Boolean value

Parameters:
ebsOptimized - Boolean value

withEbsOptimized

public ModifyInstanceAttributeRequest withEbsOptimized(Boolean ebsOptimized)
Boolean value

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

Parameters:
ebsOptimized - Boolean value
Returns:
A reference to this updated object so that method calls can be chained together.

getEbsOptimized

public Boolean getEbsOptimized()
Boolean value

Returns:
Boolean value

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.