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

com.amazonaws.services.dynamodbv2.model.ListTablesResult 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.772
Show newest version
/*
 * Copyright 2017-2022 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;

/**
 * 

* Represents the output of a ListTables operation. *

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

* The names of the tables associated with the current account at the current endpoint. The maximum size of this * array is 100. *

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the * next page of results. *

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

* The name of the last table in the current page of results. Use this value as the * ExclusiveStartTableName in a new request to obtain the next page of results, until all the table * names are returned. *

*

* If you do not receive a LastEvaluatedTableName value in the response, this means that there are no * more table names to be retrieved. *

*/ private String lastEvaluatedTableName; /** *

* The names of the tables associated with the current account at the current endpoint. The maximum size of this * array is 100. *

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the * next page of results. *

* * @return The names of the tables associated with the current account at the current endpoint. The maximum size of * this array is 100.

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain * the next page of results. */ public java.util.List getTableNames() { return tableNames; } /** *

* The names of the tables associated with the current account at the current endpoint. The maximum size of this * array is 100. *

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the * next page of results. *

* * @param tableNames * The names of the tables associated with the current account at the current endpoint. The maximum size of * this array is 100.

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain * the next page of results. */ public void setTableNames(java.util.Collection tableNames) { if (tableNames == null) { this.tableNames = null; return; } this.tableNames = new java.util.ArrayList(tableNames); } /** *

* The names of the tables associated with the current account at the current endpoint. The maximum size of this * array is 100. *

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the * next page of results. *

*

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

* * @param tableNames * The names of the tables associated with the current account at the current endpoint. The maximum size of * this array is 100.

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain * the next page of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTablesResult withTableNames(String... tableNames) { if (this.tableNames == null) { setTableNames(new java.util.ArrayList(tableNames.length)); } for (String ele : tableNames) { this.tableNames.add(ele); } return this; } /** *

* The names of the tables associated with the current account at the current endpoint. The maximum size of this * array is 100. *

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain the * next page of results. *

* * @param tableNames * The names of the tables associated with the current account at the current endpoint. The maximum size of * this array is 100.

*

* If LastEvaluatedTableName also appears in the output, you can use this value as the * ExclusiveStartTableName parameter in a subsequent ListTables request and obtain * the next page of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTablesResult withTableNames(java.util.Collection tableNames) { setTableNames(tableNames); return this; } /** *

* The name of the last table in the current page of results. Use this value as the * ExclusiveStartTableName in a new request to obtain the next page of results, until all the table * names are returned. *

*

* If you do not receive a LastEvaluatedTableName value in the response, this means that there are no * more table names to be retrieved. *

* * @param lastEvaluatedTableName * The name of the last table in the current page of results. Use this value as the * ExclusiveStartTableName in a new request to obtain the next page of results, until all the * table names are returned.

*

* If you do not receive a LastEvaluatedTableName value in the response, this means that there * are no more table names to be retrieved. */ public void setLastEvaluatedTableName(String lastEvaluatedTableName) { this.lastEvaluatedTableName = lastEvaluatedTableName; } /** *

* The name of the last table in the current page of results. Use this value as the * ExclusiveStartTableName in a new request to obtain the next page of results, until all the table * names are returned. *

*

* If you do not receive a LastEvaluatedTableName value in the response, this means that there are no * more table names to be retrieved. *

* * @return The name of the last table in the current page of results. Use this value as the * ExclusiveStartTableName in a new request to obtain the next page of results, until all the * table names are returned.

*

* If you do not receive a LastEvaluatedTableName value in the response, this means that there * are no more table names to be retrieved. */ public String getLastEvaluatedTableName() { return this.lastEvaluatedTableName; } /** *

* The name of the last table in the current page of results. Use this value as the * ExclusiveStartTableName in a new request to obtain the next page of results, until all the table * names are returned. *

*

* If you do not receive a LastEvaluatedTableName value in the response, this means that there are no * more table names to be retrieved. *

* * @param lastEvaluatedTableName * The name of the last table in the current page of results. Use this value as the * ExclusiveStartTableName in a new request to obtain the next page of results, until all the * table names are returned.

*

* If you do not receive a LastEvaluatedTableName value in the response, this means that there * are no more table names to be retrieved. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTablesResult withLastEvaluatedTableName(String lastEvaluatedTableName) { setLastEvaluatedTableName(lastEvaluatedTableName); 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 (getTableNames() != null) sb.append("TableNames: ").append(getTableNames()).append(","); if (getLastEvaluatedTableName() != null) sb.append("LastEvaluatedTableName: ").append(getLastEvaluatedTableName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTablesResult == false) return false; ListTablesResult other = (ListTablesResult) obj; if (other.getTableNames() == null ^ this.getTableNames() == null) return false; if (other.getTableNames() != null && other.getTableNames().equals(this.getTableNames()) == false) return false; if (other.getLastEvaluatedTableName() == null ^ this.getLastEvaluatedTableName() == null) return false; if (other.getLastEvaluatedTableName() != null && other.getLastEvaluatedTableName().equals(this.getLastEvaluatedTableName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTableNames() == null) ? 0 : getTableNames().hashCode()); hashCode = prime * hashCode + ((getLastEvaluatedTableName() == null) ? 0 : getLastEvaluatedTableName().hashCode()); return hashCode; } @Override public ListTablesResult clone() { try { return (ListTablesResult) 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