/** * 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 the properties of a global secondary index for the table when the * backup was created.

See Also:

AWS * API Reference

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

The name of the global secondary index.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The name of the global secondary index.

*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *

The name of the global secondary index.

*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *

The name of the global secondary index.

*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *

The name of the global secondary index.

*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *

The name of the global secondary index.

*/ inline GlobalSecondaryIndexInfo& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the global secondary index.

*/ inline GlobalSecondaryIndexInfo& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The name of the global secondary index.

*/ inline GlobalSecondaryIndexInfo& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

The complete key schema for a global secondary index, which consists of one * or more pairs of attribute names and key types:

  • * HASH - partition key

  • RANGE - sort * key

The partition key of an item is also known as its * hash attribute. The term "hash attribute" derives from DynamoDB's usage * of an internal hash function to evenly distribute data items across partitions, * based on their partition key values.

The sort key of an item is also * known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, * in sorted order by the sort key value.

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

The complete key schema for a global secondary index, which consists of one * or more pairs of attribute names and key types:

  • * HASH - partition key

  • RANGE - sort * key

The partition key of an item is also known as its * hash attribute. The term "hash attribute" derives from DynamoDB's usage * of an internal hash function to evenly distribute data items across partitions, * based on their partition key values.

The sort key of an item is also * known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, * in sorted order by the sort key value.

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

The complete key schema for a global secondary index, which consists of one * or more pairs of attribute names and key types:

  • * HASH - partition key

  • RANGE - sort * key

The partition key of an item is also known as its * hash attribute. The term "hash attribute" derives from DynamoDB's usage * of an internal hash function to evenly distribute data items across partitions, * based on their partition key values.

The sort key of an item is also * known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, * in sorted order by the sort key value.

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

The complete key schema for a global secondary index, which consists of one * or more pairs of attribute names and key types:

  • * HASH - partition key

  • RANGE - sort * key

The partition key of an item is also known as its * hash attribute. The term "hash attribute" derives from DynamoDB's usage * of an internal hash function to evenly distribute data items across partitions, * based on their partition key values.

The sort key of an item is also * known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, * in sorted order by the sort key value.

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

The complete key schema for a global secondary index, which consists of one * or more pairs of attribute names and key types:

  • * HASH - partition key

  • RANGE - sort * key

The partition key of an item is also known as its * hash attribute. The term "hash attribute" derives from DynamoDB's usage * of an internal hash function to evenly distribute data items across partitions, * based on their partition key values.

The sort key of an item is also * known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, * in sorted order by the sort key value.

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

The complete key schema for a global secondary index, which consists of one * or more pairs of attribute names and key types:

  • * HASH - partition key

  • RANGE - sort * key

The partition key of an item is also known as its * hash attribute. The term "hash attribute" derives from DynamoDB's usage * of an internal hash function to evenly distribute data items across partitions, * based on their partition key values.

The sort key of an item is also * known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, * in sorted order by the sort key value.

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

The complete key schema for a global secondary index, which consists of one * or more pairs of attribute names and key types:

  • * HASH - partition key

  • RANGE - sort * key

The partition key of an item is also known as its * hash attribute. The term "hash attribute" derives from DynamoDB's usage * of an internal hash function to evenly distribute data items across partitions, * based on their partition key values.

The sort key of an item is also * known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, * in sorted order by the sort key value.

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

The complete key schema for a global secondary index, which consists of one * or more pairs of attribute names and key types:

  • * HASH - partition key

  • RANGE - sort * key

The partition key of an item is also known as its * hash attribute. The term "hash attribute" derives from DynamoDB's usage * of an internal hash function to evenly distribute data items across partitions, * based on their partition key values.

The sort key of an item is also * known as its range attribute. The term "range attribute" derives from the * way DynamoDB stores items with the same partition key physically close together, * in sorted order by the sort key value.

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

Represents attributes that are copied (projected) from the table into the * global secondary index. These are in addition to the primary key attributes and * index key attributes, which are automatically projected.

*/ inline const Projection& GetProjection() const{ return m_projection; } /** *

Represents attributes that are copied (projected) from the table into the * global secondary index. These are in addition to the primary key attributes and * index key attributes, which are automatically projected.

*/ inline bool ProjectionHasBeenSet() const { return m_projectionHasBeenSet; } /** *

Represents attributes that are copied (projected) from the table into the * global secondary index. These are in addition to the primary key attributes and * index key attributes, which are automatically projected.

*/ inline void SetProjection(const Projection& value) { m_projectionHasBeenSet = true; m_projection = value; } /** *

Represents attributes that are copied (projected) from the table into the * global secondary index. These are in addition to the primary key attributes and * index key attributes, which are automatically projected.

*/ inline void SetProjection(Projection&& value) { m_projectionHasBeenSet = true; m_projection = std::move(value); } /** *

Represents attributes that are copied (projected) from the table into the * global secondary index. These are in addition to the primary key attributes and * index key attributes, which are automatically projected.

*/ inline GlobalSecondaryIndexInfo& WithProjection(const Projection& value) { SetProjection(value); return *this;} /** *

Represents attributes that are copied (projected) from the table into the * global secondary index. These are in addition to the primary key attributes and * index key attributes, which are automatically projected.

*/ inline GlobalSecondaryIndexInfo& WithProjection(Projection&& value) { SetProjection(std::move(value)); return *this;} /** *

Represents the provisioned throughput settings for the specified global * secondary index.

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

Represents the provisioned throughput settings for the specified global * secondary index.

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

Represents the provisioned throughput settings for the specified global * secondary index.

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

Represents the provisioned throughput settings for the specified global * secondary index.

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

Represents the provisioned throughput settings for the specified global * secondary index.

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

Represents the provisioned throughput settings for the specified global * secondary index.

*/ inline GlobalSecondaryIndexInfo& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} private: Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::Vector m_keySchema; bool m_keySchemaHasBeenSet = false; Projection m_projection; bool m_projectionHasBeenSet = false; ProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws