@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSnapshotAttributeResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeSnapshotAttributeResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotAttributeResult |
clone() |
boolean |
equals(Object obj) |
List<CreateVolumePermission> |
getCreateVolumePermissions()
The users and groups that have the permissions for creating volumes from the snapshot.
|
List<ProductCode> |
getProductCodes()
The product codes.
|
String |
getSnapshotId()
The ID of the EBS snapshot.
|
int |
hashCode() |
void |
setCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
The users and groups that have the permissions for creating volumes from the snapshot.
|
void |
setProductCodes(Collection<ProductCode> productCodes)
The product codes.
|
void |
setSnapshotId(String snapshotId)
The ID of the EBS snapshot.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSnapshotAttributeResult |
withCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
The users and groups that have the permissions for creating volumes from the snapshot.
|
DescribeSnapshotAttributeResult |
withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions)
The users and groups that have the permissions for creating volumes from the snapshot.
|
DescribeSnapshotAttributeResult |
withProductCodes(Collection<ProductCode> productCodes)
The product codes.
|
DescribeSnapshotAttributeResult |
withProductCodes(ProductCode... productCodes)
The product codes.
|
DescribeSnapshotAttributeResult |
withSnapshotId(String snapshotId)
The ID of the EBS snapshot.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<CreateVolumePermission> getCreateVolumePermissions()
The users and groups that have the permissions for creating volumes from the snapshot.
public void setCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
The users and groups that have the permissions for creating volumes from the snapshot.
createVolumePermissions
- The users and groups that have the permissions for creating volumes from the snapshot.public DescribeSnapshotAttributeResult withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions)
The users and groups that have the permissions for creating volumes from the snapshot.
NOTE: This method appends the values to the existing list (if any). Use
setCreateVolumePermissions(java.util.Collection)
or
withCreateVolumePermissions(java.util.Collection)
if you want to override the existing values.
createVolumePermissions
- The users and groups that have the permissions for creating volumes from the snapshot.public DescribeSnapshotAttributeResult withCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
The users and groups that have the permissions for creating volumes from the snapshot.
createVolumePermissions
- The users and groups that have the permissions for creating volumes from the snapshot.public List<ProductCode> getProductCodes()
The product codes.
public void setProductCodes(Collection<ProductCode> productCodes)
The product codes.
productCodes
- The product codes.public DescribeSnapshotAttributeResult withProductCodes(ProductCode... productCodes)
The product codes.
NOTE: This method appends the values to the existing list (if any). Use
setProductCodes(java.util.Collection)
or withProductCodes(java.util.Collection)
if you want to
override the existing values.
productCodes
- The product codes.public DescribeSnapshotAttributeResult withProductCodes(Collection<ProductCode> productCodes)
The product codes.
productCodes
- The product codes.public void setSnapshotId(String snapshotId)
The ID of the EBS snapshot.
snapshotId
- The ID of the EBS snapshot.public String getSnapshotId()
The ID of the EBS snapshot.
public DescribeSnapshotAttributeResult withSnapshotId(String snapshotId)
The ID of the EBS snapshot.
snapshotId
- The ID of the EBS snapshot.public String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotAttributeResult clone()