/* * Copyright 2010-2019 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 com.amazonaws.AmazonWebServiceRequest; /** *
* Updates settings for a global table. *
*/ public class UpdateGlobalTableSettingsRequest extends AmazonWebServiceRequest implements Serializable { /** ** The name of the global table *
*
* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*/
private String globalTableName;
/**
*
* The maximum number of writes consumed per second before DynamoDB returns
* a ThrottlingException.
*
* Constraints:
* Range: 1 -
*/
private Long globalTableProvisionedWriteCapacityUnits;
/**
*
* AutoScaling settings for managing provisioned write capacity for the * global table. *
*/ private AutoScalingSettingsUpdate globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; /** ** Represents the settings of a global secondary index for a global table * that will be modified. *
*/ private java.util.List* Represents the settings for a global table in a region that will be * modified. *
*/ private java.util.List* The name of the global table *
*
* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*
* @return
* The name of the global table *
*/ public String getGlobalTableName() { return globalTableName; } /** ** The name of the global table *
*
* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*
* @param globalTableName
* The name of the global table *
*/ public void setGlobalTableName(String globalTableName) { this.globalTableName = globalTableName; } /** ** The name of the global table *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 3 - 255
* Pattern: [a-zA-Z0-9_.-]+
*
* @param globalTableName
* The name of the global table *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableName(String globalTableName) { this.globalTableName = globalTableName; return this; } /** *
* The maximum number of writes consumed per second before DynamoDB returns
* a ThrottlingException.
*
* Constraints:
* Range: 1 -
*
* @return
* The maximum number of writes consumed per second before DynamoDB
* returns a ThrottlingException.
*
* The maximum number of writes consumed per second before DynamoDB returns
* a ThrottlingException.
*
* Constraints:
* Range: 1 -
*
* @param globalTableProvisionedWriteCapacityUnits
* The maximum number of writes consumed per second before
* DynamoDB returns a ThrottlingException.
*
* The maximum number of writes consumed per second before DynamoDB returns
* a ThrottlingException.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 1 -
*
* @param globalTableProvisionedWriteCapacityUnits
* The maximum number of writes consumed per second before
* DynamoDB returns a ThrottlingException.
*
* AutoScaling settings for managing provisioned write capacity for the * global table. *
* * @return* AutoScaling settings for managing provisioned write capacity for * the global table. *
*/ public AutoScalingSettingsUpdate getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() { return globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; } /** ** AutoScaling settings for managing provisioned write capacity for the * global table. *
* * @param globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate* AutoScaling settings for managing provisioned write capacity * for the global table. *
*/ public void setGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate( AutoScalingSettingsUpdate globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate) { this.globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; } /** ** AutoScaling settings for managing provisioned write capacity for the * global table. *
** Returns a reference to this object so that method calls can be chained * together. * * @param globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate
* AutoScaling settings for managing provisioned write capacity * for the global table. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate( AutoScalingSettingsUpdate globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate) { this.globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; return this; } /** ** Represents the settings of a global secondary index for a global table * that will be modified. *
* * @return* Represents the settings of a global secondary index for a global * table that will be modified. *
*/ public java.util.List* Represents the settings of a global secondary index for a global table * that will be modified. *
* * @param globalTableGlobalSecondaryIndexSettingsUpdate* Represents the settings of a global secondary index for a * global table that will be modified. *
*/ public void setGlobalTableGlobalSecondaryIndexSettingsUpdate( java.util.Collection* Represents the settings of a global secondary index for a global table * that will be modified. *
** Returns a reference to this object so that method calls can be chained * together. * * @param globalTableGlobalSecondaryIndexSettingsUpdate
* Represents the settings of a global secondary index for a * global table that will be modified. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableGlobalSecondaryIndexSettingsUpdate( GlobalTableGlobalSecondaryIndexSettingsUpdate... globalTableGlobalSecondaryIndexSettingsUpdate) { if (getGlobalTableGlobalSecondaryIndexSettingsUpdate() == null) { this.globalTableGlobalSecondaryIndexSettingsUpdate = new java.util.ArrayList* Represents the settings of a global secondary index for a global table * that will be modified. *
** Returns a reference to this object so that method calls can be chained * together. * * @param globalTableGlobalSecondaryIndexSettingsUpdate
* Represents the settings of a global secondary index for a * global table that will be modified. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableGlobalSecondaryIndexSettingsUpdate( java.util.Collection* Represents the settings for a global table in a region that will be * modified. *
* * @return* Represents the settings for a global table in a region that will * be modified. *
*/ public java.util.List* Represents the settings for a global table in a region that will be * modified. *
* * @param replicaSettingsUpdate* Represents the settings for a global table in a region that * will be modified. *
*/ public void setReplicaSettingsUpdate( java.util.Collection* Represents the settings for a global table in a region that will be * modified. *
** Returns a reference to this object so that method calls can be chained * together. * * @param replicaSettingsUpdate
* Represents the settings for a global table in a region that * will be modified. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateGlobalTableSettingsRequest withReplicaSettingsUpdate( ReplicaSettingsUpdate... replicaSettingsUpdate) { if (getReplicaSettingsUpdate() == null) { this.replicaSettingsUpdate = new java.util.ArrayList* Represents the settings for a global table in a region that will be * modified. *
** Returns a reference to this object so that method calls can be chained * together. * * @param replicaSettingsUpdate
* Represents the settings for a global table in a region that * will be modified. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateGlobalTableSettingsRequest withReplicaSettingsUpdate( java.util.Collection