public class DescribeSnapshotAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<DescribeSnapshotAttributeRequest>
DescribeSnapshotAttribute operation
.
Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.
For more information about EBS snapshots, see Amazon EBS Snapshots in the Amazon Elastic Compute Cloud User Guide .
Constructor and Description |
---|
DescribeSnapshotAttributeRequest()
Default constructor for a new 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 |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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 java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId
- The ID of the EBS snapshot.public DescribeSnapshotAttributeRequest withSnapshotId(java.lang.String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The ID of the EBS snapshot.public java.lang.String getAttribute()
Constraints:
Allowed Values: productCodes, createVolumePermission
SnapshotAttributeName
public void setAttribute(java.lang.String attribute)
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute
- The snapshot attribute you would like to view.SnapshotAttributeName
public DescribeSnapshotAttributeRequest withAttribute(java.lang.String attribute)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute
- The snapshot attribute you would like to view.SnapshotAttributeName
public void setAttribute(SnapshotAttributeName attribute)
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute
- The snapshot attribute you would like to view.SnapshotAttributeName
public DescribeSnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: productCodes, createVolumePermission
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.