/* * 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 properties of a replica. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReplicaSettingsDescription implements Serializable, Cloneable, StructuredPojo { /** ** The Region name of the replica. *
*/ private String regionName; /** ** The current state of the Region: *
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* The read/write capacity mode of the replica. *
*/ private BillingModeSummary replicaBillingModeSummary; /** *
* The maximum number of strongly consistent reads consumed per second before DynamoDB returns a
* ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*
* Auto scaling settings for a global table replica's read capacity units. *
*/ private AutoScalingSettingsDescription replicaProvisionedReadCapacityAutoScalingSettings; /** *
* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For
* more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*
* Auto scaling settings for a global table replica's write capacity units. *
*/ private AutoScalingSettingsDescription replicaProvisionedWriteCapacityAutoScalingSettings; /** ** Replica global secondary index settings for the global table. *
*/ private java.util.List* The Region name of the replica. *
* * @param regionName * The Region name of the replica. */ public void setRegionName(String regionName) { this.regionName = regionName; } /** ** The Region name of the replica. *
* * @return The Region name of the replica. */ public String getRegionName() { return this.regionName; } /** ** The Region name of the replica. *
* * @param regionName * The Region name of the replica. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicaSettingsDescription withRegionName(String regionName) { setRegionName(regionName); return this; } /** ** The current state of the Region: *
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* The current state of the Region: *
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* The current state of the Region: *
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* The current state of the Region: *
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* CREATING
- The Region is being created.
*
* UPDATING
- The Region is being updated.
*
* DELETING
- The Region is being deleted.
*
* ACTIVE
- The Region is ready for use.
*
* The read/write capacity mode of the replica. *
* * @param replicaBillingModeSummary * The read/write capacity mode of the replica. */ public void setReplicaBillingModeSummary(BillingModeSummary replicaBillingModeSummary) { this.replicaBillingModeSummary = replicaBillingModeSummary; } /** ** The read/write capacity mode of the replica. *
* * @return The read/write capacity mode of the replica. */ public BillingModeSummary getReplicaBillingModeSummary() { return this.replicaBillingModeSummary; } /** ** The read/write capacity mode of the replica. *
* * @param replicaBillingModeSummary * The read/write capacity mode of the replica. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicaSettingsDescription withReplicaBillingModeSummary(BillingModeSummary replicaBillingModeSummary) { setReplicaBillingModeSummary(replicaBillingModeSummary); return this; } /** *
* The maximum number of strongly consistent reads consumed per second before DynamoDB returns a
* ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*
ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*/
public void setReplicaProvisionedReadCapacityUnits(Long replicaProvisionedReadCapacityUnits) {
this.replicaProvisionedReadCapacityUnits = replicaProvisionedReadCapacityUnits;
}
/**
*
* The maximum number of strongly consistent reads consumed per second before DynamoDB returns a
* ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*
ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*/
public Long getReplicaProvisionedReadCapacityUnits() {
return this.replicaProvisionedReadCapacityUnits;
}
/**
*
* The maximum number of strongly consistent reads consumed per second before DynamoDB returns a
* ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*
ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicaSettingsDescription withReplicaProvisionedReadCapacityUnits(Long replicaProvisionedReadCapacityUnits) {
setReplicaProvisionedReadCapacityUnits(replicaProvisionedReadCapacityUnits);
return this;
}
/**
* * Auto scaling settings for a global table replica's read capacity units. *
* * @param replicaProvisionedReadCapacityAutoScalingSettings * Auto scaling settings for a global table replica's read capacity units. */ public void setReplicaProvisionedReadCapacityAutoScalingSettings(AutoScalingSettingsDescription replicaProvisionedReadCapacityAutoScalingSettings) { this.replicaProvisionedReadCapacityAutoScalingSettings = replicaProvisionedReadCapacityAutoScalingSettings; } /** ** Auto scaling settings for a global table replica's read capacity units. *
* * @return Auto scaling settings for a global table replica's read capacity units. */ public AutoScalingSettingsDescription getReplicaProvisionedReadCapacityAutoScalingSettings() { return this.replicaProvisionedReadCapacityAutoScalingSettings; } /** ** Auto scaling settings for a global table replica's read capacity units. *
* * @param replicaProvisionedReadCapacityAutoScalingSettings * Auto scaling settings for a global table replica's read capacity units. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicaSettingsDescription withReplicaProvisionedReadCapacityAutoScalingSettings( AutoScalingSettingsDescription replicaProvisionedReadCapacityAutoScalingSettings) { setReplicaProvisionedReadCapacityAutoScalingSettings(replicaProvisionedReadCapacityAutoScalingSettings); return this; } /** *
* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For
* more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*
ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*/
public void setReplicaProvisionedWriteCapacityUnits(Long replicaProvisionedWriteCapacityUnits) {
this.replicaProvisionedWriteCapacityUnits = replicaProvisionedWriteCapacityUnits;
}
/**
*
* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For
* more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*
ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*/
public Long getReplicaProvisionedWriteCapacityUnits() {
return this.replicaProvisionedWriteCapacityUnits;
}
/**
*
* The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException
. For
* more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
*
ThrottlingException
. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicaSettingsDescription withReplicaProvisionedWriteCapacityUnits(Long replicaProvisionedWriteCapacityUnits) {
setReplicaProvisionedWriteCapacityUnits(replicaProvisionedWriteCapacityUnits);
return this;
}
/**
* * Auto scaling settings for a global table replica's write capacity units. *
* * @param replicaProvisionedWriteCapacityAutoScalingSettings * Auto scaling settings for a global table replica's write capacity units. */ public void setReplicaProvisionedWriteCapacityAutoScalingSettings(AutoScalingSettingsDescription replicaProvisionedWriteCapacityAutoScalingSettings) { this.replicaProvisionedWriteCapacityAutoScalingSettings = replicaProvisionedWriteCapacityAutoScalingSettings; } /** ** Auto scaling settings for a global table replica's write capacity units. *
* * @return Auto scaling settings for a global table replica's write capacity units. */ public AutoScalingSettingsDescription getReplicaProvisionedWriteCapacityAutoScalingSettings() { return this.replicaProvisionedWriteCapacityAutoScalingSettings; } /** ** Auto scaling settings for a global table replica's write capacity units. *
* * @param replicaProvisionedWriteCapacityAutoScalingSettings * Auto scaling settings for a global table replica's write capacity units. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicaSettingsDescription withReplicaProvisionedWriteCapacityAutoScalingSettings( AutoScalingSettingsDescription replicaProvisionedWriteCapacityAutoScalingSettings) { setReplicaProvisionedWriteCapacityAutoScalingSettings(replicaProvisionedWriteCapacityAutoScalingSettings); return this; } /** ** Replica global secondary index settings for the global table. *
* * @return Replica global secondary index settings for the global table. */ public java.util.List* Replica global secondary index settings for the global table. *
* * @param replicaGlobalSecondaryIndexSettings * Replica global secondary index settings for the global table. */ public void setReplicaGlobalSecondaryIndexSettings(java.util.Collection* Replica global secondary index settings for the global table. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReplicaGlobalSecondaryIndexSettings(java.util.Collection)} or * {@link #withReplicaGlobalSecondaryIndexSettings(java.util.Collection)} if you want to override the existing * values. *
* * @param replicaGlobalSecondaryIndexSettings * Replica global secondary index settings for the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicaSettingsDescription withReplicaGlobalSecondaryIndexSettings( ReplicaGlobalSecondaryIndexSettingsDescription... replicaGlobalSecondaryIndexSettings) { if (this.replicaGlobalSecondaryIndexSettings == null) { setReplicaGlobalSecondaryIndexSettings(new java.util.ArrayList* Replica global secondary index settings for the global table. *
* * @param replicaGlobalSecondaryIndexSettings * Replica global secondary index settings for the global table. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicaSettingsDescription withReplicaGlobalSecondaryIndexSettings( java.util.Collection