/* * Copyright 2018-2023 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; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents the auto scaling configuration for a global table. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TableAutoScalingDescription implements Serializable, Cloneable, StructuredPojo { /** ** The name of the table. *
*/ private String tableName; /** ** The current state of the table: *
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* Represents replicas of the global table. *
*/ private java.util.List* The name of the table. *
* * @param tableName * The name of the table. */ public void setTableName(String tableName) { this.tableName = tableName; } /** ** The name of the table. *
* * @return The name of the table. */ public String getTableName() { return this.tableName; } /** ** The name of the table. *
* * @param tableName * The name of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableAutoScalingDescription withTableName(String tableName) { setTableName(tableName); return this; } /** ** The current state of the table: *
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* The current state of the table: *
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* The current state of the table: *
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* The current state of the table: *
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* CREATING
- The table is being created.
*
* UPDATING
- The table is being updated.
*
* DELETING
- The table is being deleted.
*
* ACTIVE
- The table is ready for use.
*
* Represents replicas of the global table. *
* * @return Represents replicas of the global table. */ public java.util.List* Represents replicas of the global table. *
* * @param replicas * Represents replicas of the global table. */ public void setReplicas(java.util.Collection* Represents replicas of the global table. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplicas(java.util.Collection)} or {@link #withReplicas(java.util.Collection)} if you want to override * the existing values. *
* * @param replicas * Represents replicas of the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableAutoScalingDescription withReplicas(ReplicaAutoScalingDescription... replicas) { if (this.replicas == null) { setReplicas(new java.util.ArrayList* Represents replicas of the global table. *
* * @param replicas * Represents replicas of the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableAutoScalingDescription withReplicas(java.util.Collection