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