com.amazonaws.services.backup.model.ListBackupJobSummariesRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-backup Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.backup.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListBackupJobSummariesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Returns the job count for the specified account.
*
*
* If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs
* within requestor's account will be returned.
*
*
* Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account
* in the organization.
*
*
* AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization, then
* returns the sum.
*
*/
private String accountId;
/**
*
* This parameter returns the job count for jobs with the specified state.
*
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status refers to
* jobs with a state of COMPLETED
and a MessageCategory
with a value other than
* SUCCESS
; that is, the status is completed but comes with a status message. To obtain the job count
* for Completed with issues
, run two GET requests, and subtract the second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=COMPLETED
*
*/
private String state;
/**
*
* Returns the job count for the specified resource type. Use request GetSupportedResourceTypes
to
* obtain strings for supported resource types.
*
*
* The the value ANY returns count of all resource types.
*
*
* AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.
*
*
* The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS)
* volume or an Amazon Relational Database Service (Amazon RDS) database.
*
*/
private String resourceType;
/**
*
* This parameter returns the job count for the specified message category.
*
*
* Example accepted strings include AccessDenied
, Success
, and
* InvalidParameters
. See Monitoring for a list of
* accepted MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*
*/
private String messageCategory;
/**
*
* This is the period that sets the boundaries for returned results.
*
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
*
*/
private String aggregationPeriod;
/**
*
* This parameter sets the maximum number of items to be returned.
*
*
* The value is an integer. Range of accepted values is from 1 to 500.
*
*/
private Integer maxResults;
/**
*
* The next item following a partial list of returned resources. For example, if a request is made to return
* MaxResults
number of resources, NextToken
allows you to return more items in your list
* starting at the location pointed to by the next token.
*
*/
private String nextToken;
/**
*
* Returns the job count for the specified account.
*
*
* If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs
* within requestor's account will be returned.
*
*
* Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account
* in the organization.
*
*
* AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization, then
* returns the sum.
*
*
* @param accountId
* Returns the job count for the specified account.
*
* If the request is sent from a member account or an account not part of Amazon Web Services Organizations,
* jobs within requestor's account will be returned.
*
*
* Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every
* account in the organization.
*
*
* AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization,
* then returns the sum.
*/
public void setAccountId(String accountId) {
this.accountId = accountId;
}
/**
*
* Returns the job count for the specified account.
*
*
* If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs
* within requestor's account will be returned.
*
*
* Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account
* in the organization.
*
*
* AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization, then
* returns the sum.
*
*
* @return Returns the job count for the specified account.
*
* If the request is sent from a member account or an account not part of Amazon Web Services Organizations,
* jobs within requestor's account will be returned.
*
*
* Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every
* account in the organization.
*
*
* AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization,
* then returns the sum.
*/
public String getAccountId() {
return this.accountId;
}
/**
*
* Returns the job count for the specified account.
*
*
* If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs
* within requestor's account will be returned.
*
*
* Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account
* in the organization.
*
*
* AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization, then
* returns the sum.
*
*
* @param accountId
* Returns the job count for the specified account.
*
* If the request is sent from a member account or an account not part of Amazon Web Services Organizations,
* jobs within requestor's account will be returned.
*
*
* Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every
* account in the organization.
*
*
* AGGREGATE_ALL
aggregates job counts from all accounts within the authenticated organization,
* then returns the sum.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListBackupJobSummariesRequest withAccountId(String accountId) {
setAccountId(accountId);
return this;
}
/**
*
* This parameter returns the job count for jobs with the specified state.
*
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status refers to
* jobs with a state of COMPLETED
and a MessageCategory
with a value other than
* SUCCESS
; that is, the status is completed but comes with a status message. To obtain the job count
* for Completed with issues
, run two GET requests, and subtract the second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=COMPLETED
*
*
* @param state
* This parameter returns the job count for jobs with the specified state.
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status
* refers to jobs with a state of COMPLETED
and a MessageCategory
with a value
* other than SUCCESS
; that is, the status is completed but comes with a status message. To
* obtain the job count for Completed with issues
, run two GET requests, and subtract the
* second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=
* COMPLETED
* @see BackupJobStatus
*/
public void setState(String state) {
this.state = state;
}
/**
*
* This parameter returns the job count for jobs with the specified state.
*
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status refers to
* jobs with a state of COMPLETED
and a MessageCategory
with a value other than
* SUCCESS
; that is, the status is completed but comes with a status message. To obtain the job count
* for Completed with issues
, run two GET requests, and subtract the second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=COMPLETED
*
*
* @return This parameter returns the job count for jobs with the specified state.
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status
* refers to jobs with a state of COMPLETED
and a MessageCategory
with a value
* other than SUCCESS
; that is, the status is completed but comes with a status message. To
* obtain the job count for Completed with issues
, run two GET requests, and subtract the
* second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=
* COMPLETED
* @see BackupJobStatus
*/
public String getState() {
return this.state;
}
/**
*
* This parameter returns the job count for jobs with the specified state.
*
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status refers to
* jobs with a state of COMPLETED
and a MessageCategory
with a value other than
* SUCCESS
; that is, the status is completed but comes with a status message. To obtain the job count
* for Completed with issues
, run two GET requests, and subtract the second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=COMPLETED
*
*
* @param state
* This parameter returns the job count for jobs with the specified state.
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status
* refers to jobs with a state of COMPLETED
and a MessageCategory
with a value
* other than SUCCESS
; that is, the status is completed but comes with a status message. To
* obtain the job count for Completed with issues
, run two GET requests, and subtract the
* second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=
* COMPLETED
* @return Returns a reference to this object so that method calls can be chained together.
* @see BackupJobStatus
*/
public ListBackupJobSummariesRequest withState(String state) {
setState(state);
return this;
}
/**
*
* This parameter returns the job count for jobs with the specified state.
*
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status refers to
* jobs with a state of COMPLETED
and a MessageCategory
with a value other than
* SUCCESS
; that is, the status is completed but comes with a status message. To obtain the job count
* for Completed with issues
, run two GET requests, and subtract the second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=COMPLETED
*
*
* @param state
* This parameter returns the job count for jobs with the specified state.
*
* The the value ANY returns count of all states.
*
*
* AGGREGATE_ALL
aggregates job counts for all states and returns the sum.
*
*
* Completed with issues
is a status found only in the Backup console. For API, this status
* refers to jobs with a state of COMPLETED
and a MessageCategory
with a value
* other than SUCCESS
; that is, the status is completed but comes with a status message. To
* obtain the job count for Completed with issues
, run two GET requests, and subtract the
* second, smaller number:
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&State=COMPLETED
*
*
* GET /audit/backup-job-summaries?AggregationPeriod=FOURTEEN_DAYS&MessageCategory=SUCCESS&State=
* COMPLETED
* @return Returns a reference to this object so that method calls can be chained together.
* @see BackupJobStatus
*/
public ListBackupJobSummariesRequest withState(BackupJobStatus state) {
this.state = state.toString();
return this;
}
/**
*
* Returns the job count for the specified resource type. Use request GetSupportedResourceTypes
to
* obtain strings for supported resource types.
*
*
* The the value ANY returns count of all resource types.
*
*
* AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.
*
*
* The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS)
* volume or an Amazon Relational Database Service (Amazon RDS) database.
*
*
* @param resourceType
* Returns the job count for the specified resource type. Use request GetSupportedResourceTypes
* to obtain strings for supported resource types.
*
* The the value ANY returns count of all resource types.
*
*
* AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.
*
*
* The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store
* (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
*/
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* Returns the job count for the specified resource type. Use request GetSupportedResourceTypes
to
* obtain strings for supported resource types.
*
*
* The the value ANY returns count of all resource types.
*
*
* AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.
*
*
* The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS)
* volume or an Amazon Relational Database Service (Amazon RDS) database.
*
*
* @return Returns the job count for the specified resource type. Use request GetSupportedResourceTypes
* to obtain strings for supported resource types.
*
* The the value ANY returns count of all resource types.
*
*
* AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.
*
*
* The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store
* (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
*/
public String getResourceType() {
return this.resourceType;
}
/**
*
* Returns the job count for the specified resource type. Use request GetSupportedResourceTypes
to
* obtain strings for supported resource types.
*
*
* The the value ANY returns count of all resource types.
*
*
* AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.
*
*
* The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS)
* volume or an Amazon Relational Database Service (Amazon RDS) database.
*
*
* @param resourceType
* Returns the job count for the specified resource type. Use request GetSupportedResourceTypes
* to obtain strings for supported resource types.
*
* The the value ANY returns count of all resource types.
*
*
* AGGREGATE_ALL
aggregates job counts for all resource types and returns the sum.
*
*
* The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic Block Store
* (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListBackupJobSummariesRequest withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* This parameter returns the job count for the specified message category.
*
*
* Example accepted strings include AccessDenied
, Success
, and
* InvalidParameters
. See Monitoring for a list of
* accepted MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*
*
* @param messageCategory
* This parameter returns the job count for the specified message category.
*
* Example accepted strings include AccessDenied
, Success
, and
* InvalidParameters
. See Monitoring for a list of
* accepted MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*/
public void setMessageCategory(String messageCategory) {
this.messageCategory = messageCategory;
}
/**
*
* This parameter returns the job count for the specified message category.
*
*
* Example accepted strings include AccessDenied
, Success
, and
* InvalidParameters
. See Monitoring for a list of
* accepted MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*
*
* @return This parameter returns the job count for the specified message category.
*
* Example accepted strings include AccessDenied
, Success
, and
* InvalidParameters
. See Monitoring for a list
* of accepted MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*/
public String getMessageCategory() {
return this.messageCategory;
}
/**
*
* This parameter returns the job count for the specified message category.
*
*
* Example accepted strings include AccessDenied
, Success
, and
* InvalidParameters
. See Monitoring for a list of
* accepted MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
*
*
* @param messageCategory
* This parameter returns the job count for the specified message category.
*
* Example accepted strings include AccessDenied
, Success
, and
* InvalidParameters
. See Monitoring for a list of
* accepted MessageCategory strings.
*
*
* The the value ANY returns count of all message categories.
*
*
* AGGREGATE_ALL
aggregates job counts for all message categories and returns the sum.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListBackupJobSummariesRequest withMessageCategory(String messageCategory) {
setMessageCategory(messageCategory);
return this;
}
/**
*
* This is the period that sets the boundaries for returned results.
*
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
*
*
* @param aggregationPeriod
* This is the period that sets the boundaries for returned results.
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
* @see AggregationPeriod
*/
public void setAggregationPeriod(String aggregationPeriod) {
this.aggregationPeriod = aggregationPeriod;
}
/**
*
* This is the period that sets the boundaries for returned results.
*
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
*
*
* @return This is the period that sets the boundaries for returned results.
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
* @see AggregationPeriod
*/
public String getAggregationPeriod() {
return this.aggregationPeriod;
}
/**
*
* This is the period that sets the boundaries for returned results.
*
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
*
*
* @param aggregationPeriod
* This is the period that sets the boundaries for returned results.
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see AggregationPeriod
*/
public ListBackupJobSummariesRequest withAggregationPeriod(String aggregationPeriod) {
setAggregationPeriod(aggregationPeriod);
return this;
}
/**
*
* This is the period that sets the boundaries for returned results.
*
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
*
*
* @param aggregationPeriod
* This is the period that sets the boundaries for returned results.
*
* Acceptable values include
*
*
* -
*
* ONE_DAY
for daily job count for the prior 14 days.
*
*
* -
*
* SEVEN_DAYS
for the aggregated job count for the prior 7 days.
*
*
* -
*
* FOURTEEN_DAYS
for aggregated job count for prior 14 days.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see AggregationPeriod
*/
public ListBackupJobSummariesRequest withAggregationPeriod(AggregationPeriod aggregationPeriod) {
this.aggregationPeriod = aggregationPeriod.toString();
return this;
}
/**
*
* This parameter sets the maximum number of items to be returned.
*
*
* The value is an integer. Range of accepted values is from 1 to 500.
*
*
* @param maxResults
* This parameter sets the maximum number of items to be returned.
*
* The value is an integer. Range of accepted values is from 1 to 500.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* This parameter sets the maximum number of items to be returned.
*
*
* The value is an integer. Range of accepted values is from 1 to 500.
*
*
* @return This parameter sets the maximum number of items to be returned.
*
* The value is an integer. Range of accepted values is from 1 to 500.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* This parameter sets the maximum number of items to be returned.
*
*
* The value is an integer. Range of accepted values is from 1 to 500.
*
*
* @param maxResults
* This parameter sets the maximum number of items to be returned.
*
* The value is an integer. Range of accepted values is from 1 to 500.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListBackupJobSummariesRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The next item following a partial list of returned resources. For example, if a request is made to return
* MaxResults
number of resources, NextToken
allows you to return more items in your list
* starting at the location pointed to by the next token.
*
*
* @param nextToken
* The next item following a partial list of returned resources. For example, if a request is made to return
* MaxResults
number of resources, NextToken
allows you to return more items in
* your list starting at the location pointed to by the next token.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The next item following a partial list of returned resources. For example, if a request is made to return
* MaxResults
number of resources, NextToken
allows you to return more items in your list
* starting at the location pointed to by the next token.
*
*
* @return The next item following a partial list of returned resources. For example, if a request is made to return
* MaxResults
number of resources, NextToken
allows you to return more items in
* your list starting at the location pointed to by the next token.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The next item following a partial list of returned resources. For example, if a request is made to return
* MaxResults
number of resources, NextToken
allows you to return more items in your list
* starting at the location pointed to by the next token.
*
*
* @param nextToken
* The next item following a partial list of returned resources. For example, if a request is made to return
* MaxResults
number of resources, NextToken
allows you to return more items in
* your list starting at the location pointed to by the next token.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListBackupJobSummariesRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAccountId() != null)
sb.append("AccountId: ").append(getAccountId()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
if (getResourceType() != null)
sb.append("ResourceType: ").append(getResourceType()).append(",");
if (getMessageCategory() != null)
sb.append("MessageCategory: ").append(getMessageCategory()).append(",");
if (getAggregationPeriod() != null)
sb.append("AggregationPeriod: ").append(getAggregationPeriod()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListBackupJobSummariesRequest == false)
return false;
ListBackupJobSummariesRequest other = (ListBackupJobSummariesRequest) obj;
if (other.getAccountId() == null ^ this.getAccountId() == null)
return false;
if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == false)
return false;
if (other.getResourceType() == null ^ this.getResourceType() == null)
return false;
if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false)
return false;
if (other.getMessageCategory() == null ^ this.getMessageCategory() == null)
return false;
if (other.getMessageCategory() != null && other.getMessageCategory().equals(this.getMessageCategory()) == false)
return false;
if (other.getAggregationPeriod() == null ^ this.getAggregationPeriod() == null)
return false;
if (other.getAggregationPeriod() != null && other.getAggregationPeriod().equals(this.getAggregationPeriod()) == false)
return false;
if (other.getMaxResults() == null ^ this.getMaxResults() == null)
return false;
if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode());
hashCode = prime * hashCode + ((getMessageCategory() == null) ? 0 : getMessageCategory().hashCode());
hashCode = prime * hashCode + ((getAggregationPeriod() == null) ? 0 : getAggregationPeriod().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public ListBackupJobSummariesRequest clone() {
return (ListBackupJobSummariesRequest) super.clone();
}
}