public class DescribeImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeImageAttributeRequest>
DescribeImageAttribute operation.
The DescribeImageAttribute operation returns information about an attribute of an AMI. Only one attribute can be specified per call.
| 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 |
|---|---|
boolean |
equals(Object obj) |
String |
getAttribute()
The name of the attribute to describe.
|
Request<DescribeImageAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getImageId()
The ID of the AMI whose attribute is to be described.
|
int |
hashCode() |
void |
setAttribute(ImageAttributeName attribute)
The name of the attribute to describe.
|
void |
setAttribute(String attribute)
The name of the attribute to describe.
|
void |
setImageId(String imageId)
The ID of the AMI whose attribute is to be described.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeImageAttributeRequest |
withAttribute(ImageAttributeName attribute)
The name of the attribute to describe.
|
DescribeImageAttributeRequest |
withAttribute(String attribute)
The name of the attribute to describe.
|
DescribeImageAttributeRequest |
withImageId(String imageId)
The ID of the AMI whose attribute is to be described.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic DescribeImageAttributeRequest()
public DescribeImageAttributeRequest(String imageId, String attribute)
imageId - The ID of the AMI whose attribute is to be described.attribute - The name of the attribute to describe. Available
attribute names: productCodes, kernel,
ramdisk, launchPermisson,
blockDeviceMapping
public DescribeImageAttributeRequest(String imageId, ImageAttributeName attribute)
imageId - The ID of the AMI whose attribute is to be described.attribute - The name of the attribute to describe. Available
attribute names: productCodes, kernel,
ramdisk, launchPermisson,
blockDeviceMapping
public String getImageId()
public void setImageId(String imageId)
imageId - The ID of the AMI whose attribute is to be described.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 whose attribute is to be described.public String getAttribute()
Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping
Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
ImageAttributeNamepublic void setAttribute(String attribute)
Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping
attribute - The name of the attribute to describe. Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
ImageAttributeNamepublic DescribeImageAttributeRequest withAttribute(String attribute)
Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping
attribute - The name of the attribute to describe. Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
ImageAttributeNamepublic void setAttribute(ImageAttributeName attribute)
Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping
attribute - The name of the attribute to describe. Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
ImageAttributeNamepublic DescribeImageAttributeRequest withAttribute(ImageAttributeName attribute)
Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping
attribute - The name of the attribute to describe. Available attribute names:
productCodes, kernel, ramdisk,
launchPermisson, blockDeviceMapping
ImageAttributeNamepublic Request<DescribeImageAttributeRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<DescribeImageAttributeRequest>public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.