|
|||||||
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. |
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. |
Boolean |
getSourceDestCheck()
Boolean value |
String |
getValue()
The new value of the instance attribute being modified. |
Boolean |
isSourceDestCheck()
Boolean value |
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 |
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 |
setSourceDestCheck(Boolean sourceDestCheck)
Boolean 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(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 |
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 |
withSourceDestCheck(Boolean sourceDestCheck)
Boolean value |
ModifyInstanceAttributeRequest |
withValue(String value)
The new value of the instance attribute being modified. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
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: instanceType
,
kernel
, ramdisk
, userData
,
disableApiTermination
,
instanceInitiatedShutdownBehavior
,
rootDevice
, blockDeviceMapping
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: instanceType
, kernel
,
ramdisk
, userData
,
disableApiTermination
,
instanceInitiatedShutdownBehavior
,
rootDevice
, blockDeviceMapping
Available attribute
names: instanceType
, kernel
,
ramdisk
, userData
,
disableApiTermination
,
instanceInitiatedShutdownBehavior
,
rootDevice
, blockDeviceMapping
public void setAttribute(String attribute)
Available attribute
names: instanceType
, kernel
,
ramdisk
, userData
,
disableApiTermination
,
instanceInitiatedShutdownBehavior
,
rootDevice
, blockDeviceMapping
attribute
- The name of the attribute being modified. Available attribute
names: instanceType
, kernel
,
ramdisk
, userData
,
disableApiTermination
,
instanceInitiatedShutdownBehavior
,
rootDevice
, blockDeviceMapping
public ModifyInstanceAttributeRequest withAttribute(String attribute)
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.
attribute
- The name of the attribute being modified. Available attribute
names: instanceType
, kernel
,
ramdisk
, userData
,
disableApiTermination
,
instanceInitiatedShutdownBehavior
,
rootDevice
, blockDeviceMapping
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 Boolean isSourceDestCheck()
public void setSourceDestCheck(Boolean sourceDestCheck)
sourceDestCheck
- Boolean valuepublic ModifyInstanceAttributeRequest withSourceDestCheck(Boolean sourceDestCheck)
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck
- Boolean value
public Boolean getSourceDestCheck()
public List<String> getGroups()
public void setGroups(Collection<String> groups)
groups
- The new value for the Groups property for this object.public ModifyInstanceAttributeRequest withGroups(String... groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The new value for the Groups property for this object.
public ModifyInstanceAttributeRequest withGroups(Collection<String> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- The new value for the Groups property for this object.
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 |