@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListSnapshotBlocksResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListSnapshotBlocksResult() |
Modifier and Type | Method and Description |
---|---|
ListSnapshotBlocksResult |
clone() |
boolean |
equals(Object obj) |
List<Block> |
getBlocks()
An array of objects containing information about the blocks.
|
Integer |
getBlockSize()
The size of the blocks in the snapshot, in bytes.
|
Date |
getExpiryTime()
The time when the
BlockToken expires. |
String |
getNextToken()
The token to use to retrieve the next page of results.
|
Long |
getVolumeSize()
The size of the volume in GB.
|
int |
hashCode() |
void |
setBlocks(Collection<Block> blocks)
An array of objects containing information about the blocks.
|
void |
setBlockSize(Integer blockSize)
The size of the blocks in the snapshot, in bytes.
|
void |
setExpiryTime(Date expiryTime)
The time when the
BlockToken expires. |
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
void |
setVolumeSize(Long volumeSize)
The size of the volume in GB.
|
String |
toString()
Returns a string representation of this object.
|
ListSnapshotBlocksResult |
withBlocks(Block... blocks)
An array of objects containing information about the blocks.
|
ListSnapshotBlocksResult |
withBlocks(Collection<Block> blocks)
An array of objects containing information about the blocks.
|
ListSnapshotBlocksResult |
withBlockSize(Integer blockSize)
The size of the blocks in the snapshot, in bytes.
|
ListSnapshotBlocksResult |
withExpiryTime(Date expiryTime)
The time when the
BlockToken expires. |
ListSnapshotBlocksResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
ListSnapshotBlocksResult |
withVolumeSize(Long volumeSize)
The size of the volume in GB.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Block> getBlocks()
An array of objects containing information about the blocks.
public void setBlocks(Collection<Block> blocks)
An array of objects containing information about the blocks.
blocks
- An array of objects containing information about the blocks.public ListSnapshotBlocksResult withBlocks(Block... blocks)
An array of objects containing information about the blocks.
NOTE: This method appends the values to the existing list (if any). Use
setBlocks(java.util.Collection)
or withBlocks(java.util.Collection)
if you want to override the
existing values.
blocks
- An array of objects containing information about the blocks.public ListSnapshotBlocksResult withBlocks(Collection<Block> blocks)
An array of objects containing information about the blocks.
blocks
- An array of objects containing information about the blocks.public void setExpiryTime(Date expiryTime)
The time when the BlockToken
expires.
expiryTime
- The time when the BlockToken
expires.public Date getExpiryTime()
The time when the BlockToken
expires.
BlockToken
expires.public ListSnapshotBlocksResult withExpiryTime(Date expiryTime)
The time when the BlockToken
expires.
expiryTime
- The time when the BlockToken
expires.public void setVolumeSize(Long volumeSize)
The size of the volume in GB.
volumeSize
- The size of the volume in GB.public Long getVolumeSize()
The size of the volume in GB.
public ListSnapshotBlocksResult withVolumeSize(Long volumeSize)
The size of the volume in GB.
volumeSize
- The size of the volume in GB.public void setBlockSize(Integer blockSize)
The size of the blocks in the snapshot, in bytes.
blockSize
- The size of the blocks in the snapshot, in bytes.public Integer getBlockSize()
The size of the blocks in the snapshot, in bytes.
public ListSnapshotBlocksResult withBlockSize(Integer blockSize)
The size of the blocks in the snapshot, in bytes.
blockSize
- The size of the blocks in the snapshot, in bytes.public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null when there are no more results
to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
public ListSnapshotBlocksResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null when there are no more results
to return.public String toString()
toString
in class Object
Object.toString()
public ListSnapshotBlocksResult clone()