public class DescribeSnapshotAttributeResult extends Object implements Serializable
The result of describing an EBS snapshot attribute.
Constructor and Description |
---|
DescribeSnapshotAttributeResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<CreateVolumePermission> |
getCreateVolumePermissions()
The list of permissions describing who can create a volume from the
associated EBS snapshot.
|
List<ProductCode> |
getProductCodes()
Returns the value of the ProductCodes property for this object.
|
String |
getSnapshotId()
The ID of the snapshot whose attribute is being described.
|
int |
hashCode() |
void |
setCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
The list of permissions describing who can create a volume from the
associated EBS snapshot.
|
void |
setProductCodes(Collection<ProductCode> productCodes)
Sets the value of the ProductCodes property for this object.
|
void |
setSnapshotId(String snapshotId)
The ID of the snapshot whose attribute is being described.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSnapshotAttributeResult |
withCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
The list of permissions describing who can create a volume from the
associated EBS snapshot.
|
DescribeSnapshotAttributeResult |
withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions)
The list of permissions describing who can create a volume from the
associated EBS snapshot.
|
DescribeSnapshotAttributeResult |
withProductCodes(Collection<ProductCode> productCodes)
Sets the value of the ProductCodes property for this object.
|
DescribeSnapshotAttributeResult |
withProductCodes(ProductCode... productCodes)
Sets the value of the ProductCodes property for this object.
|
DescribeSnapshotAttributeResult |
withSnapshotId(String snapshotId)
The ID of the snapshot whose attribute is being described.
|
public String getSnapshotId()
public void setSnapshotId(String snapshotId)
snapshotId
- The ID of the snapshot whose attribute is being described.public DescribeSnapshotAttributeResult withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
snapshotId
- The ID of the snapshot whose attribute is being described.public List<CreateVolumePermission> getCreateVolumePermissions()
Only available if the createVolumePermission attribute is requested.
Only available if the createVolumePermission attribute is requested.
public void setCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
Only available if the createVolumePermission attribute is requested.
createVolumePermissions
- The list of permissions describing who can create a volume from the
associated EBS snapshot. Only available if the createVolumePermission attribute is requested.
public DescribeSnapshotAttributeResult withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions)
Only available if the createVolumePermission attribute is requested.
Returns a reference to this object so that method calls can be chained together.
createVolumePermissions
- The list of permissions describing who can create a volume from the
associated EBS snapshot. Only available if the createVolumePermission attribute is requested.
public DescribeSnapshotAttributeResult withCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
Only available if the createVolumePermission attribute is requested.
Returns a reference to this object so that method calls can be chained together.
createVolumePermissions
- The list of permissions describing who can create a volume from the
associated EBS snapshot. Only available if the createVolumePermission attribute is requested.
public List<ProductCode> getProductCodes()
public void setProductCodes(Collection<ProductCode> productCodes)
productCodes
- The new value for the ProductCodes property for this object.public DescribeSnapshotAttributeResult withProductCodes(ProductCode... productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- The new value for the ProductCodes property for this object.public DescribeSnapshotAttributeResult withProductCodes(Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes
- The new value for the ProductCodes property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.