/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a new global secondary index to be added to an existing
* table.See Also:
AWS
* API Reference
The name of the global secondary index to be created.
*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *The name of the global secondary index to be created.
*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *The name of the global secondary index to be created.
*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *The name of the global secondary index to be created.
*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *The name of the global secondary index to be created.
*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *The name of the global secondary index to be created.
*/ inline CreateGlobalSecondaryIndexAction& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *The name of the global secondary index to be created.
*/ inline CreateGlobalSecondaryIndexAction& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *The name of the global secondary index to be created.
*/ inline CreateGlobalSecondaryIndexAction& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *The key schema for the global secondary index.
*/ inline const Aws::VectorThe key schema for the global secondary index.
*/ inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; } /** *The key schema for the global secondary index.
*/ inline void SetKeySchema(const Aws::VectorThe key schema for the global secondary index.
*/ inline void SetKeySchema(Aws::VectorThe key schema for the global secondary index.
*/ inline CreateGlobalSecondaryIndexAction& WithKeySchema(const Aws::VectorThe key schema for the global secondary index.
*/ inline CreateGlobalSecondaryIndexAction& WithKeySchema(Aws::VectorThe key schema for the global secondary index.
*/ inline CreateGlobalSecondaryIndexAction& AddKeySchema(const KeySchemaElement& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; } /** *The key schema for the global secondary index.
*/ inline CreateGlobalSecondaryIndexAction& 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 an * 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 an * 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 an * 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 an * 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 an * index. These are in addition to the primary key attributes and index key * attributes, which are automatically projected.
*/ inline CreateGlobalSecondaryIndexAction& WithProjection(const Projection& value) { SetProjection(value); return *this;} /** *Represents attributes that are copied (projected) from the table into an * index. These are in addition to the primary key attributes and index key * attributes, which are automatically projected.
*/ inline CreateGlobalSecondaryIndexAction& WithProjection(Projection&& value) { SetProjection(std::move(value)); return *this;} /** *Represents the provisioned throughput settings for the specified global * secondary index.
For current minimum and maximum provisioned throughput * values, see Service, * Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
*/ inline const ProvisionedThroughput& GetProvisionedThroughput() const{ return m_provisionedThroughput; } /** *Represents the provisioned throughput settings for the specified global * secondary index.
For current minimum and maximum provisioned throughput * values, see Service, * Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
*/ inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; } /** *Represents the provisioned throughput settings for the specified global * secondary index.
For current minimum and maximum provisioned throughput * values, see Service, * Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
*/ inline void SetProvisionedThroughput(const ProvisionedThroughput& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; } /** *Represents the provisioned throughput settings for the specified global * secondary index.
For current minimum and maximum provisioned throughput * values, see Service, * Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
*/ inline void SetProvisionedThroughput(ProvisionedThroughput&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::move(value); } /** *Represents the provisioned throughput settings for the specified global * secondary index.
For current minimum and maximum provisioned throughput * values, see Service, * Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
*/ inline CreateGlobalSecondaryIndexAction& WithProvisionedThroughput(const ProvisionedThroughput& value) { SetProvisionedThroughput(value); return *this;} /** *Represents the provisioned throughput settings for the specified global * secondary index.
For current minimum and maximum provisioned throughput * values, see Service, * Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
*/ inline CreateGlobalSecondaryIndexAction& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} private: Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::Vector