|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ModifyInstanceAttributeRequest
public class ModifyInstanceAttributeRequest
Container for the parameters to the ModifyInstanceAttribute operation
.
Modifies an attribute of an instance.
AmazonEC2.modifyInstanceAttribute(ModifyInstanceAttributeRequest)
Constructor Summary | |
---|---|
ModifyInstanceAttributeRequest()
Default constructor for a new ModifyInstanceAttributeRequest object. |
|
ModifyInstanceAttributeRequest(String instanceId,
String attribute)
Constructs a new ModifyInstanceAttributeRequest object. |
Method Summary | |
---|---|
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. |
String |
getInstanceId()
The ID of the instance whose attribute is being modified. |
String |
getValue()
The new value of the instance 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 |
setInstanceId(String instanceId)
The ID of the instance whose attribute is being modified. |
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(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 |
withInstanceId(String instanceId)
The ID of the instance whose attribute is being modified. |
ModifyInstanceAttributeRequest |
withValue(String value)
The new value of the instance attribute being modified. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModifyInstanceAttributeRequest()
public ModifyInstanceAttributeRequest(String instanceId, String attribute)
instanceId
- The ID of the instance whose attribute is being
modified.attribute
- The name of the attribute being modified. Available attribute names: kernel, ramdisk, userData, blockDeviceMapping, disableApiTermination, instanceInitiatedShutdownBehavior
Method Detail |
---|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance whose attribute is being modified.public ModifyInstanceAttributeRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance whose attribute is being modified.
public String getAttribute()
Available attribute names: kernel, ramdisk, userData, blockDeviceMapping, disableApiTermination, instanceInitiatedShutdownBehavior
Available attribute names: kernel, ramdisk, userData, blockDeviceMapping, disableApiTermination, instanceInitiatedShutdownBehavior
public void setAttribute(String attribute)
Available attribute names: kernel, ramdisk, userData, blockDeviceMapping, disableApiTermination, instanceInitiatedShutdownBehavior
attribute
- The name of the attribute being modified. Available attribute names: kernel, ramdisk, userData, blockDeviceMapping, disableApiTermination, instanceInitiatedShutdownBehavior
public ModifyInstanceAttributeRequest withAttribute(String attribute)
Available attribute names: kernel, ramdisk, userData, blockDeviceMapping, disableApiTermination, instanceInitiatedShutdownBehavior
Returns a reference to this object so that method calls can be chained together.
attribute
- The name of the attribute being modified. Available attribute names: kernel, ramdisk, userData, blockDeviceMapping, disableApiTermination, instanceInitiatedShutdownBehavior
public String getValue()
Only valid when kernel, ramdisk, userData disableApiTermination, or instanceInitiateShutdownBehavior is specified as the attribute being modified.
Only valid when kernel, ramdisk, userData disableApiTermination, or instanceInitiateShutdownBehavior is specified as the attribute being modified.
public void setValue(String value)
Only valid when kernel, ramdisk, userData disableApiTermination, or instanceInitiateShutdownBehavior is specified as the attribute being modified.
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.
public ModifyInstanceAttributeRequest withValue(String value)
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.
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.
public List<InstanceBlockDeviceMappingSpecification> getBlockDeviceMappings()
Only valid when blockDeviceMapping is specified as the attribute being modified.
Only valid when blockDeviceMapping is specified as the attribute being modified.
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
Only valid when blockDeviceMapping is specified as the attribute being modified.
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.
public ModifyInstanceAttributeRequest withBlockDeviceMappings(InstanceBlockDeviceMappingSpecification... blockDeviceMappings)
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.
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.
public ModifyInstanceAttributeRequest withBlockDeviceMappings(Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
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.
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.
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |