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

com.amazonaws.services.dynamodb.model.ListTablesResult Maven / Gradle / Ivy

Go to download

The Amazon Web Services SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

The newest version!
/*
 * Copyright 2010-2014 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.dynamodb.model;
import java.io.Serializable;

/**
 * List Tables Result
 * @deprecated Use {@link com.amazonaws.services.dynamodbv2.model.ListTablesResult} instead.
 */
@Deprecated
public class ListTablesResult  implements Serializable  {

    private java.util.List tableNames;

    /**
     * The name of the last table in the current list. Use this value as the
     * ExclusiveStartTableName in a new request to continue the
     * list until all the table names are returned. If this value is null,
     * all table names have been returned.
     * 

* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*/ private String lastEvaluatedTableName; /** * Returns the value of the TableNames property for this object. * * @return The value of the TableNames property for this object. */ public java.util.List getTableNames() { return tableNames; } /** * Sets the value of the TableNames property for this object. * * @param tableNames The new value for the TableNames property for this object. */ public void setTableNames(java.util.Collection tableNames) { if (tableNames == null) { this.tableNames = null; return; } java.util.List tableNamesCopy = new java.util.ArrayList(tableNames.size()); tableNamesCopy.addAll(tableNames); this.tableNames = tableNamesCopy; } /** * Sets the value of the TableNames property for this object. *

* Returns a reference to this object so that method calls can be chained together. * * @param tableNames The new value for the TableNames property for this object. * * @return A reference to this updated object so that method calls can be chained * together. */ public ListTablesResult withTableNames(String... tableNames) { if (getTableNames() == null) setTableNames(new java.util.ArrayList(tableNames.length)); for (String value : tableNames) { getTableNames().add(value); } return this; } /** * Sets the value of the TableNames property for this object. *

* Returns a reference to this object so that method calls can be chained together. * * @param tableNames The new value for the TableNames property for this object. * * @return A reference to this updated object so that method calls can be chained * together. */ public ListTablesResult withTableNames(java.util.Collection tableNames) { if (tableNames == null) { this.tableNames = null; } else { java.util.List tableNamesCopy = new java.util.ArrayList(tableNames.size()); tableNamesCopy.addAll(tableNames); this.tableNames = tableNamesCopy; } return this; } /** * The name of the last table in the current list. Use this value as the * ExclusiveStartTableName in a new request to continue the * list until all the table names are returned. If this value is null, * all table names have been returned. *

* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
* * @return The name of the last table in the current list. Use this value as the * ExclusiveStartTableName in a new request to continue the * list until all the table names are returned. If this value is null, * all table names have been returned. */ public String getLastEvaluatedTableName() { return lastEvaluatedTableName; } /** * The name of the last table in the current list. Use this value as the * ExclusiveStartTableName in a new request to continue the * list until all the table names are returned. If this value is null, * all table names have been returned. *

* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
* * @param lastEvaluatedTableName The name of the last table in the current list. Use this value as the * ExclusiveStartTableName in a new request to continue the * list until all the table names are returned. If this value is null, * all table names have been returned. */ public void setLastEvaluatedTableName(String lastEvaluatedTableName) { this.lastEvaluatedTableName = lastEvaluatedTableName; } /** * The name of the last table in the current list. Use this value as the * ExclusiveStartTableName in a new request to continue the * list until all the table names are returned. If this value is null, * all table names have been returned. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
* * @param lastEvaluatedTableName The name of the last table in the current list. Use this value as the * ExclusiveStartTableName in a new request to continue the * list until all the table names are returned. If this value is null, * all table names have been returned. * * @return A reference to this updated object so that method calls can be chained * together. */ public ListTablesResult withLastEvaluatedTableName(String lastEvaluatedTableName) { this.lastEvaluatedTableName = lastEvaluatedTableName; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getTableNames() + ", "); if (getLastEvaluatedTableName() != null) sb.append("LastEvaluatedTableName: " + getLastEvaluatedTableName() + ", "); sb.append("}"); return sb.toString(); } @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 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; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy