public class DescribeSnapshotAttributeResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeSnapshotAttribute.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<CreateVolumePermission> |
createVolumePermissions
A list of permissions for creating volumes from the snapshot.
|
private SdkInternalList<ProductCode> |
productCodes
A list of product codes.
|
private java.lang.String |
snapshotId
The ID of the EBS snapshot.
|
Constructor and Description |
---|
DescribeSnapshotAttributeResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSnapshotAttributeResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<CreateVolumePermission> |
getCreateVolumePermissions()
A list of permissions for creating volumes from the snapshot.
|
java.util.List<ProductCode> |
getProductCodes()
A list of product codes.
|
java.lang.String |
getSnapshotId()
The ID of the EBS snapshot.
|
int |
hashCode() |
void |
setCreateVolumePermissions(java.util.Collection<CreateVolumePermission> createVolumePermissions)
A list of permissions for creating volumes from the snapshot.
|
void |
setProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.
|
void |
setSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotAttributeResult |
withCreateVolumePermissions(java.util.Collection<CreateVolumePermission> createVolumePermissions)
A list of permissions for creating volumes from the snapshot.
|
DescribeSnapshotAttributeResult |
withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions)
A list of permissions for creating volumes from the snapshot.
|
DescribeSnapshotAttributeResult |
withProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.
|
DescribeSnapshotAttributeResult |
withProductCodes(ProductCode... productCodes)
A list of product codes.
|
DescribeSnapshotAttributeResult |
withSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
|
private java.lang.String snapshotId
The ID of the EBS snapshot.
private SdkInternalList<CreateVolumePermission> createVolumePermissions
A list of permissions for creating volumes from the snapshot.
private SdkInternalList<ProductCode> productCodes
A list of product codes.
public void setSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
snapshotId
- The ID of the EBS snapshot.public java.lang.String getSnapshotId()
The ID of the EBS snapshot.
public DescribeSnapshotAttributeResult withSnapshotId(java.lang.String snapshotId)
The ID of the EBS snapshot.
snapshotId
- The ID of the EBS snapshot.public java.util.List<CreateVolumePermission> getCreateVolumePermissions()
A list of permissions for creating volumes from the snapshot.
public void setCreateVolumePermissions(java.util.Collection<CreateVolumePermission> createVolumePermissions)
A list of permissions for creating volumes from the snapshot.
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.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)
or
withCreateVolumePermissions(java.util.Collection)
if you want to
override the existing values.
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.public DescribeSnapshotAttributeResult withCreateVolumePermissions(java.util.Collection<CreateVolumePermission> createVolumePermissions)
A list of permissions for creating volumes from the snapshot.
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.public java.util.List<ProductCode> getProductCodes()
A list of product codes.
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.
productCodes
- A list of product codes.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)
or
withProductCodes(java.util.Collection)
if you want to override
the existing values.
productCodes
- A list of product codes.public DescribeSnapshotAttributeResult withProductCodes(java.util.Collection<ProductCode> productCodes)
A list of product codes.
productCodes
- A list of product codes.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeSnapshotAttributeResult clone()
clone
in class java.lang.Object