public class ModifySnapshotAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ModifySnapshotAttributeRequest>
Contains the parameters for ModifySnapshotAttribute.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attribute
The snapshot attribute to modify.
|
private CreateVolumePermissionModifications |
createVolumePermission
A JSON representation of the snapshot attribute modification.
|
private SdkInternalList<java.lang.String> |
groupNames
The group to modify for the snapshot.
|
private java.lang.String |
operationType
The type of operation to perform to the attribute.
|
private java.lang.String |
snapshotId
The ID of the snapshot.
|
private SdkInternalList<java.lang.String> |
userIds
The account ID to modify for the snapshot.
|
NOOP
Constructor and Description |
---|
ModifySnapshotAttributeRequest()
Default constructor for ModifySnapshotAttributeRequest object.
|
ModifySnapshotAttributeRequest(java.lang.String snapshotId,
SnapshotAttributeName attribute,
OperationType operationType)
Constructs a new ModifySnapshotAttributeRequest object.
|
ModifySnapshotAttributeRequest(java.lang.String snapshotId,
java.lang.String attribute,
java.lang.String operationType)
Constructs a new ModifySnapshotAttributeRequest object.
|
Modifier and Type | Method and Description |
---|---|
ModifySnapshotAttributeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The snapshot attribute to modify.
|
CreateVolumePermissionModifications |
getCreateVolumePermission()
A JSON representation of the snapshot attribute modification.
|
Request<ModifySnapshotAttributeRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<java.lang.String> |
getGroupNames()
The group to modify for the snapshot.
|
java.lang.String |
getOperationType()
The type of operation to perform to the attribute.
|
java.lang.String |
getSnapshotId()
The ID of the snapshot.
|
java.util.List<java.lang.String> |
getUserIds()
The account ID to modify for the snapshot.
|
int |
hashCode() |
void |
setAttribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
|
void |
setAttribute(java.lang.String attribute)
The snapshot attribute to modify.
|
void |
setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
|
void |
setGroupNames(java.util.Collection<java.lang.String> groupNames)
The group to modify for the snapshot.
|
void |
setOperationType(OperationType operationType)
The type of operation to perform to the attribute.
|
void |
setOperationType(java.lang.String operationType)
The type of operation to perform to the attribute.
|
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
|
void |
setUserIds(java.util.Collection<java.lang.String> userIds)
The account ID to modify for the snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifySnapshotAttributeRequest |
withAttribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
|
ModifySnapshotAttributeRequest |
withAttribute(java.lang.String attribute)
The snapshot attribute to modify.
|
ModifySnapshotAttributeRequest |
withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
|
ModifySnapshotAttributeRequest |
withGroupNames(java.util.Collection<java.lang.String> groupNames)
The group to modify for the snapshot.
|
ModifySnapshotAttributeRequest |
withGroupNames(java.lang.String... groupNames)
The group to modify for the snapshot.
|
ModifySnapshotAttributeRequest |
withOperationType(OperationType operationType)
The type of operation to perform to the attribute.
|
ModifySnapshotAttributeRequest |
withOperationType(java.lang.String operationType)
The type of operation to perform to the attribute.
|
ModifySnapshotAttributeRequest |
withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
|
ModifySnapshotAttributeRequest |
withUserIds(java.util.Collection<java.lang.String> userIds)
The account ID to modify for the snapshot.
|
ModifySnapshotAttributeRequest |
withUserIds(java.lang.String... userIds)
The account ID to modify for 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 snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
private java.lang.String operationType
The type of operation to perform to the attribute.
private SdkInternalList<java.lang.String> userIds
The account ID to modify for the snapshot.
private SdkInternalList<java.lang.String> groupNames
The group to modify for the snapshot.
private CreateVolumePermissionModifications createVolumePermission
A JSON representation of the snapshot attribute modification.
public ModifySnapshotAttributeRequest()
public ModifySnapshotAttributeRequest(java.lang.String snapshotId, java.lang.String attribute, java.lang.String operationType)
snapshotId
- The ID of the snapshot.attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
operationType
- The type of operation to perform to the attribute.public ModifySnapshotAttributeRequest(java.lang.String snapshotId, SnapshotAttributeName attribute, OperationType operationType)
snapshotId
- The ID of the snapshot.attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
operationType
- The type of operation to perform to the attribute.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 ModifySnapshotAttributeRequest withSnapshotId(java.lang.String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.public void setAttribute(java.lang.String attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public java.lang.String getAttribute()
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public ModifySnapshotAttributeRequest withAttribute(java.lang.String attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public void setAttribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public ModifySnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
public void setOperationType(java.lang.String operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
public java.lang.String getOperationType()
The type of operation to perform to the attribute.
OperationType
public ModifySnapshotAttributeRequest withOperationType(java.lang.String operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
public void setOperationType(OperationType operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
public ModifySnapshotAttributeRequest withOperationType(OperationType operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
public java.util.List<java.lang.String> getUserIds()
The account ID to modify for the snapshot.
public void setUserIds(java.util.Collection<java.lang.String> userIds)
The account ID to modify for the snapshot.
userIds
- The account ID to modify for the snapshot.public ModifySnapshotAttributeRequest withUserIds(java.lang.String... userIds)
The account ID to modify for the snapshot.
NOTE: This method appends the values to the existing list (if
any). Use setUserIds(java.util.Collection)
or
withUserIds(java.util.Collection)
if you want to override the
existing values.
userIds
- The account ID to modify for the snapshot.public ModifySnapshotAttributeRequest withUserIds(java.util.Collection<java.lang.String> userIds)
The account ID to modify for the snapshot.
userIds
- The account ID to modify for the snapshot.public java.util.List<java.lang.String> getGroupNames()
The group to modify for the snapshot.
public void setGroupNames(java.util.Collection<java.lang.String> groupNames)
The group to modify for the snapshot.
groupNames
- The group to modify for the snapshot.public ModifySnapshotAttributeRequest withGroupNames(java.lang.String... groupNames)
The group to modify for the snapshot.
NOTE: This method appends the values to the existing list (if
any). Use setGroupNames(java.util.Collection)
or
withGroupNames(java.util.Collection)
if you want to override the
existing values.
groupNames
- The group to modify for the snapshot.public ModifySnapshotAttributeRequest withGroupNames(java.util.Collection<java.lang.String> groupNames)
The group to modify for the snapshot.
groupNames
- The group to modify for the snapshot.public void setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
createVolumePermission
- A JSON representation of the snapshot attribute modification.public CreateVolumePermissionModifications getCreateVolumePermission()
A JSON representation of the snapshot attribute modification.
public ModifySnapshotAttributeRequest withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
createVolumePermission
- A JSON representation of the snapshot attribute modification.public Request<ModifySnapshotAttributeRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifySnapshotAttributeRequest>
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 ModifySnapshotAttributeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()