public class ResetImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ResetImageAttributeRequest>
ResetImageAttribute operation
.
Resets an attribute of an AMI to its default value.
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 |
---|---|
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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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
ResetImageAttributeName
public void setAttribute(String attribute)
Constraints:
Allowed Values: launchPermission
attribute
- The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeName
public 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).ResetImageAttributeName
public void setAttribute(ResetImageAttributeName attribute)
Constraints:
Allowed Values: launchPermission
attribute
- The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeName
public 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).ResetImageAttributeName
public Request<ResetImageAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ResetImageAttributeRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.