/* * 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.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateTableReplicaAutoScalingRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Represents the auto scaling settings of the global secondary indexes of the replica to be updated. *
*/ private java.util.List* The name of the global table to be updated. *
*/ private String tableName; private AutoScalingSettingsUpdate provisionedWriteCapacityAutoScalingUpdate; /** ** Represents the auto scaling settings of replicas of the table that will be modified. *
*/ private java.util.List* Represents the auto scaling settings of the global secondary indexes of the replica to be updated. *
* * @return Represents the auto scaling settings of the global secondary indexes of the replica to be updated. */ public java.util.List* Represents the auto scaling settings of the global secondary indexes of the replica to be updated. *
* * @param globalSecondaryIndexUpdates * Represents the auto scaling settings of the global secondary indexes of the replica to be updated. */ public void setGlobalSecondaryIndexUpdates(java.util.Collection* Represents the auto scaling settings of the global secondary indexes of the replica to be updated. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGlobalSecondaryIndexUpdates(java.util.Collection)} or * {@link #withGlobalSecondaryIndexUpdates(java.util.Collection)} if you want to override the existing values. *
* * @param globalSecondaryIndexUpdates * Represents the auto scaling settings of the global secondary indexes of the replica to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTableReplicaAutoScalingRequest withGlobalSecondaryIndexUpdates(GlobalSecondaryIndexAutoScalingUpdate... globalSecondaryIndexUpdates) { if (this.globalSecondaryIndexUpdates == null) { setGlobalSecondaryIndexUpdates(new java.util.ArrayList* Represents the auto scaling settings of the global secondary indexes of the replica to be updated. *
* * @param globalSecondaryIndexUpdates * Represents the auto scaling settings of the global secondary indexes of the replica to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTableReplicaAutoScalingRequest withGlobalSecondaryIndexUpdates( java.util.Collection* The name of the global table to be updated. *
* * @param tableName * The name of the global table to be updated. */ public void setTableName(String tableName) { this.tableName = tableName; } /** ** The name of the global table to be updated. *
* * @return The name of the global table to be updated. */ public String getTableName() { return this.tableName; } /** ** The name of the global table to be updated. *
* * @param tableName * The name of the global table to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTableReplicaAutoScalingRequest withTableName(String tableName) { setTableName(tableName); return this; } /** * @param provisionedWriteCapacityAutoScalingUpdate */ public void setProvisionedWriteCapacityAutoScalingUpdate(AutoScalingSettingsUpdate provisionedWriteCapacityAutoScalingUpdate) { this.provisionedWriteCapacityAutoScalingUpdate = provisionedWriteCapacityAutoScalingUpdate; } /** * @return */ public AutoScalingSettingsUpdate getProvisionedWriteCapacityAutoScalingUpdate() { return this.provisionedWriteCapacityAutoScalingUpdate; } /** * @param provisionedWriteCapacityAutoScalingUpdate * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTableReplicaAutoScalingRequest withProvisionedWriteCapacityAutoScalingUpdate( AutoScalingSettingsUpdate provisionedWriteCapacityAutoScalingUpdate) { setProvisionedWriteCapacityAutoScalingUpdate(provisionedWriteCapacityAutoScalingUpdate); return this; } /** ** Represents the auto scaling settings of replicas of the table that will be modified. *
* * @return Represents the auto scaling settings of replicas of the table that will be modified. */ public java.util.List* Represents the auto scaling settings of replicas of the table that will be modified. *
* * @param replicaUpdates * Represents the auto scaling settings of replicas of the table that will be modified. */ public void setReplicaUpdates(java.util.Collection* Represents the auto scaling settings of replicas of the table that will be modified. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplicaUpdates(java.util.Collection)} or {@link #withReplicaUpdates(java.util.Collection)} if you want * to override the existing values. *
* * @param replicaUpdates * Represents the auto scaling settings of replicas of the table that will be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTableReplicaAutoScalingRequest withReplicaUpdates(ReplicaAutoScalingUpdate... replicaUpdates) { if (this.replicaUpdates == null) { setReplicaUpdates(new java.util.ArrayList* Represents the auto scaling settings of replicas of the table that will be modified. *
* * @param replicaUpdates * Represents the auto scaling settings of replicas of the table that will be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTableReplicaAutoScalingRequest withReplicaUpdates(java.util.Collection