/* * 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 UpdateGlobalTableSettingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the global table *
*/ private String globalTableName; /** *
* The billing mode of the global table. If GlobalTableBillingMode
is not specified, the global table
* defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable workloads.
* PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
*
* Auto scaling 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 *
* * @param globalTableName * The name of the global table */ public void setGlobalTableName(String globalTableName) { this.globalTableName = globalTableName; } /** ** The name of the global table *
* * @return The name of the global table */ public String getGlobalTableName() { return this.globalTableName; } /** ** The name of the global table *
* * @param globalTableName * The name of the global table * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableName(String globalTableName) { setGlobalTableName(globalTableName); return this; } /** *
* The billing mode of the global table. If GlobalTableBillingMode
is not specified, the global table
* defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable workloads.
* PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
GlobalTableBillingMode
is not specified, the global
* table defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable
* workloads. PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
* The billing mode of the global table. If GlobalTableBillingMode
is not specified, the global table
* defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable workloads.
* PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
GlobalTableBillingMode
is not specified, the global
* table defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable
* workloads. PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
* The billing mode of the global table. If GlobalTableBillingMode
is not specified, the global table
* defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable workloads.
* PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
GlobalTableBillingMode
is not specified, the global
* table defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable
* workloads. PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
* The billing mode of the global table. If GlobalTableBillingMode
is not specified, the global table
* defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable workloads.
* PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
GlobalTableBillingMode
is not specified, the global
* table defaults to PROVISIONED
capacity billing mode.
*
* PROVISIONED
- We recommend using PROVISIONED
for predictable workloads.
* PROVISIONED
sets the billing mode to Provisioned Mode.
*
* PAY_PER_REQUEST
- We recommend using PAY_PER_REQUEST
for unpredictable
* workloads. PAY_PER_REQUEST
sets the billing mode to On-Demand Mode.
*
* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
*
ThrottlingException.
*/
public void setGlobalTableProvisionedWriteCapacityUnits(Long globalTableProvisionedWriteCapacityUnits) {
this.globalTableProvisionedWriteCapacityUnits = globalTableProvisionedWriteCapacityUnits;
}
/**
*
* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
*
ThrottlingException.
*/
public Long getGlobalTableProvisionedWriteCapacityUnits() {
return this.globalTableProvisionedWriteCapacityUnits;
}
/**
*
* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.
*
ThrottlingException.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateGlobalTableSettingsRequest withGlobalTableProvisionedWriteCapacityUnits(Long globalTableProvisionedWriteCapacityUnits) {
setGlobalTableProvisionedWriteCapacityUnits(globalTableProvisionedWriteCapacityUnits);
return this;
}
/**
* * Auto scaling settings for managing provisioned write capacity for the global table. *
* * @param globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate * Auto scaling settings for managing provisioned write capacity for the global table. */ public void setGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate( AutoScalingSettingsUpdate globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate) { this.globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; } /** ** Auto scaling settings for managing provisioned write capacity for the global table. *
* * @return Auto scaling settings for managing provisioned write capacity for the global table. */ public AutoScalingSettingsUpdate getGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() { return this.globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; } /** ** Auto scaling settings for managing provisioned write capacity for the global table. *
* * @param globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate * Auto scaling settings for managing provisioned write capacity for the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate( AutoScalingSettingsUpdate globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate) { setGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGlobalTableGlobalSecondaryIndexSettingsUpdate(java.util.Collection)} or * {@link #withGlobalTableGlobalSecondaryIndexSettingsUpdate(java.util.Collection)} if you want to override the * existing values. *
* * @param globalTableGlobalSecondaryIndexSettingsUpdate * Represents the settings of a global secondary index for a global table that will be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withGlobalTableGlobalSecondaryIndexSettingsUpdate( GlobalTableGlobalSecondaryIndexSettingsUpdate... globalTableGlobalSecondaryIndexSettingsUpdate) { if (this.globalTableGlobalSecondaryIndexSettingsUpdate == null) { setGlobalTableGlobalSecondaryIndexSettingsUpdate(new java.util.ArrayList* 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. * @return Returns a reference to this 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplicaSettingsUpdate(java.util.Collection)} or * {@link #withReplicaSettingsUpdate(java.util.Collection)} if you want to override the existing values. *
* * @param replicaSettingsUpdate * Represents the settings for a global table in a Region that will be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withReplicaSettingsUpdate(ReplicaSettingsUpdate... replicaSettingsUpdate) { if (this.replicaSettingsUpdate == null) { setReplicaSettingsUpdate(new java.util.ArrayList* 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGlobalTableSettingsRequest withReplicaSettingsUpdate(java.util.Collection