com.amazonaws.services.ec2.model
Class DescribeSnapshotAttributeResult

java.lang.Object
  extended by com.amazonaws.services.ec2.model.DescribeSnapshotAttributeResult

public class DescribeSnapshotAttributeResult
extends Object

The result of describing an EBS snapshot attribute.


Constructor Summary
DescribeSnapshotAttributeResult()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeSnapshotAttributeResult

public DescribeSnapshotAttributeResult()
Method Detail

getSnapshotId

public String getSnapshotId()
The ID of the snapshot whose attribute is being described.

Returns:
The ID of the snapshot whose attribute is being described.

setSnapshotId

public void setSnapshotId(String snapshotId)
The ID of the snapshot whose attribute is being described.

Parameters:
snapshotId - The ID of the snapshot whose attribute is being described.

withSnapshotId

public DescribeSnapshotAttributeResult withSnapshotId(String snapshotId)
The ID of the snapshot whose attribute is being described.

Returns a reference to this object so that method calls can be chained together.

Parameters:
snapshotId - The ID of the snapshot whose attribute is being described.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreateVolumePermissions

public List<CreateVolumePermission> getCreateVolumePermissions()
The list of permissions describing who can create a volume from the associated EBS snapshot.

Only available if the createVolumePermission attribute is requested.

Returns:
The list of permissions describing who can create a volume from the associated EBS snapshot.

Only available if the createVolumePermission attribute is requested.


setCreateVolumePermissions

public void setCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
The list of permissions describing who can create a volume from the associated EBS snapshot.

Only available if the createVolumePermission attribute is requested.

Parameters:
createVolumePermissions - The list of permissions describing who can create a volume from the associated EBS snapshot.

Only available if the createVolumePermission attribute is requested.


withCreateVolumePermissions

public DescribeSnapshotAttributeResult withCreateVolumePermissions(CreateVolumePermission... createVolumePermissions)
The list of permissions describing who can create a volume from the associated EBS snapshot.

Only available if the createVolumePermission attribute is requested.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createVolumePermissions - The list of permissions describing who can create a volume from the associated EBS snapshot.

Only available if the createVolumePermission attribute is requested.

Returns:
A reference to this updated object so that method calls can be chained together.

withCreateVolumePermissions

public DescribeSnapshotAttributeResult withCreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions)
The list of permissions describing who can create a volume from the associated EBS snapshot.

Only available if the createVolumePermission attribute is requested.

Returns a reference to this object so that method calls can be chained together.

Parameters:
createVolumePermissions - The list of permissions describing who can create a volume from the associated EBS snapshot.

Only available if the createVolumePermission attribute is requested.

Returns:
A reference to this updated object so that method calls can be chained together.

getProductCodes

public List<ProductCode> getProductCodes()
Returns the value of the ProductCodes property for this object.

Returns:
The value of the ProductCodes property for this object.

setProductCodes

public void setProductCodes(Collection<ProductCode> productCodes)
Sets the value of the ProductCodes property for this object.

Parameters:
productCodes - The new value for the ProductCodes property for this object.

withProductCodes

public DescribeSnapshotAttributeResult withProductCodes(ProductCode... productCodes)
Sets the value of the ProductCodes property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - The new value for the ProductCodes property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withProductCodes

public DescribeSnapshotAttributeResult withProductCodes(Collection<ProductCode> productCodes)
Sets the value of the ProductCodes property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
productCodes - The new value for the ProductCodes property for this object.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.