/* * 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; /** *
* Represents the properties of a replica. *
*/ public class ReplicaSettingsDescription implements Serializable { /** ** 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.
*
* Constraints:
* Allowed Values: CREATING, UPDATING, DELETING, ACTIVE
*/
private String replicaStatus;
/**
*
* 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.
*
* Constraints:
* Range: 1 -
*/
private Long replicaProvisionedReadCapacityUnits;
/**
*
* Autoscaling 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.
*
* Constraints:
* Range: 1 -
*/
private Long replicaProvisionedWriteCapacityUnits;
/**
*
* AutoScaling 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. *
* * @return* The region name of the replica. *
*/ public String getRegionName() { return regionName; } /** ** 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param regionName
* The region name of the replica. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReplicaSettingsDescription withRegionName(String regionName) { this.regionName = 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.
*
* Constraints:
* Allowed Values: CREATING, UPDATING, DELETING, ACTIVE
*
* @return
* 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 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.
*
* Constraints:
* Allowed Values: CREATING, UPDATING, DELETING, ACTIVE
*
* @param replicaStatus
* 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 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: CREATING, UPDATING, DELETING, ACTIVE
*
* @param replicaStatus
* 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 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.
*
* Constraints:
* Allowed Values: CREATING, UPDATING, DELETING, ACTIVE
*
* @param replicaStatus
* 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 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: CREATING, UPDATING, DELETING, ACTIVE
*
* @param replicaStatus
* 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 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.
*
* Constraints:
* Range: 1 -
*
* @return
* 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.
*
* 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.
*
* Constraints:
* Range: 1 -
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 1 -
*
* @param 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.
*
* Autoscaling settings for a global table replica's read capacity units. *
* * @return* Autoscaling settings for a global table replica's read capacity * units. *
*/ public AutoScalingSettingsDescription getReplicaProvisionedReadCapacityAutoScalingSettings() { return replicaProvisionedReadCapacityAutoScalingSettings; } /** ** Autoscaling settings for a global table replica's read capacity units. *
* * @param replicaProvisionedReadCapacityAutoScalingSettings* Autoscaling settings for a global table replica's read * capacity units. *
*/ public void setReplicaProvisionedReadCapacityAutoScalingSettings( AutoScalingSettingsDescription replicaProvisionedReadCapacityAutoScalingSettings) { this.replicaProvisionedReadCapacityAutoScalingSettings = replicaProvisionedReadCapacityAutoScalingSettings; } /** ** Autoscaling settings for a global table replica's read capacity units. *
** Returns a reference to this object so that method calls can be chained * together. * * @param replicaProvisionedReadCapacityAutoScalingSettings
* Autoscaling settings for a global table replica's read * capacity units. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReplicaSettingsDescription withReplicaProvisionedReadCapacityAutoScalingSettings( AutoScalingSettingsDescription replicaProvisionedReadCapacityAutoScalingSettings) { this.replicaProvisionedReadCapacityAutoScalingSettings = 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.
*
* Constraints:
* Range: 1 -
*
* @return
* 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.
*
* 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.
*
* Constraints:
* Range: 1 -
*
* @param 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.
*
* 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.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 1 -
*
* @param 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.
*
* AutoScaling settings for a global table replica's write capacity units. *
* * @return* AutoScaling settings for a global table replica's write capacity * units. *
*/ public AutoScalingSettingsDescription getReplicaProvisionedWriteCapacityAutoScalingSettings() { return replicaProvisionedWriteCapacityAutoScalingSettings; } /** ** AutoScaling settings for a global table replica's write capacity units. *
* * @param replicaProvisionedWriteCapacityAutoScalingSettings* AutoScaling settings for a global table replica's write * capacity units. *
*/ public void setReplicaProvisionedWriteCapacityAutoScalingSettings( AutoScalingSettingsDescription replicaProvisionedWriteCapacityAutoScalingSettings) { this.replicaProvisionedWriteCapacityAutoScalingSettings = replicaProvisionedWriteCapacityAutoScalingSettings; } /** ** AutoScaling settings for a global table replica's write capacity units. *
** Returns a reference to this object so that method calls can be chained * together. * * @param replicaProvisionedWriteCapacityAutoScalingSettings
* AutoScaling settings for a global table replica's write * capacity units. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReplicaSettingsDescription withReplicaProvisionedWriteCapacityAutoScalingSettings( AutoScalingSettingsDescription replicaProvisionedWriteCapacityAutoScalingSettings) { this.replicaProvisionedWriteCapacityAutoScalingSettings = 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param replicaGlobalSecondaryIndexSettings
* Replica global secondary index settings for the global table. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReplicaSettingsDescription withReplicaGlobalSecondaryIndexSettings( ReplicaGlobalSecondaryIndexSettingsDescription... replicaGlobalSecondaryIndexSettings) { if (getReplicaGlobalSecondaryIndexSettings() == null) { this.replicaGlobalSecondaryIndexSettings = new java.util.ArrayList* Replica global secondary index settings for the global table. *
** Returns a reference to this object so that method calls can be chained * together. * * @param replicaGlobalSecondaryIndexSettings
* Replica global secondary index settings for the global table. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReplicaSettingsDescription withReplicaGlobalSecondaryIndexSettings( java.util.Collection