@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 block.
|
Date |
getExpiryTime()
The time when the
block token 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 block.
|
void |
setExpiryTime(Date expiryTime)
The time when the
block token 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 block.
|
ListSnapshotBlocksResult |
withExpiryTime(Date expiryTime)
The time when the
block token 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 block token
expires.
expiryTime
- The time when the block token
expires.public Date getExpiryTime()
The time when the block token
expires.
block token
expires.public ListSnapshotBlocksResult withExpiryTime(Date expiryTime)
The time when the block token
expires.
expiryTime
- The time when the block token
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 block.
blockSize
- The size of the block.public Integer getBlockSize()
The size of the block.
public ListSnapshotBlocksResult withBlockSize(Integer blockSize)
The size of the block.
blockSize
- The size of the block.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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.