Class DescribeSnapshotAttributeResult
- All Implemented Interfaces:
Serializable
,Cloneable
Contains the output of DescribeSnapshotAttribute.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A list of permissions for creating volumes from the snapshot.A list of product codes.The ID of the EBS snapshot.int
hashCode()
void
setCreateVolumePermissions
(Collection<CreateVolumePermission> createVolumePermissions) A list of permissions for creating volumes from the snapshot.void
setProductCodes
(Collection<ProductCode> productCodes) A list of product codes.void
setSnapshotId
(String snapshotId) The ID of the EBS snapshot.toString()
Returns a string representation of this object; useful for testing and debugging.withCreateVolumePermissions
(CreateVolumePermission... createVolumePermissions) A list of permissions for creating volumes from the snapshot.withCreateVolumePermissions
(Collection<CreateVolumePermission> createVolumePermissions) A list of permissions for creating volumes from the snapshot.withProductCodes
(ProductCode... productCodes) A list of product codes.withProductCodes
(Collection<ProductCode> productCodes) A list of product codes.withSnapshotId
(String snapshotId) The ID of the EBS snapshot.
-
Constructor Details
-
DescribeSnapshotAttributeResult
public DescribeSnapshotAttributeResult()
-
-
Method Details
-
setSnapshotId
The ID of the EBS snapshot.
- Parameters:
snapshotId
- The ID of the EBS snapshot.
-
getSnapshotId
The ID of the EBS snapshot.
- Returns:
- The ID of the EBS snapshot.
-
withSnapshotId
The ID of the EBS snapshot.
- Parameters:
snapshotId
- The ID of the EBS snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCreateVolumePermissions
A list of permissions for creating volumes from the snapshot.
- Returns:
- A list of permissions for creating volumes from the snapshot.
-
setCreateVolumePermissions
A list of permissions for creating volumes from the snapshot.
- Parameters:
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.
-
withCreateVolumePermissions
public DescribeSnapshotAttributeResult withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions) A list of permissions for creating volumes from the snapshot.
NOTE: This method appends the values to the existing list (if any). Use
setCreateVolumePermissions(java.util.Collection)
orwithCreateVolumePermissions(java.util.Collection)
if you want to override the existing values.- Parameters:
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCreateVolumePermissions
public DescribeSnapshotAttributeResult withCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions) A list of permissions for creating volumes from the snapshot.
- Parameters:
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getProductCodes
A list of product codes.
- Returns:
- A list of product codes.
-
setProductCodes
A list of product codes.
- Parameters:
productCodes
- A list of product codes.
-
withProductCodes
A list of product codes.
NOTE: This method appends the values to the existing list (if any). Use
setProductCodes(java.util.Collection)
orwithProductCodes(java.util.Collection)
if you want to override the existing values.- Parameters:
productCodes
- A list of product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withProductCodes
A list of product codes.
- Parameters:
productCodes
- A list of product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-