public class ResetImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ResetImageAttributeRequest>
ResetImageAttribute operation.
Resets an attribute of an AMI to its default value.
NOTE: The productCodes attribute can't be reset.
NOOP| Constructor and Description |
|---|
ResetImageAttributeRequest()
Default constructor for a new ResetImageAttributeRequest object.
|
ResetImageAttributeRequest(String imageId,
ResetImageAttributeName attribute)
Constructs a new ResetImageAttributeRequest object.
|
ResetImageAttributeRequest(String imageId,
String attribute)
Constructs a new ResetImageAttributeRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
ResetImageAttributeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAttribute()
The attribute to reset (currently you can only reset the launch
permission attribute).
|
Request<ResetImageAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImageId()
The ID of the AMI.
|
int |
hashCode() |
void |
setAttribute(ResetImageAttributeName attribute)
The attribute to reset (currently you can only reset the launch
permission attribute).
|
void |
setAttribute(String attribute)
The attribute to reset (currently you can only reset the launch
permission attribute).
|
void |
setImageId(String imageId)
The ID of the AMI.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResetImageAttributeRequest |
withAttribute(ResetImageAttributeName attribute)
The attribute to reset (currently you can only reset the launch
permission attribute).
|
ResetImageAttributeRequest |
withAttribute(String attribute)
The attribute to reset (currently you can only reset the launch
permission attribute).
|
ResetImageAttributeRequest |
withImageId(String imageId)
The ID of the AMI.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic ResetImageAttributeRequest()
public ResetImageAttributeRequest(String imageId, String attribute)
imageId - The ID of the AMI.attribute - The attribute to reset (currently you can only reset
the launch permission attribute).public ResetImageAttributeRequest(String imageId, ResetImageAttributeName attribute)
imageId - The ID of the AMI.attribute - The attribute to reset (currently you can only reset
the launch permission attribute).public String getImageId()
public void setImageId(String imageId)
imageId - The ID of the AMI.public ResetImageAttributeRequest withImageId(String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId - The ID of the AMI.public String getAttribute()
Constraints:
Allowed Values: launchPermission
ResetImageAttributeNamepublic void setAttribute(String attribute)
Constraints:
Allowed Values: launchPermission
attribute - The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeNamepublic ResetImageAttributeRequest withAttribute(String attribute)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: launchPermission
attribute - The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeNamepublic void setAttribute(ResetImageAttributeName attribute)
Constraints:
Allowed Values: launchPermission
attribute - The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeNamepublic ResetImageAttributeRequest withAttribute(ResetImageAttributeName attribute)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: launchPermission
attribute - The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeNamepublic Request<ResetImageAttributeRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ResetImageAttributeRequest>public String toString()
toString in class ObjectObject.toString()public ResetImageAttributeRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.