public class ResetInstanceAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable
ResetInstanceAttribute operation.
Resets an attribute of an instance to its default value.
| コンストラクタと説明 |
|---|
ResetInstanceAttributeRequest()
Default constructor for a new ResetInstanceAttributeRequest object.
|
ResetInstanceAttributeRequest(java.lang.String instanceId,
InstanceAttributeName attribute)
Constructs a new ResetInstanceAttributeRequest object.
|
ResetInstanceAttributeRequest(java.lang.String instanceId,
java.lang.String attribute)
Constructs a new ResetInstanceAttributeRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The name of the attribute being reset.
|
java.lang.String |
getInstanceId()
The ID of the Amazon EC2 instance whose attribute is being reset.
|
int |
hashCode() |
void |
setAttribute(InstanceAttributeName attribute)
The name of the attribute being reset.
|
void |
setAttribute(java.lang.String attribute)
The name of the attribute being reset.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance whose attribute is being reset.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResetInstanceAttributeRequest |
withAttribute(InstanceAttributeName attribute)
The name of the attribute being reset.
|
ResetInstanceAttributeRequest |
withAttribute(java.lang.String attribute)
The name of the attribute being reset.
|
ResetInstanceAttributeRequest |
withInstanceId(java.lang.String instanceId)
The ID of the Amazon EC2 instance whose attribute is being reset.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic ResetInstanceAttributeRequest()
public ResetInstanceAttributeRequest(java.lang.String instanceId,
java.lang.String attribute)
instanceId - The ID of the Amazon EC2 instance whose attribute is
being reset.attribute - The name of the attribute being reset. Available
attribute names: kernel, ramdisk
public ResetInstanceAttributeRequest(java.lang.String instanceId,
InstanceAttributeName attribute)
instanceId - The ID of the Amazon EC2 instance whose attribute is
being reset.attribute - The name of the attribute being reset. Available
attribute names: kernel, ramdisk
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the Amazon EC2 instance whose attribute is being reset.public ResetInstanceAttributeRequest withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the Amazon EC2 instance whose attribute is being reset.public java.lang.String getAttribute()
Available attribute names:
kernel, ramdisk
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized
Available attribute names:
kernel, ramdisk
InstanceAttributeNamepublic void setAttribute(java.lang.String attribute)
Available attribute names:
kernel, ramdisk
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized
attribute - The name of the attribute being reset. Available attribute names:
kernel, ramdisk
InstanceAttributeNamepublic ResetInstanceAttributeRequest withAttribute(java.lang.String attribute)
Available attribute names:
kernel, ramdisk
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 reset. Available attribute names:
kernel, ramdisk
InstanceAttributeNamepublic void setAttribute(InstanceAttributeName attribute)
Available attribute names:
kernel, ramdisk
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized
attribute - The name of the attribute being reset. Available attribute names:
kernel, ramdisk
InstanceAttributeNamepublic ResetInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
Available attribute names:
kernel, ramdisk
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 reset. Available attribute names:
kernel, ramdisk
InstanceAttributeNamepublic 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