/** * 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 #include namespace Aws { namespace DynamoDB { namespace Model { /** */ class UpdateGlobalTableSettingsRequest : public DynamoDBRequest { public: AWS_DYNAMODB_API UpdateGlobalTableSettingsRequest(); // 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 "UpdateGlobalTableSettings"; } AWS_DYNAMODB_API Aws::String SerializePayload() const override; AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the global table

*/ inline const Aws::String& GetGlobalTableName() const{ return m_globalTableName; } /** *

The name of the global table

*/ inline bool GlobalTableNameHasBeenSet() const { return m_globalTableNameHasBeenSet; } /** *

The name of the global table

*/ inline void SetGlobalTableName(const Aws::String& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = value; } /** *

The name of the global table

*/ inline void SetGlobalTableName(Aws::String&& value) { m_globalTableNameHasBeenSet = true; m_globalTableName = std::move(value); } /** *

The name of the global table

*/ inline void SetGlobalTableName(const char* value) { m_globalTableNameHasBeenSet = true; m_globalTableName.assign(value); } /** *

The name of the global table

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableName(const Aws::String& value) { SetGlobalTableName(value); return *this;} /** *

The name of the global table

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableName(Aws::String&& value) { SetGlobalTableName(std::move(value)); return *this;} /** *

The name of the global table

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableName(const char* value) { SetGlobalTableName(value); 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.

*/ inline const BillingMode& GetGlobalTableBillingMode() const{ return m_globalTableBillingMode; } /** *

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.

*/ inline bool GlobalTableBillingModeHasBeenSet() const { return m_globalTableBillingModeHasBeenSet; } /** *

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.

*/ inline void SetGlobalTableBillingMode(const BillingMode& value) { m_globalTableBillingModeHasBeenSet = true; m_globalTableBillingMode = value; } /** *

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.

*/ inline void SetGlobalTableBillingMode(BillingMode&& value) { m_globalTableBillingModeHasBeenSet = true; m_globalTableBillingMode = std::move(value); } /** *

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.

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableBillingMode(const BillingMode& value) { SetGlobalTableBillingMode(value); 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.

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableBillingMode(BillingMode&& value) { SetGlobalTableBillingMode(std::move(value)); return *this;} /** *

The maximum number of writes consumed per second before DynamoDB returns a * ThrottlingException.

*/ inline long long GetGlobalTableProvisionedWriteCapacityUnits() const{ return m_globalTableProvisionedWriteCapacityUnits; } /** *

The maximum number of writes consumed per second before DynamoDB returns a * ThrottlingException.

*/ inline bool GlobalTableProvisionedWriteCapacityUnitsHasBeenSet() const { return m_globalTableProvisionedWriteCapacityUnitsHasBeenSet; } /** *

The maximum number of writes consumed per second before DynamoDB returns a * ThrottlingException.

*/ inline void SetGlobalTableProvisionedWriteCapacityUnits(long long value) { m_globalTableProvisionedWriteCapacityUnitsHasBeenSet = true; m_globalTableProvisionedWriteCapacityUnits = value; } /** *

The maximum number of writes consumed per second before DynamoDB returns a * ThrottlingException.

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableProvisionedWriteCapacityUnits(long long value) { SetGlobalTableProvisionedWriteCapacityUnits(value); return *this;} /** *

Auto scaling settings for managing provisioned write capacity for the global * table.

*/ inline const AutoScalingSettingsUpdate& GetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate() const{ return m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; } /** *

Auto scaling settings for managing provisioned write capacity for the global * table.

*/ inline bool GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet() const { return m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet; } /** *

Auto scaling settings for managing provisioned write capacity for the global * table.

*/ inline void SetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(const AutoScalingSettingsUpdate& value) { m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet = true; m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = value; } /** *

Auto scaling settings for managing provisioned write capacity for the global * table.

*/ inline void SetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(AutoScalingSettingsUpdate&& value) { m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet = true; m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate = std::move(value); } /** *

Auto scaling settings for managing provisioned write capacity for the global * table.

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(const AutoScalingSettingsUpdate& value) { SetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(value); return *this;} /** *

Auto scaling settings for managing provisioned write capacity for the global * table.

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(AutoScalingSettingsUpdate&& value) { SetGlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate(std::move(value)); return *this;} /** *

Represents the settings of a global secondary index for a global table that * will be modified.

*/ inline const Aws::Vector& GetGlobalTableGlobalSecondaryIndexSettingsUpdate() const{ return m_globalTableGlobalSecondaryIndexSettingsUpdate; } /** *

Represents the settings of a global secondary index for a global table that * will be modified.

*/ inline bool GlobalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet() const { return m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet; } /** *

Represents the settings of a global secondary index for a global table that * will be modified.

*/ inline void SetGlobalTableGlobalSecondaryIndexSettingsUpdate(const Aws::Vector& value) { m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_globalTableGlobalSecondaryIndexSettingsUpdate = value; } /** *

Represents the settings of a global secondary index for a global table that * will be modified.

*/ inline void SetGlobalTableGlobalSecondaryIndexSettingsUpdate(Aws::Vector&& value) { m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_globalTableGlobalSecondaryIndexSettingsUpdate = std::move(value); } /** *

Represents the settings of a global secondary index for a global table that * will be modified.

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableGlobalSecondaryIndexSettingsUpdate(const Aws::Vector& value) { SetGlobalTableGlobalSecondaryIndexSettingsUpdate(value); return *this;} /** *

Represents the settings of a global secondary index for a global table that * will be modified.

*/ inline UpdateGlobalTableSettingsRequest& WithGlobalTableGlobalSecondaryIndexSettingsUpdate(Aws::Vector&& value) { SetGlobalTableGlobalSecondaryIndexSettingsUpdate(std::move(value)); return *this;} /** *

Represents the settings of a global secondary index for a global table that * will be modified.

*/ inline UpdateGlobalTableSettingsRequest& AddGlobalTableGlobalSecondaryIndexSettingsUpdate(const GlobalTableGlobalSecondaryIndexSettingsUpdate& value) { m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_globalTableGlobalSecondaryIndexSettingsUpdate.push_back(value); return *this; } /** *

Represents the settings of a global secondary index for a global table that * will be modified.

*/ inline UpdateGlobalTableSettingsRequest& AddGlobalTableGlobalSecondaryIndexSettingsUpdate(GlobalTableGlobalSecondaryIndexSettingsUpdate&& value) { m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = true; m_globalTableGlobalSecondaryIndexSettingsUpdate.push_back(std::move(value)); return *this; } /** *

Represents the settings for a global table in a Region that will be * modified.

*/ inline const Aws::Vector& GetReplicaSettingsUpdate() const{ return m_replicaSettingsUpdate; } /** *

Represents the settings for a global table in a Region that will be * modified.

*/ inline bool ReplicaSettingsUpdateHasBeenSet() const { return m_replicaSettingsUpdateHasBeenSet; } /** *

Represents the settings for a global table in a Region that will be * modified.

*/ inline void SetReplicaSettingsUpdate(const Aws::Vector& value) { m_replicaSettingsUpdateHasBeenSet = true; m_replicaSettingsUpdate = value; } /** *

Represents the settings for a global table in a Region that will be * modified.

*/ inline void SetReplicaSettingsUpdate(Aws::Vector&& value) { m_replicaSettingsUpdateHasBeenSet = true; m_replicaSettingsUpdate = std::move(value); } /** *

Represents the settings for a global table in a Region that will be * modified.

*/ inline UpdateGlobalTableSettingsRequest& WithReplicaSettingsUpdate(const Aws::Vector& value) { SetReplicaSettingsUpdate(value); return *this;} /** *

Represents the settings for a global table in a Region that will be * modified.

*/ inline UpdateGlobalTableSettingsRequest& WithReplicaSettingsUpdate(Aws::Vector&& value) { SetReplicaSettingsUpdate(std::move(value)); return *this;} /** *

Represents the settings for a global table in a Region that will be * modified.

*/ inline UpdateGlobalTableSettingsRequest& AddReplicaSettingsUpdate(const ReplicaSettingsUpdate& value) { m_replicaSettingsUpdateHasBeenSet = true; m_replicaSettingsUpdate.push_back(value); return *this; } /** *

Represents the settings for a global table in a Region that will be * modified.

*/ inline UpdateGlobalTableSettingsRequest& AddReplicaSettingsUpdate(ReplicaSettingsUpdate&& value) { m_replicaSettingsUpdateHasBeenSet = true; m_replicaSettingsUpdate.push_back(std::move(value)); return *this; } private: Aws::String m_globalTableName; bool m_globalTableNameHasBeenSet = false; BillingMode m_globalTableBillingMode; bool m_globalTableBillingModeHasBeenSet = false; long long m_globalTableProvisionedWriteCapacityUnits; bool m_globalTableProvisionedWriteCapacityUnitsHasBeenSet = false; AutoScalingSettingsUpdate m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdate; bool m_globalTableProvisionedWriteCapacityAutoScalingSettingsUpdateHasBeenSet = false; Aws::Vector m_globalTableGlobalSecondaryIndexSettingsUpdate; bool m_globalTableGlobalSecondaryIndexSettingsUpdateHasBeenSet = false; Aws::Vector m_replicaSettingsUpdate; bool m_replicaSettingsUpdateHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws