public class ResetInstanceAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ResetInstanceAttributeRequest>
ResetInstanceAttribute operation
.
Resets an attribute of an instance to its default value. To reset the
kernel
or ramdisk
, the instance must be in
a stopped state. To reset the sourceDestCheck
, the
instance can be either running or stopped.
The sourceDestCheck
attribute controls whether
source/destination checking is enabled. The default value is
true
, which means checking is enabled. This value must
be false
for a NAT instance to perform NAT. For more
information, see
NAT Instances
in the Amazon Virtual Private Cloud User Guide .
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The attribute to reset.
|
Request<ResetInstanceAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
int |
hashCode() |
void |
setAttribute(InstanceAttributeName attribute)
The attribute to reset.
|
void |
setAttribute(java.lang.String attribute)
The attribute to reset.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResetInstanceAttributeRequest |
withAttribute(InstanceAttributeName attribute)
The attribute to reset.
|
ResetInstanceAttributeRequest |
withAttribute(java.lang.String attribute)
The attribute to reset.
|
ResetInstanceAttributeRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ResetInstanceAttributeRequest()
public ResetInstanceAttributeRequest(java.lang.String instanceId, java.lang.String attribute)
instanceId
- The ID of the instance.attribute
- The attribute to reset. You can only
reset the following attributes: kernel
|
ramdisk
| sourceDestCheck
. To change an
instance attribute, use ModifyInstanceAttribute.
public ResetInstanceAttributeRequest(java.lang.String instanceId, InstanceAttributeName attribute)
instanceId
- The ID of the instance.attribute
- The attribute to reset. You can only
reset the following attributes: kernel
|
ramdisk
| sourceDestCheck
. To change an
instance attribute, use ModifyInstanceAttribute.
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the instance.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 instance.public java.lang.String getAttribute()
You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
InstanceAttributeName
public void setAttribute(java.lang.String attribute)
You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
attribute
- The attribute to reset. You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
InstanceAttributeName
public ResetInstanceAttributeRequest withAttribute(java.lang.String attribute)
You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
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, sriovNetSupport
attribute
- The attribute to reset. You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
InstanceAttributeName
public void setAttribute(InstanceAttributeName attribute)
You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
Constraints:
Allowed Values: instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport
attribute
- The attribute to reset. You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
InstanceAttributeName
public ResetInstanceAttributeRequest withAttribute(InstanceAttributeName attribute)
You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
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, sriovNetSupport
attribute
- The attribute to reset. You can only reset the following
attributes: kernel
| ramdisk
|
sourceDestCheck
. To change an instance attribute, use
ModifyInstanceAttribute.
InstanceAttributeName
public Request<ResetInstanceAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ResetInstanceAttributeRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.