public class ResetImageAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<ResetImageAttributeRequest>
ResetImageAttribute operation
.
Resets an attribute of an AMI to its default value.
NOTE: The productCodes attribute can't be reset.
Constructor and Description |
---|
ResetImageAttributeRequest()
Default constructor for a new ResetImageAttributeRequest object.
|
ResetImageAttributeRequest(java.lang.String imageId,
ResetImageAttributeName attribute)
Constructs a new ResetImageAttributeRequest object.
|
ResetImageAttributeRequest(java.lang.String imageId,
java.lang.String attribute)
Constructs a new ResetImageAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.lang.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(java.lang.String attribute)
The attribute to reset (currently you can only reset the launch
permission attribute).
|
void |
setImageId(java.lang.String imageId)
The ID of the AMI.
|
java.lang.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(java.lang.String attribute)
The attribute to reset (currently you can only reset the launch
permission attribute).
|
ResetImageAttributeRequest |
withImageId(java.lang.String imageId)
The ID of the AMI.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ResetImageAttributeRequest()
public ResetImageAttributeRequest(java.lang.String imageId, java.lang.String attribute)
imageId
- The ID of the AMI.attribute
- The attribute to reset (currently you can only reset
the launch permission attribute).public ResetImageAttributeRequest(java.lang.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 java.lang.String getImageId()
public void setImageId(java.lang.String imageId)
imageId
- The ID of the AMI.public ResetImageAttributeRequest withImageId(java.lang.String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId
- The ID of the AMI.public java.lang.String getAttribute()
Constraints:
Allowed Values: launchPermission
ResetImageAttributeName
public void setAttribute(java.lang.String attribute)
Constraints:
Allowed Values: launchPermission
attribute
- The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeName
public ResetImageAttributeRequest withAttribute(java.lang.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 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.