public class DescribeSnapshotAttributeResult extends Object implements Serializable, Cloneable
Constructor and Description |
---|
DescribeSnapshotAttributeResult() |
Modifier and Type | Method and 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(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(Collection<ProductCode> productCodes)
A list of product codes.
|
DescribeSnapshotAttributeResult |
withProductCodes(ProductCode... productCodes)
A list of product codes.
|
DescribeSnapshotAttributeResult |
withSnapshotId(String snapshotId)
The ID of the EBS snapshot.
|
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The ID of the EBS snapshot.public DescribeSnapshotAttributeResult withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The ID of the EBS snapshot.public List<CreateVolumePermission> getCreateVolumePermissions()
public void setCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.public DescribeSnapshotAttributeResult withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions)
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.
Returns a reference to this object so that method calls can be chained together.
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.public DescribeSnapshotAttributeResult withCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
Returns a reference to this object so that method calls can be chained together.
createVolumePermissions
- A list of permissions for creating volumes from the snapshot.public List<ProductCode> getProductCodes()
public void setProductCodes(Collection<ProductCode> productCodes)
productCodes
- A list of product codes.public DescribeSnapshotAttributeResult withProductCodes(ProductCode... productCodes)
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.
Returns a reference to this object so that method calls can be chained together.
productCodes
- A list of product codes.public DescribeSnapshotAttributeResult withProductCodes(Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- A list of product codes.public String toString()
toString
in class Object
Object.toString()
public DescribeSnapshotAttributeResult clone()
Copyright © 2015. All rights reserved.