public class ResetImageAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ResetImageAttributeRequest>
Contains the parameters for ResetImageAttribute.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attribute
The attribute to reset (currently you can only reset the launch
permission attribute).
|
private java.lang.String |
imageId
The ID of the AMI.
|
NOOP
Constructor and Description |
---|
ResetImageAttributeRequest()
Default constructor for 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 |
---|---|
ResetImageAttributeRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String imageId
The ID of the AMI.
private java.lang.String attribute
The attribute to reset (currently you can only reset the launch permission attribute).
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 void setImageId(java.lang.String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public java.lang.String getImageId()
The ID of the AMI.
public ResetImageAttributeRequest withImageId(java.lang.String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public void setAttribute(java.lang.String attribute)
The attribute to reset (currently you can only reset the launch permission attribute).
attribute
- The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeName
public java.lang.String getAttribute()
The attribute to reset (currently you can only reset the launch permission attribute).
ResetImageAttributeName
public ResetImageAttributeRequest withAttribute(java.lang.String attribute)
The attribute to reset (currently you can only reset the launch permission attribute).
attribute
- The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeName
public void setAttribute(ResetImageAttributeName attribute)
The attribute to reset (currently you can only reset the launch permission attribute).
attribute
- The attribute to reset (currently you can only reset the launch
permission attribute).ResetImageAttributeName
public ResetImageAttributeRequest withAttribute(ResetImageAttributeName attribute)
The attribute to reset (currently you can only reset the launch permission attribute).
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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ResetImageAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()