public class DescribeImageAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<DescribeImageAttributeRequest>
Contains the parameters for DescribeImageAttribute.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attribute
The AMI attribute.
|
private java.lang.String |
imageId
The ID of the AMI.
|
NOOP
Constructor and Description |
---|
DescribeImageAttributeRequest()
Default constructor for DescribeImageAttributeRequest object.
|
DescribeImageAttributeRequest(java.lang.String imageId,
ImageAttributeName attribute)
Constructs a new DescribeImageAttributeRequest object.
|
DescribeImageAttributeRequest(java.lang.String imageId,
java.lang.String attribute)
Constructs a new DescribeImageAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
DescribeImageAttributeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The AMI attribute.
|
Request<DescribeImageAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getImageId()
The ID of the AMI.
|
int |
hashCode() |
void |
setAttribute(ImageAttributeName attribute)
The AMI attribute.
|
void |
setAttribute(java.lang.String attribute)
The AMI 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.
|
DescribeImageAttributeRequest |
withAttribute(ImageAttributeName attribute)
The AMI attribute.
|
DescribeImageAttributeRequest |
withAttribute(java.lang.String attribute)
The AMI attribute.
|
DescribeImageAttributeRequest |
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 AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device mapping
for the AMI.
public DescribeImageAttributeRequest()
public DescribeImageAttributeRequest(java.lang.String imageId, java.lang.String attribute)
imageId
- The ID of the AMI.attribute
- The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device
mapping for the AMI.
public DescribeImageAttributeRequest(java.lang.String imageId, ImageAttributeName attribute)
imageId
- The ID of the AMI.attribute
- The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device
mapping for the AMI.
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 DescribeImageAttributeRequest withImageId(java.lang.String imageId)
The ID of the AMI.
imageId
- The ID of the AMI.public void setAttribute(java.lang.String attribute)
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device mapping
for the AMI.
attribute
- The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device
mapping for the AMI.
ImageAttributeName
public java.lang.String getAttribute()
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device mapping
for the AMI.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device
mapping for the AMI.
ImageAttributeName
public DescribeImageAttributeRequest withAttribute(java.lang.String attribute)
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device mapping
for the AMI.
attribute
- The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device
mapping for the AMI.
ImageAttributeName
public void setAttribute(ImageAttributeName attribute)
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device mapping
for the AMI.
attribute
- The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device
mapping for the AMI.
ImageAttributeName
public DescribeImageAttributeRequest withAttribute(ImageAttributeName attribute)
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device mapping
for the AMI.
attribute
- The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMapping
attribute may return a
Client.AuthFailure
error. If this happens, use
DescribeImages to get information about the block device
mapping for the AMI.
ImageAttributeName
public Request<DescribeImageAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeImageAttributeRequest>
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 DescribeImageAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()