/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { /** *

Represents a replica to be modified.

See Also:

AWS * API Reference

*/ class UpdateReplicationGroupMemberAction { public: AWS_DYNAMODB_API UpdateReplicationGroupMemberAction(); AWS_DYNAMODB_API UpdateReplicationGroupMemberAction(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API UpdateReplicationGroupMemberAction& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Region where the replica exists.

*/ inline const Aws::String& GetRegionName() const{ return m_regionName; } /** *

The Region where the replica exists.

*/ inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; } /** *

The Region where the replica exists.

*/ inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; } /** *

The Region where the replica exists.

*/ inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); } /** *

The Region where the replica exists.

*/ inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); } /** *

The Region where the replica exists.

*/ inline UpdateReplicationGroupMemberAction& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;} /** *

The Region where the replica exists.

*/ inline UpdateReplicationGroupMemberAction& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;} /** *

The Region where the replica exists.

*/ inline UpdateReplicationGroupMemberAction& WithRegionName(const char* value) { SetRegionName(value); return *this;} /** *

The KMS key of the replica that should be used for KMS encryption. To specify * a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. * Note that you should only provide this parameter if the key is different from * the default DynamoDB KMS key alias/aws/dynamodb.

*/ inline const Aws::String& GetKMSMasterKeyId() const{ return m_kMSMasterKeyId; } /** *

The KMS key of the replica that should be used for KMS encryption. To specify * a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. * Note that you should only provide this parameter if the key is different from * the default DynamoDB KMS key alias/aws/dynamodb.

*/ inline bool KMSMasterKeyIdHasBeenSet() const { return m_kMSMasterKeyIdHasBeenSet; } /** *

The KMS key of the replica that should be used for KMS encryption. To specify * a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. * Note that you should only provide this parameter if the key is different from * the default DynamoDB KMS key alias/aws/dynamodb.

*/ inline void SetKMSMasterKeyId(const Aws::String& value) { m_kMSMasterKeyIdHasBeenSet = true; m_kMSMasterKeyId = value; } /** *

The KMS key of the replica that should be used for KMS encryption. To specify * a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. * Note that you should only provide this parameter if the key is different from * the default DynamoDB KMS key alias/aws/dynamodb.

*/ inline void SetKMSMasterKeyId(Aws::String&& value) { m_kMSMasterKeyIdHasBeenSet = true; m_kMSMasterKeyId = std::move(value); } /** *

The KMS key of the replica that should be used for KMS encryption. To specify * a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. * Note that you should only provide this parameter if the key is different from * the default DynamoDB KMS key alias/aws/dynamodb.

*/ inline void SetKMSMasterKeyId(const char* value) { m_kMSMasterKeyIdHasBeenSet = true; m_kMSMasterKeyId.assign(value); } /** *

The KMS key of the replica that should be used for KMS encryption. To specify * a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. * Note that you should only provide this parameter if the key is different from * the default DynamoDB KMS key alias/aws/dynamodb.

*/ inline UpdateReplicationGroupMemberAction& WithKMSMasterKeyId(const Aws::String& value) { SetKMSMasterKeyId(value); return *this;} /** *

The KMS key of the replica that should be used for KMS encryption. To specify * a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. * Note that you should only provide this parameter if the key is different from * the default DynamoDB KMS key alias/aws/dynamodb.

*/ inline UpdateReplicationGroupMemberAction& WithKMSMasterKeyId(Aws::String&& value) { SetKMSMasterKeyId(std::move(value)); return *this;} /** *

The KMS key of the replica that should be used for KMS encryption. To specify * a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. * Note that you should only provide this parameter if the key is different from * the default DynamoDB KMS key alias/aws/dynamodb.

*/ inline UpdateReplicationGroupMemberAction& WithKMSMasterKeyId(const char* value) { SetKMSMasterKeyId(value); return *this;} /** *

Replica-specific provisioned throughput. If not specified, uses the source * table's provisioned throughput settings.

*/ inline const ProvisionedThroughputOverride& GetProvisionedThroughputOverride() const{ return m_provisionedThroughputOverride; } /** *

Replica-specific provisioned throughput. If not specified, uses the source * table's provisioned throughput settings.

*/ inline bool ProvisionedThroughputOverrideHasBeenSet() const { return m_provisionedThroughputOverrideHasBeenSet; } /** *

Replica-specific provisioned throughput. If not specified, uses the source * table's provisioned throughput settings.

*/ inline void SetProvisionedThroughputOverride(const ProvisionedThroughputOverride& value) { m_provisionedThroughputOverrideHasBeenSet = true; m_provisionedThroughputOverride = value; } /** *

Replica-specific provisioned throughput. If not specified, uses the source * table's provisioned throughput settings.

*/ inline void SetProvisionedThroughputOverride(ProvisionedThroughputOverride&& value) { m_provisionedThroughputOverrideHasBeenSet = true; m_provisionedThroughputOverride = std::move(value); } /** *

Replica-specific provisioned throughput. If not specified, uses the source * table's provisioned throughput settings.

*/ inline UpdateReplicationGroupMemberAction& WithProvisionedThroughputOverride(const ProvisionedThroughputOverride& value) { SetProvisionedThroughputOverride(value); return *this;} /** *

Replica-specific provisioned throughput. If not specified, uses the source * table's provisioned throughput settings.

*/ inline UpdateReplicationGroupMemberAction& WithProvisionedThroughputOverride(ProvisionedThroughputOverride&& value) { SetProvisionedThroughputOverride(std::move(value)); return *this;} /** *

Replica-specific global secondary index settings.

*/ inline const Aws::Vector& GetGlobalSecondaryIndexes() const{ return m_globalSecondaryIndexes; } /** *

Replica-specific global secondary index settings.

*/ inline bool GlobalSecondaryIndexesHasBeenSet() const { return m_globalSecondaryIndexesHasBeenSet; } /** *

Replica-specific global secondary index settings.

*/ inline void SetGlobalSecondaryIndexes(const Aws::Vector& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = value; } /** *

Replica-specific global secondary index settings.

*/ inline void SetGlobalSecondaryIndexes(Aws::Vector&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes = std::move(value); } /** *

Replica-specific global secondary index settings.

*/ inline UpdateReplicationGroupMemberAction& WithGlobalSecondaryIndexes(const Aws::Vector& value) { SetGlobalSecondaryIndexes(value); return *this;} /** *

Replica-specific global secondary index settings.

*/ inline UpdateReplicationGroupMemberAction& WithGlobalSecondaryIndexes(Aws::Vector&& value) { SetGlobalSecondaryIndexes(std::move(value)); return *this;} /** *

Replica-specific global secondary index settings.

*/ inline UpdateReplicationGroupMemberAction& AddGlobalSecondaryIndexes(const ReplicaGlobalSecondaryIndex& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.push_back(value); return *this; } /** *

Replica-specific global secondary index settings.

*/ inline UpdateReplicationGroupMemberAction& AddGlobalSecondaryIndexes(ReplicaGlobalSecondaryIndex&& value) { m_globalSecondaryIndexesHasBeenSet = true; m_globalSecondaryIndexes.push_back(std::move(value)); return *this; } /** *

Replica-specific table class. If not specified, uses the source table's table * class.

*/ inline const TableClass& GetTableClassOverride() const{ return m_tableClassOverride; } /** *

Replica-specific table class. If not specified, uses the source table's table * class.

*/ inline bool TableClassOverrideHasBeenSet() const { return m_tableClassOverrideHasBeenSet; } /** *

Replica-specific table class. If not specified, uses the source table's table * class.

*/ inline void SetTableClassOverride(const TableClass& value) { m_tableClassOverrideHasBeenSet = true; m_tableClassOverride = value; } /** *

Replica-specific table class. If not specified, uses the source table's table * class.

*/ inline void SetTableClassOverride(TableClass&& value) { m_tableClassOverrideHasBeenSet = true; m_tableClassOverride = std::move(value); } /** *

Replica-specific table class. If not specified, uses the source table's table * class.

*/ inline UpdateReplicationGroupMemberAction& WithTableClassOverride(const TableClass& value) { SetTableClassOverride(value); return *this;} /** *

Replica-specific table class. If not specified, uses the source table's table * class.

*/ inline UpdateReplicationGroupMemberAction& WithTableClassOverride(TableClass&& value) { SetTableClassOverride(std::move(value)); return *this;} private: Aws::String m_regionName; bool m_regionNameHasBeenSet = false; Aws::String m_kMSMasterKeyId; bool m_kMSMasterKeyIdHasBeenSet = false; ProvisionedThroughputOverride m_provisionedThroughputOverride; bool m_provisionedThroughputOverrideHasBeenSet = false; Aws::Vector m_globalSecondaryIndexes; bool m_globalSecondaryIndexesHasBeenSet = false; TableClass m_tableClassOverride; bool m_tableClassOverrideHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws