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