/** * 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 SecurityHub { namespace Model { /** *

Information about a local secondary index for a DynamoDB table.

See * Also:

AWS * API Reference

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

The ARN of the index.

*/ inline const Aws::String& GetIndexArn() const{ return m_indexArn; } /** *

The ARN of the index.

*/ inline bool IndexArnHasBeenSet() const { return m_indexArnHasBeenSet; } /** *

The ARN of the index.

*/ inline void SetIndexArn(const Aws::String& value) { m_indexArnHasBeenSet = true; m_indexArn = value; } /** *

The ARN of the index.

*/ inline void SetIndexArn(Aws::String&& value) { m_indexArnHasBeenSet = true; m_indexArn = std::move(value); } /** *

The ARN of the index.

*/ inline void SetIndexArn(const char* value) { m_indexArnHasBeenSet = true; m_indexArn.assign(value); } /** *

The ARN of the index.

*/ inline AwsDynamoDbTableLocalSecondaryIndex& WithIndexArn(const Aws::String& value) { SetIndexArn(value); return *this;} /** *

The ARN of the index.

*/ inline AwsDynamoDbTableLocalSecondaryIndex& WithIndexArn(Aws::String&& value) { SetIndexArn(std::move(value)); return *this;} /** *

The ARN of the index.

*/ inline AwsDynamoDbTableLocalSecondaryIndex& WithIndexArn(const char* value) { SetIndexArn(value); return *this;} /** *

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The name of the index.

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

The complete key schema for the index.

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

The complete key schema for the index.

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

The complete key schema for the index.

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

The complete key schema for the index.

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

The complete key schema for the index.

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

The complete key schema for the index.

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

The complete key schema for the index.

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

The complete key schema for the index.

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

Attributes that are copied from the table into the index. These are in * addition to the primary key attributes and index key attributes, which are * automatically projected.

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

Attributes that are copied from the table into the 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; } /** *

Attributes that are copied from the table into the index. These are in * addition to the primary key attributes and index key attributes, which are * automatically projected.

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

Attributes that are copied from the table into the index. These are in * addition to the primary key attributes and index key attributes, which are * automatically projected.

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

Attributes that are copied from the table into the index. These are in * addition to the primary key attributes and index key attributes, which are * automatically projected.

*/ inline AwsDynamoDbTableLocalSecondaryIndex& WithProjection(const AwsDynamoDbTableProjection& value) { SetProjection(value); return *this;} /** *

Attributes that are copied from the table into the index. These are in * addition to the primary key attributes and index key attributes, which are * automatically projected.

*/ inline AwsDynamoDbTableLocalSecondaryIndex& WithProjection(AwsDynamoDbTableProjection&& value) { SetProjection(std::move(value)); return *this;} private: Aws::String m_indexArn; bool m_indexArnHasBeenSet = false; Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::Vector m_keySchema; bool m_keySchemaHasBeenSet = false; AwsDynamoDbTableProjection m_projection; bool m_projectionHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws