public class ModifyInstanceAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable
ModifyInstanceAttribute operation.
Modifies an attribute of an instance.
| コンストラクタと説明 |
|---|
ModifyInstanceAttributeRequest()
Default constructor for a new ModifyInstanceAttributeRequest object.
|
ModifyInstanceAttributeRequest(java.lang.String instanceId,
InstanceAttributeName attribute)
Constructs a new ModifyInstanceAttributeRequest object.
|
ModifyInstanceAttributeRequest(java.lang.String instanceId,
java.lang.String attribute)
Constructs a new ModifyInstanceAttributeRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The name of the attribute being modified.
|
java.util.List<InstanceBlockDeviceMappingSpecification> |
getBlockDeviceMappings()
The new block device mappings for the instance whose attributes are
being modified.
|
java.lang.Boolean |
getDisableApiTermination()
Boolean value
|
java.lang.Boolean |
getEbsOptimized()
Boolean value
|
java.util.List<java.lang.String> |
getGroups()
Returns the value of the Groups property for this object.
|
java.lang.String |
getInstanceId()
The ID of the instance whose attribute is being modified.
|
java.lang.String |
getInstanceInitiatedShutdownBehavior()
String value
|
java.lang.String |
getInstanceType()
String value
|
java.lang.String |
getKernel()
String value
|
java.lang.String |
getRamdisk()
String value
|
java.lang.Boolean |
getSourceDestCheck()
Boolean value
|
java.lang.String |
getUserData()
String value
|
java.lang.String |
getValue()
The new value of the instance attribute being modified.
|
int |
hashCode() |
java.lang.Boolean |
isDisableApiTermination()
Boolean value
|
java.lang.Boolean |
isEbsOptimized()
Boolean value
|
java.lang.Boolean |
isSourceDestCheck()
Boolean value
|
void |
setAttribute(InstanceAttributeName attribute)
The name of the attribute being modified.
|
void |
setAttribute(java.lang.String attribute)
The name of the attribute being modified.
|
void |
setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMappingSpecification> blockDeviceMappings)
The new block device mappings for the instance whose attributes are
being modified.
|
void |
setDisableApiTermination(java.lang.Boolean disableApiTermination)
Boolean value
|
void |
setEbsOptimized(java.lang.Boolean ebsOptimized)
Boolean value
|
void |
setGroups(java.util.Collection<java.lang.String> groups)
Sets the value of the Groups property for this object.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance whose attribute is being modified.
|
void |
setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
String value
|
void |
setInstanceType(java.lang.String instanceType)
String value
|
void |
setKernel(java.lang.String kernel)
String value
|
void |
setRamdisk(java.lang.String ramdisk)
String value
|
void |
setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Boolean value
|
void |
setUserData(java.lang.String userData)
String value
|
void |
setValue(java.lang.String value)
The new value of the instance attribute being modified.
|
java.lang.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(java.lang.String attribute)
The name of the attribute being modified.
|
ModifyInstanceAttributeRequest |
withBlockDeviceMappings(java.util.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(java.lang.Boolean disableApiTermination)
Boolean value
Returns a reference to this object so that method calls can be chained together.
|
ModifyInstanceAttributeRequest |
withEbsOptimized(java.lang.Boolean ebsOptimized)
Boolean value
Returns a reference to this object so that method calls can be chained together.
|
ModifyInstanceAttributeRequest |
withGroups(java.util.Collection<java.lang.String> groups)
Sets the value of the Groups property for this object.
|
ModifyInstanceAttributeRequest |
withGroups(java.lang.String... groups)
Sets the value of the Groups property for this object.
|
ModifyInstanceAttributeRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance whose attribute is being modified.
|
ModifyInstanceAttributeRequest |
withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
String value
Returns a reference to this object so that method calls can be chained together.
|
ModifyInstanceAttributeRequest |
withInstanceType(java.lang.String instanceType)
String value
Returns a reference to this object so that method calls can be chained together.
|
ModifyInstanceAttributeRequest |
withKernel(java.lang.String kernel)
String value
Returns a reference to this object so that method calls can be chained together.
|
ModifyInstanceAttributeRequest |
withRamdisk(java.lang.String ramdisk)
String value
Returns a reference to this object so that method calls can be chained together.
|
ModifyInstanceAttributeRequest |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Boolean value
Returns a reference to this object so that method calls can be chained together.
|
ModifyInstanceAttributeRequest |
withUserData(java.lang.String userData)
String value
Returns a reference to this object so that method calls can be chained together.
|
ModifyInstanceAttributeRequest |
withValue(java.lang.String value)
The new value of the instance attribute being modified.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic ModifyInstanceAttributeRequest()
public ModifyInstanceAttributeRequest(java.lang.String instanceId,
java.lang.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
public ModifyInstanceAttributeRequest(java.lang.String instanceId,
InstanceAttributeName 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
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance whose attribute is being modified.public ModifyInstanceAttributeRequest withInstanceId(java.lang.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 java.lang.String getAttribute()
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
Available attribute
names: instanceType, kernel,
ramdisk, userData,
disableApiTermination,
instanceInitiatedShutdownBehavior,
rootDevice, blockDeviceMapping
InstanceAttributeNamepublic void setAttribute(java.lang.String attribute)
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
attribute - The name of the attribute being modified. Available attribute
names: instanceType, kernel,
ramdisk, userData,
disableApiTermination,
instanceInitiatedShutdownBehavior,
rootDevice, blockDeviceMapping
InstanceAttributeNamepublic ModifyInstanceAttributeRequest withAttribute(java.lang.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.
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized
attribute - The name of the attribute being modified. Available attribute
names: instanceType, kernel,
ramdisk, userData,
disableApiTermination,
instanceInitiatedShutdownBehavior,
rootDevice, blockDeviceMapping
InstanceAttributeNamepublic void setAttribute(InstanceAttributeName attribute)
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
attribute - The name of the attribute being modified. Available attribute
names: instanceType, kernel,
ramdisk, userData,
disableApiTermination,
instanceInitiatedShutdownBehavior,
rootDevice, blockDeviceMapping
InstanceAttributeNamepublic ModifyInstanceAttributeRequest withAttribute(InstanceAttributeName 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.
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized
attribute - The name of the attribute being modified. Available attribute
names: instanceType, kernel,
ramdisk, userData,
disableApiTermination,
instanceInitiatedShutdownBehavior,
rootDevice, blockDeviceMapping
InstanceAttributeNamepublic java.lang.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(java.lang.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(java.lang.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 java.util.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(java.util.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(java.util.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 java.lang.Boolean isSourceDestCheck()
public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
sourceDestCheck - Boolean valuepublic ModifyInstanceAttributeRequest withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck - Boolean valuepublic java.lang.Boolean getSourceDestCheck()
public java.lang.Boolean isDisableApiTermination()
public void setDisableApiTermination(java.lang.Boolean disableApiTermination)
disableApiTermination - Boolean valuepublic ModifyInstanceAttributeRequest withDisableApiTermination(java.lang.Boolean disableApiTermination)
Returns a reference to this object so that method calls can be chained together.
disableApiTermination - Boolean valuepublic java.lang.Boolean getDisableApiTermination()
public java.lang.String getInstanceType()
public void setInstanceType(java.lang.String instanceType)
instanceType - String valuepublic ModifyInstanceAttributeRequest withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType - String valuepublic java.lang.String getKernel()
public void setKernel(java.lang.String kernel)
kernel - String valuepublic ModifyInstanceAttributeRequest withKernel(java.lang.String kernel)
Returns a reference to this object so that method calls can be chained together.
kernel - String valuepublic java.lang.String getRamdisk()
public void setRamdisk(java.lang.String ramdisk)
ramdisk - String valuepublic ModifyInstanceAttributeRequest withRamdisk(java.lang.String ramdisk)
Returns a reference to this object so that method calls can be chained together.
ramdisk - String valuepublic java.lang.String getUserData()
public void setUserData(java.lang.String userData)
userData - String valuepublic ModifyInstanceAttributeRequest withUserData(java.lang.String userData)
Returns a reference to this object so that method calls can be chained together.
userData - String valuepublic java.lang.String getInstanceInitiatedShutdownBehavior()
public void setInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
instanceInitiatedShutdownBehavior - String valuepublic ModifyInstanceAttributeRequest withInstanceInitiatedShutdownBehavior(java.lang.String instanceInitiatedShutdownBehavior)
Returns a reference to this object so that method calls can be chained together.
instanceInitiatedShutdownBehavior - String valuepublic java.util.List<java.lang.String> getGroups()
public void setGroups(java.util.Collection<java.lang.String> groups)
groups - The new value for the Groups property for this object.public ModifyInstanceAttributeRequest withGroups(java.lang.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(java.util.Collection<java.lang.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 java.lang.Boolean isEbsOptimized()
public void setEbsOptimized(java.lang.Boolean ebsOptimized)
ebsOptimized - Boolean valuepublic ModifyInstanceAttributeRequest withEbsOptimized(java.lang.Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized - Boolean valuepublic java.lang.Boolean getEbsOptimized()
public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object