public class ModifySnapshotAttributeRequest extends AmazonWebServiceRequest implements java.io.Serializable
ModifySnapshotAttribute operation.
Adds or remove permission settings for the specified snapshot.
| コンストラクタと説明 |
|---|
ModifySnapshotAttributeRequest()
Default constructor for a new ModifySnapshotAttributeRequest object.
|
ModifySnapshotAttributeRequest(java.lang.String snapshotId,
SnapshotAttributeName attribute,
java.lang.String operationType)
Constructs a new ModifySnapshotAttributeRequest object.
|
ModifySnapshotAttributeRequest(java.lang.String snapshotId,
java.lang.String attribute,
java.lang.String operationType)
Constructs a new ModifySnapshotAttributeRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttribute()
The name of the attribute being modified.
|
CreateVolumePermissionModifications |
getCreateVolumePermission()
Returns the value of the CreateVolumePermission property for this
object.
|
java.util.List<java.lang.String> |
getGroupNames()
The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
|
java.lang.String |
getOperationType()
The operation to perform on the attribute.
|
java.lang.String |
getSnapshotId()
The ID of the EBS snapshot whose attributes are being modified.
|
java.util.List<java.lang.String> |
getUserIds()
The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
|
int |
hashCode() |
void |
setAttribute(SnapshotAttributeName attribute)
The name of the attribute being modified.
|
void |
setAttribute(java.lang.String attribute)
The name of the attribute being modified.
|
void |
setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
Sets the value of the CreateVolumePermission property for this object.
|
void |
setGroupNames(java.util.Collection<java.lang.String> groupNames)
The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
|
void |
setOperationType(java.lang.String operationType)
The operation to perform on the attribute.
|
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot whose attributes are being modified.
|
void |
setUserIds(java.util.Collection<java.lang.String> userIds)
The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifySnapshotAttributeRequest |
withAttribute(SnapshotAttributeName attribute)
The name of the attribute being modified.
|
ModifySnapshotAttributeRequest |
withAttribute(java.lang.String attribute)
The name of the attribute being modified.
|
ModifySnapshotAttributeRequest |
withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
Sets the value of the CreateVolumePermission property for this object.
|
ModifySnapshotAttributeRequest |
withGroupNames(java.util.Collection<java.lang.String> groupNames)
The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
|
ModifySnapshotAttributeRequest |
withGroupNames(java.lang.String... groupNames)
The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
|
ModifySnapshotAttributeRequest |
withOperationType(java.lang.String operationType)
The operation to perform on the attribute.
|
ModifySnapshotAttributeRequest |
withSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot whose attributes are being modified.
|
ModifySnapshotAttributeRequest |
withUserIds(java.util.Collection<java.lang.String> userIds)
The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
|
ModifySnapshotAttributeRequest |
withUserIds(java.lang.String... userIds)
The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic ModifySnapshotAttributeRequest()
public ModifySnapshotAttributeRequest(java.lang.String snapshotId,
java.lang.String attribute,
java.lang.String operationType)
snapshotId - The ID of the EBS snapshot whose attributes are
being modified.attribute - The name of the attribute being modified.
Available attribute names: createVolumePermission
operationType - The operation to perform on the attribute.
Available operation names: add, remove
public ModifySnapshotAttributeRequest(java.lang.String snapshotId,
SnapshotAttributeName attribute,
java.lang.String operationType)
snapshotId - The ID of the EBS snapshot whose attributes are
being modified.attribute - The name of the attribute being modified.
Available attribute names: createVolumePermission
operationType - The operation to perform on the attribute.
Available operation names: add, remove
public java.lang.String getSnapshotId()
public void setSnapshotId(java.lang.String snapshotId)
snapshotId - The ID of the EBS snapshot whose attributes are being modified.public ModifySnapshotAttributeRequest 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 whose attributes are being modified.public java.lang.String getAttribute()
Available attribute
names: createVolumePermission
Constraints:
Allowed Values: productCodes, createVolumePermission
Available attribute
names: createVolumePermission
SnapshotAttributeNamepublic void setAttribute(java.lang.String attribute)
Available attribute
names: createVolumePermission
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute - The name of the attribute being modified. Available attribute
names: createVolumePermission
SnapshotAttributeNamepublic ModifySnapshotAttributeRequest withAttribute(java.lang.String attribute)
Available attribute
names: createVolumePermission
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute - The name of the attribute being modified. Available attribute
names: createVolumePermission
SnapshotAttributeNamepublic void setAttribute(SnapshotAttributeName attribute)
Available attribute
names: createVolumePermission
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute - The name of the attribute being modified. Available attribute
names: createVolumePermission
SnapshotAttributeNamepublic ModifySnapshotAttributeRequest withAttribute(SnapshotAttributeName attribute)
Available attribute
names: createVolumePermission
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: productCodes, createVolumePermission
attribute - The name of the attribute being modified. Available attribute
names: createVolumePermission
SnapshotAttributeNamepublic java.lang.String getOperationType()
Available operation
names: add, remove
Available operation
names: add, remove
public void setOperationType(java.lang.String operationType)
Available operation
names: add, remove
operationType - The operation to perform on the attribute. Available operation
names: add, remove
public ModifySnapshotAttributeRequest withOperationType(java.lang.String operationType)
Available operation
names: add, remove
Returns a reference to this object so that method calls can be chained together.
operationType - The operation to perform on the attribute. Available operation
names: add, remove
public java.util.List<java.lang.String> getUserIds()
createVolumePermission attribute is being modified.
createVolumePermission attribute is being modified.
public void setUserIds(java.util.Collection<java.lang.String> userIds)
createVolumePermission attribute is being modified.
userIds - The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission attribute is being modified.
public ModifySnapshotAttributeRequest withUserIds(java.lang.String... userIds)
createVolumePermission attribute is being modified.
Returns a reference to this object so that method calls can be chained together.
userIds - The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission attribute is being modified.
public ModifySnapshotAttributeRequest withUserIds(java.util.Collection<java.lang.String> userIds)
createVolumePermission attribute is being modified.
Returns a reference to this object so that method calls can be chained together.
userIds - The AWS user IDs to add to or remove from the list of users that have
permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission attribute is being modified.
public java.util.List<java.lang.String> getGroupNames()
createVolumePermission attribute is being modified.
createVolumePermission attribute is being modified.
public void setGroupNames(java.util.Collection<java.lang.String> groupNames)
createVolumePermission attribute is being modified.
groupNames - The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission attribute is being modified.
public ModifySnapshotAttributeRequest withGroupNames(java.lang.String... groupNames)
createVolumePermission attribute is being modified.
Returns a reference to this object so that method calls can be chained together.
groupNames - The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission attribute is being modified.
public ModifySnapshotAttributeRequest withGroupNames(java.util.Collection<java.lang.String> groupNames)
createVolumePermission attribute is being modified.
Returns a reference to this object so that method calls can be chained together.
groupNames - The AWS group names to add to or remove from the list of groups that
have permission to create EBS volumes from the specified snapshot.
Currently supports "all". createVolumePermission attribute is being modified.
public CreateVolumePermissionModifications getCreateVolumePermission()
public void setCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
createVolumePermission - The new value for the CreateVolumePermission property for this object.public ModifySnapshotAttributeRequest withCreateVolumePermission(CreateVolumePermissionModifications createVolumePermission)
Returns a reference to this object so that method calls can be chained together.
createVolumePermission - The new value for the CreateVolumePermission property for this object.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object