public class DescribeImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeImageAttributeRequest>
DescribeImageAttribute operation.
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
NOOP| Constructor and Description |
|---|
DescribeImageAttributeRequest()
Default constructor for a new DescribeImageAttributeRequest object.
|
DescribeImageAttributeRequest(String imageId,
ImageAttributeName attribute)
Constructs a new DescribeImageAttributeRequest object.
|
DescribeImageAttributeRequest(String imageId,
String attribute)
Constructs a new DescribeImageAttributeRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
DescribeImageAttributeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAttribute()
The AMI attribute.
|
Request<DescribeImageAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImageId()
The ID of the AMI.
|
int |
hashCode() |
void |
setAttribute(ImageAttributeName attribute)
The AMI attribute.
|
void |
setAttribute(String attribute)
The AMI attribute.
|
void |
setImageId(String imageId)
The ID of the AMI.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeImageAttributeRequest |
withAttribute(ImageAttributeName attribute)
The AMI attribute.
|
DescribeImageAttributeRequest |
withAttribute(String attribute)
The AMI attribute.
|
DescribeImageAttributeRequest |
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 DescribeImageAttributeRequest()
public DescribeImageAttributeRequest(String imageId, 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(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 String getImageId()
public void setImageId(String imageId)
imageId - The ID of the AMI.public DescribeImageAttributeRequest 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()
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.
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport
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.
ImageAttributeNamepublic void setAttribute(String 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.
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport
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.
ImageAttributeNamepublic DescribeImageAttributeRequest withAttribute(String 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport
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.
ImageAttributeNamepublic void setAttribute(ImageAttributeName 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.
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport
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.
ImageAttributeNamepublic DescribeImageAttributeRequest withAttribute(ImageAttributeName 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport
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.
ImageAttributeNamepublic Request<DescribeImageAttributeRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<DescribeImageAttributeRequest>public String toString()
toString in class ObjectObject.toString()public DescribeImageAttributeRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.