/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { /** *

Contains the details of the table when the backup was created.

See * Also:

AWS * API Reference

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

The name of the table for which the backup was created.

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

The name of the table for which the backup was created.

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

The name of the table for which the backup was created.

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

The name of the table for which the backup was created.

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

The name of the table for which the backup was created.

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

The name of the table for which the backup was created.

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

The name of the table for which the backup was created.

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

The name of the table for which the backup was created.

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

Unique identifier for the table for which the backup was created.

*/ inline const Aws::String& GetTableId() const{ return m_tableId; } /** *

Unique identifier for the table for which the backup was created.

*/ inline bool TableIdHasBeenSet() const { return m_tableIdHasBeenSet; } /** *

Unique identifier for the table for which the backup was created.

*/ inline void SetTableId(const Aws::String& value) { m_tableIdHasBeenSet = true; m_tableId = value; } /** *

Unique identifier for the table for which the backup was created.

*/ inline void SetTableId(Aws::String&& value) { m_tableIdHasBeenSet = true; m_tableId = std::move(value); } /** *

Unique identifier for the table for which the backup was created.

*/ inline void SetTableId(const char* value) { m_tableIdHasBeenSet = true; m_tableId.assign(value); } /** *

Unique identifier for the table for which the backup was created.

*/ inline SourceTableDetails& WithTableId(const Aws::String& value) { SetTableId(value); return *this;} /** *

Unique identifier for the table for which the backup was created.

*/ inline SourceTableDetails& WithTableId(Aws::String&& value) { SetTableId(std::move(value)); return *this;} /** *

Unique identifier for the table for which the backup was created.

*/ inline SourceTableDetails& WithTableId(const char* value) { SetTableId(value); return *this;} /** *

ARN of the table for which backup was created.

*/ inline const Aws::String& GetTableArn() const{ return m_tableArn; } /** *

ARN of the table for which backup was created.

*/ inline bool TableArnHasBeenSet() const { return m_tableArnHasBeenSet; } /** *

ARN of the table for which backup was created.

*/ inline void SetTableArn(const Aws::String& value) { m_tableArnHasBeenSet = true; m_tableArn = value; } /** *

ARN of the table for which backup was created.

*/ inline void SetTableArn(Aws::String&& value) { m_tableArnHasBeenSet = true; m_tableArn = std::move(value); } /** *

ARN of the table for which backup was created.

*/ inline void SetTableArn(const char* value) { m_tableArnHasBeenSet = true; m_tableArn.assign(value); } /** *

ARN of the table for which backup was created.

*/ inline SourceTableDetails& WithTableArn(const Aws::String& value) { SetTableArn(value); return *this;} /** *

ARN of the table for which backup was created.

*/ inline SourceTableDetails& WithTableArn(Aws::String&& value) { SetTableArn(std::move(value)); return *this;} /** *

ARN of the table for which backup was created.

*/ inline SourceTableDetails& WithTableArn(const char* value) { SetTableArn(value); return *this;} /** *

Size of the table in bytes. Note that this is an approximate value.

*/ inline long long GetTableSizeBytes() const{ return m_tableSizeBytes; } /** *

Size of the table in bytes. Note that this is an approximate value.

*/ inline bool TableSizeBytesHasBeenSet() const { return m_tableSizeBytesHasBeenSet; } /** *

Size of the table in bytes. Note that this is an approximate value.

*/ inline void SetTableSizeBytes(long long value) { m_tableSizeBytesHasBeenSet = true; m_tableSizeBytes = value; } /** *

Size of the table in bytes. Note that this is an approximate value.

*/ inline SourceTableDetails& WithTableSizeBytes(long long value) { SetTableSizeBytes(value); return *this;} /** *

Schema of the table.

*/ inline const Aws::Vector& GetKeySchema() const{ return m_keySchema; } /** *

Schema of the table.

*/ inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; } /** *

Schema of the table.

*/ inline void SetKeySchema(const Aws::Vector& value) { m_keySchemaHasBeenSet = true; m_keySchema = value; } /** *

Schema of the table.

*/ inline void SetKeySchema(Aws::Vector&& value) { m_keySchemaHasBeenSet = true; m_keySchema = std::move(value); } /** *

Schema of the table.

*/ inline SourceTableDetails& WithKeySchema(const Aws::Vector& value) { SetKeySchema(value); return *this;} /** *

Schema of the table.

*/ inline SourceTableDetails& WithKeySchema(Aws::Vector&& value) { SetKeySchema(std::move(value)); return *this;} /** *

Schema of the table.

*/ inline SourceTableDetails& AddKeySchema(const KeySchemaElement& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; } /** *

Schema of the table.

*/ inline SourceTableDetails& AddKeySchema(KeySchemaElement&& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(std::move(value)); return *this; } /** *

Time when the source table was created.

*/ inline const Aws::Utils::DateTime& GetTableCreationDateTime() const{ return m_tableCreationDateTime; } /** *

Time when the source table was created.

*/ inline bool TableCreationDateTimeHasBeenSet() const { return m_tableCreationDateTimeHasBeenSet; } /** *

Time when the source table was created.

*/ inline void SetTableCreationDateTime(const Aws::Utils::DateTime& value) { m_tableCreationDateTimeHasBeenSet = true; m_tableCreationDateTime = value; } /** *

Time when the source table was created.

*/ inline void SetTableCreationDateTime(Aws::Utils::DateTime&& value) { m_tableCreationDateTimeHasBeenSet = true; m_tableCreationDateTime = std::move(value); } /** *

Time when the source table was created.

*/ inline SourceTableDetails& WithTableCreationDateTime(const Aws::Utils::DateTime& value) { SetTableCreationDateTime(value); return *this;} /** *

Time when the source table was created.

*/ inline SourceTableDetails& WithTableCreationDateTime(Aws::Utils::DateTime&& value) { SetTableCreationDateTime(std::move(value)); return *this;} /** *

Read IOPs and Write IOPS on the table when the backup was created.

*/ inline const ProvisionedThroughput& GetProvisionedThroughput() const{ return m_provisionedThroughput; } /** *

Read IOPs and Write IOPS on the table when the backup was created.

*/ inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; } /** *

Read IOPs and Write IOPS on the table when the backup was created.

*/ inline void SetProvisionedThroughput(const ProvisionedThroughput& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; } /** *

Read IOPs and Write IOPS on the table when the backup was created.

*/ inline void SetProvisionedThroughput(ProvisionedThroughput&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::move(value); } /** *

Read IOPs and Write IOPS on the table when the backup was created.

*/ inline SourceTableDetails& WithProvisionedThroughput(const ProvisionedThroughput& value) { SetProvisionedThroughput(value); return *this;} /** *

Read IOPs and Write IOPS on the table when the backup was created.

*/ inline SourceTableDetails& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} /** *

Number of items in the table. Note that this is an approximate value.

*/ inline long long GetItemCount() const{ return m_itemCount; } /** *

Number of items in the table. Note that this is an approximate value.

*/ inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; } /** *

Number of items in the table. Note that this is an approximate value.

*/ inline void SetItemCount(long long value) { m_itemCountHasBeenSet = true; m_itemCount = value; } /** *

Number of items in the table. Note that this is an approximate value.

*/ inline SourceTableDetails& WithItemCount(long long value) { SetItemCount(value); return *this;} /** *

Controls how you are charged for read and write throughput and how you manage * capacity. This setting can be changed later.

  • * PROVISIONED - Sets the read/write capacity mode to * PROVISIONED. We recommend using PROVISIONED for * predictable workloads.

  • PAY_PER_REQUEST - Sets * the read/write capacity mode to PAY_PER_REQUEST. We recommend using * PAY_PER_REQUEST for unpredictable workloads.

*/ inline const BillingMode& GetBillingMode() const{ return m_billingMode; } /** *

Controls how you are charged for read and write throughput and how you manage * capacity. This setting can be changed later.

  • * PROVISIONED - Sets the read/write capacity mode to * PROVISIONED. We recommend using PROVISIONED for * predictable workloads.

  • PAY_PER_REQUEST - Sets * the read/write capacity mode to PAY_PER_REQUEST. We recommend using * PAY_PER_REQUEST for unpredictable workloads.

*/ inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; } /** *

Controls how you are charged for read and write throughput and how you manage * capacity. This setting can be changed later.

  • * PROVISIONED - Sets the read/write capacity mode to * PROVISIONED. We recommend using PROVISIONED for * predictable workloads.

  • PAY_PER_REQUEST - Sets * the read/write capacity mode to PAY_PER_REQUEST. We recommend using * PAY_PER_REQUEST for unpredictable workloads.

*/ inline void SetBillingMode(const BillingMode& value) { m_billingModeHasBeenSet = true; m_billingMode = value; } /** *

Controls how you are charged for read and write throughput and how you manage * capacity. This setting can be changed later.

  • * PROVISIONED - Sets the read/write capacity mode to * PROVISIONED. We recommend using PROVISIONED for * predictable workloads.

  • PAY_PER_REQUEST - Sets * the read/write capacity mode to PAY_PER_REQUEST. We recommend using * PAY_PER_REQUEST for unpredictable workloads.

*/ inline void SetBillingMode(BillingMode&& value) { m_billingModeHasBeenSet = true; m_billingMode = std::move(value); } /** *

Controls how you are charged for read and write throughput and how you manage * capacity. This setting can be changed later.

  • * PROVISIONED - Sets the read/write capacity mode to * PROVISIONED. We recommend using PROVISIONED for * predictable workloads.

  • PAY_PER_REQUEST - Sets * the read/write capacity mode to PAY_PER_REQUEST. We recommend using * PAY_PER_REQUEST for unpredictable workloads.

*/ inline SourceTableDetails& WithBillingMode(const BillingMode& value) { SetBillingMode(value); return *this;} /** *

Controls how you are charged for read and write throughput and how you manage * capacity. This setting can be changed later.

  • * PROVISIONED - Sets the read/write capacity mode to * PROVISIONED. We recommend using PROVISIONED for * predictable workloads.

  • PAY_PER_REQUEST - Sets * the read/write capacity mode to PAY_PER_REQUEST. We recommend using * PAY_PER_REQUEST for unpredictable workloads.

*/ inline SourceTableDetails& WithBillingMode(BillingMode&& value) { SetBillingMode(std::move(value)); return *this;} private: Aws::String m_tableName; bool m_tableNameHasBeenSet = false; Aws::String m_tableId; bool m_tableIdHasBeenSet = false; Aws::String m_tableArn; bool m_tableArnHasBeenSet = false; long long m_tableSizeBytes; bool m_tableSizeBytesHasBeenSet = false; Aws::Vector m_keySchema; bool m_keySchemaHasBeenSet = false; Aws::Utils::DateTime m_tableCreationDateTime; bool m_tableCreationDateTimeHasBeenSet = false; ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; long long m_itemCount; bool m_itemCountHasBeenSet = false; BillingMode m_billingMode; bool m_billingModeHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws