|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ModifySnapshotAttributeRequest
public class ModifySnapshotAttributeRequest
A request to modify an EBS snapshot's attributes. Only one attribute can be changed per request.
Constructor Summary | |
---|---|
ModifySnapshotAttributeRequest()
|
Method Summary | |
---|---|
String |
getAttribute()
The name of the attribute being modified. |
List<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. |
String |
getOperationType()
The operation to perform on the attribute. |
String |
getSnapshotId()
The ID of the EBS snapshot whose attributes are being modified. |
List<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. |
void |
setAttribute(String attribute)
The name of the attribute being modified. |
void |
setGroupNames(Collection<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(String operationType)
The operation to perform on the attribute. |
void |
setSnapshotId(String snapshotId)
The ID of the EBS snapshot whose attributes are being modified. |
void |
setUserIds(Collection<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. |
String |
toString()
|
ModifySnapshotAttributeRequest |
withAttribute(String attribute)
The name of the attribute being modified. |
ModifySnapshotAttributeRequest |
withGroupNames(Collection<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(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(String operationType)
The operation to perform on the attribute. |
ModifySnapshotAttributeRequest |
withSnapshotId(String snapshotId)
The ID of the EBS snapshot whose attributes are being modified. |
ModifySnapshotAttributeRequest |
withUserIds(Collection<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(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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModifySnapshotAttributeRequest()
Method Detail |
---|
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The ID of the EBS snapshot whose attributes are being modified.public ModifySnapshotAttributeRequest withSnapshotId(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 String getAttribute()
Available attribute names: createVolumePermission
Available attribute names: createVolumePermission
public void setAttribute(String attribute)
Available attribute names: createVolumePermission
attribute
- The name of the attribute being modified. Available attribute names: createVolumePermission
public ModifySnapshotAttributeRequest withAttribute(String attribute)
Available attribute names: createVolumePermission
Returns a reference to this object so that method calls can be chained together.
attribute
- The name of the attribute being modified. Available attribute names: createVolumePermission
public String getOperationType()
Available operation names: add, remove
Available operation names: add, remove
public void setOperationType(String operationType)
Available operation names: add, remove
operationType
- The operation to perform on the attribute. Available operation names: add, remove
public ModifySnapshotAttributeRequest withOperationType(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 List<String> getUserIds()
public void setUserIds(Collection<String> userIds)
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". public ModifySnapshotAttributeRequest withUserIds(String... userIds)
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". public ModifySnapshotAttributeRequest withUserIds(Collection<String> userIds)
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". public List<String> getGroupNames()
createVolumePermission
attribute is being modified.
createVolumePermission
attribute is being modified.
public void setGroupNames(Collection<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(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(Collection<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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |