/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 the auto scaling configuration for a global table.

See * Also:

AWS * API Reference

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

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

The name of the table.

*/ inline TableAutoScalingDescription& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

The current state of the table:

  • CREATING - The * table is being created.

  • UPDATING - The table is * being updated.

  • DELETING - The table is being * deleted.

  • ACTIVE - The table is ready for * use.

*/ inline const TableStatus& GetTableStatus() const{ return m_tableStatus; } /** *

The current state of the table:

  • CREATING - The * table is being created.

  • UPDATING - The table is * being updated.

  • DELETING - The table is being * deleted.

  • ACTIVE - The table is ready for * use.

*/ inline bool TableStatusHasBeenSet() const { return m_tableStatusHasBeenSet; } /** *

The current state of the table:

  • CREATING - The * table is being created.

  • UPDATING - The table is * being updated.

  • DELETING - The table is being * deleted.

  • ACTIVE - The table is ready for * use.

*/ inline void SetTableStatus(const TableStatus& value) { m_tableStatusHasBeenSet = true; m_tableStatus = value; } /** *

The current state of the table:

  • CREATING - The * table is being created.

  • UPDATING - The table is * being updated.

  • DELETING - The table is being * deleted.

  • ACTIVE - The table is ready for * use.

*/ inline void SetTableStatus(TableStatus&& value) { m_tableStatusHasBeenSet = true; m_tableStatus = std::move(value); } /** *

The current state of the table:

  • CREATING - The * table is being created.

  • UPDATING - The table is * being updated.

  • DELETING - The table is being * deleted.

  • ACTIVE - The table is ready for * use.

*/ inline TableAutoScalingDescription& WithTableStatus(const TableStatus& value) { SetTableStatus(value); return *this;} /** *

The current state of the table:

  • CREATING - The * table is being created.

  • UPDATING - The table is * being updated.

  • DELETING - The table is being * deleted.

  • ACTIVE - The table is ready for * use.

*/ inline TableAutoScalingDescription& WithTableStatus(TableStatus&& value) { SetTableStatus(std::move(value)); return *this;} /** *

Represents replicas of the global table.

*/ inline const Aws::Vector& GetReplicas() const{ return m_replicas; } /** *

Represents replicas of the global table.

*/ inline bool ReplicasHasBeenSet() const { return m_replicasHasBeenSet; } /** *

Represents replicas of the global table.

*/ inline void SetReplicas(const Aws::Vector& value) { m_replicasHasBeenSet = true; m_replicas = value; } /** *

Represents replicas of the global table.

*/ inline void SetReplicas(Aws::Vector&& value) { m_replicasHasBeenSet = true; m_replicas = std::move(value); } /** *

Represents replicas of the global table.

*/ inline TableAutoScalingDescription& WithReplicas(const Aws::Vector& value) { SetReplicas(value); return *this;} /** *

Represents replicas of the global table.

*/ inline TableAutoScalingDescription& WithReplicas(Aws::Vector&& value) { SetReplicas(std::move(value)); return *this;} /** *

Represents replicas of the global table.

*/ inline TableAutoScalingDescription& AddReplicas(const ReplicaAutoScalingDescription& value) { m_replicasHasBeenSet = true; m_replicas.push_back(value); return *this; } /** *

Represents replicas of the global table.

*/ inline TableAutoScalingDescription& AddReplicas(ReplicaAutoScalingDescription&& value) { m_replicasHasBeenSet = true; m_replicas.push_back(std::move(value)); return *this; } private: Aws::String m_tableName; bool m_tableNameHasBeenSet = false; TableStatus m_tableStatus; bool m_tableStatusHasBeenSet = false; Aws::Vector m_replicas; bool m_replicasHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws