@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeBackupsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Response object for the DescribeBackups operation.
| Constructor and Description |
|---|
DescribeBackupsResult() |
| Modifier and Type | Method and Description |
|---|---|
DescribeBackupsResult |
clone() |
boolean |
equals(Object obj) |
List<Backup> |
getBackups()
An array of backups.
|
String |
getNextToken()
A
NextToken value is present if there are more backups than returned in the response. |
int |
hashCode() |
void |
setBackups(Collection<Backup> backups)
An array of backups.
|
void |
setNextToken(String nextToken)
A
NextToken value is present if there are more backups than returned in the response. |
String |
toString()
Returns a string representation of this object.
|
DescribeBackupsResult |
withBackups(Backup... backups)
An array of backups.
|
DescribeBackupsResult |
withBackups(Collection<Backup> backups)
An array of backups.
|
DescribeBackupsResult |
withNextToken(String nextToken)
A
NextToken value is present if there are more backups than returned in the response. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setBackups(Collection<Backup> backups)
An array of backups.
backups - An array of backups.public DescribeBackupsResult withBackups(Backup... backups)
An array 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 - An array of backups.public DescribeBackupsResult withBackups(Collection<Backup> backups)
An array of backups.
backups - An array of backups.public void setNextToken(String nextToken)
A NextToken value is present if there are more backups than returned in the response. You can use
the NextToken value in the subsequent request to fetch the backups.
nextToken - A NextToken value is present if there are more backups than returned in the response. You can
use the NextToken value in the subsequent request to fetch the backups.public String getNextToken()
A NextToken value is present if there are more backups than returned in the response. You can use
the NextToken value in the subsequent request to fetch the backups.
NextToken value is present if there are more backups than returned in the response. You
can use the NextToken value in the subsequent request to fetch the backups.public DescribeBackupsResult withNextToken(String nextToken)
A NextToken value is present if there are more backups than returned in the response. You can use
the NextToken value in the subsequent request to fetch the backups.
nextToken - A NextToken value is present if there are more backups than returned in the response. You can
use the NextToken value in the subsequent request to fetch the backups.public String toString()
toString in class ObjectObject.toString()public DescribeBackupsResult clone()