@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeBackupsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeBackupsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeBackupsResult |
clone() |
boolean |
equals(Object obj) |
List<Backup> |
getBackups()
A list of backups.
|
String |
getNextToken()
An opaque string that indicates that the response contains only a subset of backups.
|
int |
hashCode() |
void |
setBackups(Collection<Backup> backups)
A list of backups.
|
void |
setNextToken(String nextToken)
An opaque string that indicates that the response contains only a subset of backups.
|
String |
toString()
Returns a string representation of this object.
|
DescribeBackupsResult |
withBackups(Backup... backups)
A list of backups.
|
DescribeBackupsResult |
withBackups(Collection<Backup> backups)
A list of backups.
|
DescribeBackupsResult |
withNextToken(String nextToken)
An opaque string that indicates that the response contains only a subset of backups.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setBackups(Collection<Backup> backups)
A list of backups.
backups
- A list of backups.public DescribeBackupsResult withBackups(Backup... backups)
A list of backups.
NOTE: This method appends the values to the existing list (if any). Use
setBackups(java.util.Collection)
or withBackups(java.util.Collection)
if you want to override
the existing values.
backups
- A list of backups.public DescribeBackupsResult withBackups(Collection<Backup> backups)
A list of backups.
backups
- A list of backups.public void setNextToken(String nextToken)
An opaque string that indicates that the response contains only a subset of backups. Use this value in a
subsequent DescribeBackups
request to get more backups.
nextToken
- An opaque string that indicates that the response contains only a subset of backups. Use this value in a
subsequent DescribeBackups
request to get more backups.public String getNextToken()
An opaque string that indicates that the response contains only a subset of backups. Use this value in a
subsequent DescribeBackups
request to get more backups.
DescribeBackups
request to get more backups.public DescribeBackupsResult withNextToken(String nextToken)
An opaque string that indicates that the response contains only a subset of backups. Use this value in a
subsequent DescribeBackups
request to get more backups.
nextToken
- An opaque string that indicates that the response contains only a subset of backups. Use this value in a
subsequent DescribeBackups
request to get more backups.public String toString()
toString
in class Object
Object.toString()
public DescribeBackupsResult clone()