Class DescribeImageAttributeRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.DescribeImageAttributeRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<DescribeImageAttributeRequest>,Serializable,Cloneable
public class DescribeImageAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<DescribeImageAttributeRequest>
Contains the parameters for DescribeImageAttribute.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeImageAttributeRequest()Default constructor for DescribeImageAttributeRequest object.DescribeImageAttributeRequest(String imageId, ImageAttributeName attribute)Constructs a new DescribeImageAttributeRequest object.DescribeImageAttributeRequest(String imageId, String attribute)Constructs a new DescribeImageAttributeRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeImageAttributeRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAttribute()The AMI attribute.Request<DescribeImageAttributeRequest>getDryRunRequest()This method is intended for internal use only.StringgetImageId()The ID of the AMI.inthashCode()voidsetAttribute(ImageAttributeName attribute)The AMI attribute.voidsetAttribute(String attribute)The AMI attribute.voidsetImageId(String imageId)The ID of the AMI.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeImageAttributeRequestwithAttribute(ImageAttributeName attribute)The AMI attribute.DescribeImageAttributeRequestwithAttribute(String attribute)The AMI attribute.DescribeImageAttributeRequestwithImageId(String imageId)The ID of the AMI.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Constructor Detail
-
DescribeImageAttributeRequest
public DescribeImageAttributeRequest()
Default constructor for DescribeImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
DescribeImageAttributeRequest
public DescribeImageAttributeRequest(String imageId, String attribute)
Constructs a new DescribeImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
imageId- The ID of the AMI.attribute- The AMI attribute.Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.
-
DescribeImageAttributeRequest
public DescribeImageAttributeRequest(String imageId, ImageAttributeName attribute)
Constructs a new DescribeImageAttributeRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
imageId- The ID of the AMI.attribute- The AMI attribute.Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.
-
-
Method Detail
-
setImageId
public void setImageId(String imageId)
The ID of the AMI.
- Parameters:
imageId- The ID of the AMI.
-
getImageId
public String getImageId()
The ID of the AMI.
- Returns:
- The ID of the AMI.
-
withImageId
public DescribeImageAttributeRequest withImageId(String imageId)
The ID of the AMI.
- Parameters:
imageId- The ID of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttribute
public void setAttribute(String attribute)
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- Parameters:
attribute- The AMI attribute.Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- See Also:
ImageAttributeName
-
getAttribute
public String getAttribute()
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- Returns:
- The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI. - See Also:
ImageAttributeName
-
withAttribute
public DescribeImageAttributeRequest withAttribute(String attribute)
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- Parameters:
attribute- The AMI attribute.Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageAttributeName
-
setAttribute
public void setAttribute(ImageAttributeName attribute)
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- Parameters:
attribute- The AMI attribute.Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- See Also:
ImageAttributeName
-
withAttribute
public DescribeImageAttributeRequest withAttribute(ImageAttributeName attribute)
The AMI attribute.
Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- Parameters:
attribute- The AMI attribute.Note: Depending on your account privileges, the
blockDeviceMappingattribute may return aClient.AuthFailureerror. If this happens, use DescribeImages to get information about the block device mapping for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageAttributeName
-
getDryRunRequest
public Request<DescribeImageAttributeRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<DescribeImageAttributeRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeImageAttributeRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-