Class DescribeSnapshotAttributeResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeSnapshotAttributeResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeSnapshotAttributeResult extends Object implements Serializable, Cloneable
Contains the output of DescribeSnapshotAttribute.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeSnapshotAttributeResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeSnapshotAttributeResult
clone()
boolean
equals(Object obj)
List<CreateVolumePermission>
getCreateVolumePermissions()
A list of permissions for creating volumes from the snapshot.List<ProductCode>
getProductCodes()
A list of product codes.String
getSnapshotId()
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.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeSnapshotAttributeResult
withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions)
A list of permissions for creating volumes from the snapshot.DescribeSnapshotAttributeResult
withCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
A list of permissions for creating volumes from the snapshot.DescribeSnapshotAttributeResult
withProductCodes(ProductCode... productCodes)
A list of product codes.DescribeSnapshotAttributeResult
withProductCodes(Collection<ProductCode> productCodes)
A list of product codes.DescribeSnapshotAttributeResult
withSnapshotId(String snapshotId)
The ID of the EBS snapshot.
-
-
-
Method Detail
-
setSnapshotId
public void setSnapshotId(String snapshotId)
The ID of the EBS snapshot.
- Parameters:
snapshotId
- The ID of the EBS snapshot.
-
getSnapshotId
public String getSnapshotId()
The ID of the EBS snapshot.
- Returns:
- The ID of the EBS snapshot.
-
withSnapshotId
public DescribeSnapshotAttributeResult withSnapshotId(String snapshotId)
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
public List<CreateVolumePermission> getCreateVolumePermissions()
A list of permissions for creating volumes from the snapshot.
- Returns:
- A list of permissions for creating volumes from the snapshot.
-
setCreateVolumePermissions
public void setCreateVolumePermissions(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.
-
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
public List<ProductCode> getProductCodes()
A list of product codes.
- Returns:
- A list of product codes.
-
setProductCodes
public void setProductCodes(Collection<ProductCode> productCodes)
A list of product codes.
- Parameters:
productCodes
- A list of product codes.
-
withProductCodes
public DescribeSnapshotAttributeResult withProductCodes(ProductCode... productCodes)
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
public DescribeSnapshotAttributeResult withProductCodes(Collection<ProductCode> productCodes)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeSnapshotAttributeResult clone()
-
-