/** * 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 #include namespace Aws { namespace DynamoDB { namespace Model { /** */ class UpdateTableReplicaAutoScalingRequest : public DynamoDBRequest { public: AWS_DYNAMODB_API UpdateTableReplicaAutoScalingRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateTableReplicaAutoScaling"; } AWS_DYNAMODB_API Aws::String SerializePayload() const override; AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Represents the auto scaling settings of the global secondary indexes of the * replica to be updated.

*/ inline const Aws::Vector& GetGlobalSecondaryIndexUpdates() const{ return m_globalSecondaryIndexUpdates; } /** *

Represents the auto scaling settings of the global secondary indexes of the * replica to be updated.

*/ inline bool GlobalSecondaryIndexUpdatesHasBeenSet() const { return m_globalSecondaryIndexUpdatesHasBeenSet; } /** *

Represents the auto scaling settings of the global secondary indexes of the * replica to be updated.

*/ inline void SetGlobalSecondaryIndexUpdates(const Aws::Vector& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates = value; } /** *

Represents the auto scaling settings of the global secondary indexes of the * replica to be updated.

*/ inline void SetGlobalSecondaryIndexUpdates(Aws::Vector&& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates = std::move(value); } /** *

Represents the auto scaling settings of the global secondary indexes of the * replica to be updated.

*/ inline UpdateTableReplicaAutoScalingRequest& WithGlobalSecondaryIndexUpdates(const Aws::Vector& value) { SetGlobalSecondaryIndexUpdates(value); return *this;} /** *

Represents the auto scaling settings of the global secondary indexes of the * replica to be updated.

*/ inline UpdateTableReplicaAutoScalingRequest& WithGlobalSecondaryIndexUpdates(Aws::Vector&& value) { SetGlobalSecondaryIndexUpdates(std::move(value)); return *this;} /** *

Represents the auto scaling settings of the global secondary indexes of the * replica to be updated.

*/ inline UpdateTableReplicaAutoScalingRequest& AddGlobalSecondaryIndexUpdates(const GlobalSecondaryIndexAutoScalingUpdate& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates.push_back(value); return *this; } /** *

Represents the auto scaling settings of the global secondary indexes of the * replica to be updated.

*/ inline UpdateTableReplicaAutoScalingRequest& AddGlobalSecondaryIndexUpdates(GlobalSecondaryIndexAutoScalingUpdate&& value) { m_globalSecondaryIndexUpdatesHasBeenSet = true; m_globalSecondaryIndexUpdates.push_back(std::move(value)); return *this; } /** *

The name of the global table to be updated.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The name of the global table to be updated.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

The name of the global table to be updated.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

The name of the global table to be updated.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

The name of the global table to be updated.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

The name of the global table to be updated.

*/ inline UpdateTableReplicaAutoScalingRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The name of the global table to be updated.

*/ inline UpdateTableReplicaAutoScalingRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The name of the global table to be updated.

*/ inline UpdateTableReplicaAutoScalingRequest& WithTableName(const char* value) { SetTableName(value); return *this;} inline const AutoScalingSettingsUpdate& GetProvisionedWriteCapacityAutoScalingUpdate() const{ return m_provisionedWriteCapacityAutoScalingUpdate; } inline bool ProvisionedWriteCapacityAutoScalingUpdateHasBeenSet() const { return m_provisionedWriteCapacityAutoScalingUpdateHasBeenSet; } inline void SetProvisionedWriteCapacityAutoScalingUpdate(const AutoScalingSettingsUpdate& value) { m_provisionedWriteCapacityAutoScalingUpdateHasBeenSet = true; m_provisionedWriteCapacityAutoScalingUpdate = value; } inline void SetProvisionedWriteCapacityAutoScalingUpdate(AutoScalingSettingsUpdate&& value) { m_provisionedWriteCapacityAutoScalingUpdateHasBeenSet = true; m_provisionedWriteCapacityAutoScalingUpdate = std::move(value); } inline UpdateTableReplicaAutoScalingRequest& WithProvisionedWriteCapacityAutoScalingUpdate(const AutoScalingSettingsUpdate& value) { SetProvisionedWriteCapacityAutoScalingUpdate(value); return *this;} inline UpdateTableReplicaAutoScalingRequest& WithProvisionedWriteCapacityAutoScalingUpdate(AutoScalingSettingsUpdate&& value) { SetProvisionedWriteCapacityAutoScalingUpdate(std::move(value)); return *this;} /** *

Represents the auto scaling settings of replicas of the table that will be * modified.

*/ inline const Aws::Vector& GetReplicaUpdates() const{ return m_replicaUpdates; } /** *

Represents the auto scaling settings of replicas of the table that will be * modified.

*/ inline bool ReplicaUpdatesHasBeenSet() const { return m_replicaUpdatesHasBeenSet; } /** *

Represents the auto scaling settings of replicas of the table that will be * modified.

*/ inline void SetReplicaUpdates(const Aws::Vector& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates = value; } /** *

Represents the auto scaling settings of replicas of the table that will be * modified.

*/ inline void SetReplicaUpdates(Aws::Vector&& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates = std::move(value); } /** *

Represents the auto scaling settings of replicas of the table that will be * modified.

*/ inline UpdateTableReplicaAutoScalingRequest& WithReplicaUpdates(const Aws::Vector& value) { SetReplicaUpdates(value); return *this;} /** *

Represents the auto scaling settings of replicas of the table that will be * modified.

*/ inline UpdateTableReplicaAutoScalingRequest& WithReplicaUpdates(Aws::Vector&& value) { SetReplicaUpdates(std::move(value)); return *this;} /** *

Represents the auto scaling settings of replicas of the table that will be * modified.

*/ inline UpdateTableReplicaAutoScalingRequest& AddReplicaUpdates(const ReplicaAutoScalingUpdate& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates.push_back(value); return *this; } /** *

Represents the auto scaling settings of replicas of the table that will be * modified.

*/ inline UpdateTableReplicaAutoScalingRequest& AddReplicaUpdates(ReplicaAutoScalingUpdate&& value) { m_replicaUpdatesHasBeenSet = true; m_replicaUpdates.push_back(std::move(value)); return *this; } private: Aws::Vector m_globalSecondaryIndexUpdates; bool m_globalSecondaryIndexUpdatesHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; AutoScalingSettingsUpdate m_provisionedWriteCapacityAutoScalingUpdate; bool m_provisionedWriteCapacityAutoScalingUpdateHasBeenSet = false; Aws::Vector m_replicaUpdates; bool m_replicaUpdatesHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws