All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.dynamodbv2.model.ListBackupsResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DynamoDB module holds the client classes that are used for communicating with Amazon DynamoDB Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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.dynamodbv2.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListBackupsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* List of BackupSummary objects. *

*/ private java.util.List backupSummaries; /** *

* The ARN of the backup last evaluated when the current page of results was returned, inclusive of the current page * of results. This value may be specified as the ExclusiveStartBackupArn of a new * ListBackups operation in order to fetch the next page of results. *

*

* If LastEvaluatedBackupArn is empty, then the last page of results has been processed and there are * no more results to be retrieved. *

*

* If LastEvaluatedBackupArn is not empty, this may or may not indicate that there is more data to be * returned. All results are guaranteed to have been returned if and only if no value for * LastEvaluatedBackupArn is returned. *

*/ private String lastEvaluatedBackupArn; /** *

* List of BackupSummary objects. *

* * @return List of BackupSummary objects. */ public java.util.List getBackupSummaries() { return backupSummaries; } /** *

* List of BackupSummary objects. *

* * @param backupSummaries * List of BackupSummary objects. */ public void setBackupSummaries(java.util.Collection backupSummaries) { if (backupSummaries == null) { this.backupSummaries = null; return; } this.backupSummaries = new java.util.ArrayList(backupSummaries); } /** *

* List of BackupSummary objects. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setBackupSummaries(java.util.Collection)} or {@link #withBackupSummaries(java.util.Collection)} if you * want to override the existing values. *

* * @param backupSummaries * List of BackupSummary objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBackupsResult withBackupSummaries(BackupSummary... backupSummaries) { if (this.backupSummaries == null) { setBackupSummaries(new java.util.ArrayList(backupSummaries.length)); } for (BackupSummary ele : backupSummaries) { this.backupSummaries.add(ele); } return this; } /** *

* List of BackupSummary objects. *

* * @param backupSummaries * List of BackupSummary objects. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBackupsResult withBackupSummaries(java.util.Collection backupSummaries) { setBackupSummaries(backupSummaries); return this; } /** *

* The ARN of the backup last evaluated when the current page of results was returned, inclusive of the current page * of results. This value may be specified as the ExclusiveStartBackupArn of a new * ListBackups operation in order to fetch the next page of results. *

*

* If LastEvaluatedBackupArn is empty, then the last page of results has been processed and there are * no more results to be retrieved. *

*

* If LastEvaluatedBackupArn is not empty, this may or may not indicate that there is more data to be * returned. All results are guaranteed to have been returned if and only if no value for * LastEvaluatedBackupArn is returned. *

* * @param lastEvaluatedBackupArn * The ARN of the backup last evaluated when the current page of results was returned, inclusive of the * current page of results. This value may be specified as the ExclusiveStartBackupArn of a new * ListBackups operation in order to fetch the next page of results.

*

* If LastEvaluatedBackupArn is empty, then the last page of results has been processed and * there are no more results to be retrieved. *

*

* If LastEvaluatedBackupArn is not empty, this may or may not indicate that there is more data * to be returned. All results are guaranteed to have been returned if and only if no value for * LastEvaluatedBackupArn is returned. */ public void setLastEvaluatedBackupArn(String lastEvaluatedBackupArn) { this.lastEvaluatedBackupArn = lastEvaluatedBackupArn; } /** *

* The ARN of the backup last evaluated when the current page of results was returned, inclusive of the current page * of results. This value may be specified as the ExclusiveStartBackupArn of a new * ListBackups operation in order to fetch the next page of results. *

*

* If LastEvaluatedBackupArn is empty, then the last page of results has been processed and there are * no more results to be retrieved. *

*

* If LastEvaluatedBackupArn is not empty, this may or may not indicate that there is more data to be * returned. All results are guaranteed to have been returned if and only if no value for * LastEvaluatedBackupArn is returned. *

* * @return The ARN of the backup last evaluated when the current page of results was returned, inclusive of the * current page of results. This value may be specified as the ExclusiveStartBackupArn of a new * ListBackups operation in order to fetch the next page of results.

*

* If LastEvaluatedBackupArn is empty, then the last page of results has been processed and * there are no more results to be retrieved. *

*

* If LastEvaluatedBackupArn is not empty, this may or may not indicate that there is more data * to be returned. All results are guaranteed to have been returned if and only if no value for * LastEvaluatedBackupArn is returned. */ public String getLastEvaluatedBackupArn() { return this.lastEvaluatedBackupArn; } /** *

* The ARN of the backup last evaluated when the current page of results was returned, inclusive of the current page * of results. This value may be specified as the ExclusiveStartBackupArn of a new * ListBackups operation in order to fetch the next page of results. *

*

* If LastEvaluatedBackupArn is empty, then the last page of results has been processed and there are * no more results to be retrieved. *

*

* If LastEvaluatedBackupArn is not empty, this may or may not indicate that there is more data to be * returned. All results are guaranteed to have been returned if and only if no value for * LastEvaluatedBackupArn is returned. *

* * @param lastEvaluatedBackupArn * The ARN of the backup last evaluated when the current page of results was returned, inclusive of the * current page of results. This value may be specified as the ExclusiveStartBackupArn of a new * ListBackups operation in order to fetch the next page of results.

*

* If LastEvaluatedBackupArn is empty, then the last page of results has been processed and * there are no more results to be retrieved. *

*

* If LastEvaluatedBackupArn is not empty, this may or may not indicate that there is more data * to be returned. All results are guaranteed to have been returned if and only if no value for * LastEvaluatedBackupArn is returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ListBackupsResult withLastEvaluatedBackupArn(String lastEvaluatedBackupArn) { setLastEvaluatedBackupArn(lastEvaluatedBackupArn); 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 (getBackupSummaries() != null) sb.append("BackupSummaries: ").append(getBackupSummaries()).append(","); if (getLastEvaluatedBackupArn() != null) sb.append("LastEvaluatedBackupArn: ").append(getLastEvaluatedBackupArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListBackupsResult == false) return false; ListBackupsResult other = (ListBackupsResult) obj; if (other.getBackupSummaries() == null ^ this.getBackupSummaries() == null) return false; if (other.getBackupSummaries() != null && other.getBackupSummaries().equals(this.getBackupSummaries()) == false) return false; if (other.getLastEvaluatedBackupArn() == null ^ this.getLastEvaluatedBackupArn() == null) return false; if (other.getLastEvaluatedBackupArn() != null && other.getLastEvaluatedBackupArn().equals(this.getLastEvaluatedBackupArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupSummaries() == null) ? 0 : getBackupSummaries().hashCode()); hashCode = prime * hashCode + ((getLastEvaluatedBackupArn() == null) ? 0 : getLastEvaluatedBackupArn().hashCode()); return hashCode; } @Override public ListBackupsResult clone() { try { return (ListBackupsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy