public class DescribeSnapshotAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<DescribeSnapshotAttributeRequest>
Contains the parameters for DescribeSnapshotAttribute.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attribute
The snapshot attribute you would like to view.
|
private java.lang.String |
snapshotId
The ID of the EBS snapshot.
|
NOOP
Constructor and Description |
---|
DescribeSnapshotAttributeRequest()
Default constructor for DescribeSnapshotAttributeRequest object.
|
DescribeSnapshotAttributeRequest(java.lang.String snapshotId,
SnapshotAttributeName attribute)
Constructs a new DescribeSnapshotAttributeRequest object.
|
DescribeSnapshotAttributeRequest(java.lang.String snapshotId,
java.lang.String attribute)
Constructs a new DescribeSnapshotAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotAttributeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The snapshot attribute you would like to view.
|
Request<DescribeSnapshotAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getSnapshotId()
The ID of the EBS snapshot.
|
int |
hashCode() |
void |
setAttribute(SnapshotAttributeName attribute)
The snapshot attribute you would like to view.
|
void |
setAttribute(java.lang.String attribute)
The snapshot attribute you would like to view.
|
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotAttributeRequest |
withAttribute(SnapshotAttributeName attribute)
The snapshot attribute you would like to view.
|
DescribeSnapshotAttributeRequest |
withAttribute(java.lang.String attribute)
The snapshot attribute you would like to view.
|
DescribeSnapshotAttributeRequest |
withSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
|
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 snapshotId
The ID of the EBS snapshot.
private java.lang.String attribute
The snapshot attribute you would like to view.
public DescribeSnapshotAttributeRequest()
public DescribeSnapshotAttributeRequest(java.lang.String snapshotId, java.lang.String attribute)
snapshotId
- The ID of the EBS snapshot.attribute
- The snapshot attribute you would like to view.public DescribeSnapshotAttributeRequest(java.lang.String snapshotId, SnapshotAttributeName attribute)
snapshotId
- The ID of the EBS snapshot.attribute
- The snapshot attribute you would like to view.public void setSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
snapshotId
- The ID of the EBS snapshot.public java.lang.String getSnapshotId()
The ID of the EBS snapshot.
public DescribeSnapshotAttributeRequest withSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
snapshotId
- The ID of the EBS snapshot.public void setAttribute(java.lang.String attribute)
The snapshot attribute you would like to view.
attribute
- The snapshot attribute you would like to view.SnapshotAttributeName
public java.lang.String getAttribute()
The snapshot attribute you would like to view.
SnapshotAttributeName
public DescribeSnapshotAttributeRequest withAttribute(java.lang.String attribute)
The snapshot attribute you would like to view.
attribute
- The snapshot attribute you would like to view.SnapshotAttributeName
public void setAttribute(SnapshotAttributeName attribute)
The snapshot attribute you would like to view.
attribute
- The snapshot attribute you would like to view.SnapshotAttributeName
public DescribeSnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)
The snapshot attribute you would like to view.
attribute
- The snapshot attribute you would like to view.SnapshotAttributeName
public Request<DescribeSnapshotAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeSnapshotAttributeRequest>
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 DescribeSnapshotAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()