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

Information abut a global secondary index for the table.

See * Also:

AWS * API Reference

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

Whether the index is currently backfilling.

*/ inline bool GetBackfilling() const{ return m_backfilling; } /** *

Whether the index is currently backfilling.

*/ inline bool BackfillingHasBeenSet() const { return m_backfillingHasBeenSet; } /** *

Whether the index is currently backfilling.

*/ inline void SetBackfilling(bool value) { m_backfillingHasBeenSet = true; m_backfilling = value; } /** *

Whether the index is currently backfilling.

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& WithBackfilling(bool value) { SetBackfilling(value); return *this;} /** *

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 AwsDynamoDbTableGlobalSecondaryIndex& WithIndexArn(const Aws::String& value) { SetIndexArn(value); return *this;} /** *

The ARN of the index.

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

The ARN of the index.

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& 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 AwsDynamoDbTableGlobalSecondaryIndex& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the index.

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

The name of the index.

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

The total size in bytes of the index.

*/ inline long long GetIndexSizeBytes() const{ return m_indexSizeBytes; } /** *

The total size in bytes of the index.

*/ inline bool IndexSizeBytesHasBeenSet() const { return m_indexSizeBytesHasBeenSet; } /** *

The total size in bytes of the index.

*/ inline void SetIndexSizeBytes(long long value) { m_indexSizeBytesHasBeenSet = true; m_indexSizeBytes = value; } /** *

The total size in bytes of the index.

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& WithIndexSizeBytes(long long value) { SetIndexSizeBytes(value); return *this;} /** *

The current status of the index.

  • ACTIVE

    *
  • CREATING

  • DELETING *

  • UPDATING

*/ inline const Aws::String& GetIndexStatus() const{ return m_indexStatus; } /** *

The current status of the index.

  • ACTIVE

    *
  • CREATING

  • DELETING *

  • UPDATING

*/ inline bool IndexStatusHasBeenSet() const { return m_indexStatusHasBeenSet; } /** *

The current status of the index.

  • ACTIVE

    *
  • CREATING

  • DELETING *

  • UPDATING

*/ inline void SetIndexStatus(const Aws::String& value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; } /** *

The current status of the index.

  • ACTIVE

    *
  • CREATING

  • DELETING *

  • UPDATING

*/ inline void SetIndexStatus(Aws::String&& value) { m_indexStatusHasBeenSet = true; m_indexStatus = std::move(value); } /** *

The current status of the index.

  • ACTIVE

    *
  • CREATING

  • DELETING *

  • UPDATING

*/ inline void SetIndexStatus(const char* value) { m_indexStatusHasBeenSet = true; m_indexStatus.assign(value); } /** *

The current status of the index.

  • ACTIVE

    *
  • CREATING

  • DELETING *

  • UPDATING

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& WithIndexStatus(const Aws::String& value) { SetIndexStatus(value); return *this;} /** *

The current status of the index.

  • ACTIVE

    *
  • CREATING

  • DELETING *

  • UPDATING

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& WithIndexStatus(Aws::String&& value) { SetIndexStatus(std::move(value)); return *this;} /** *

The current status of the index.

  • ACTIVE

    *
  • CREATING

  • DELETING *

  • UPDATING

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& WithIndexStatus(const char* value) { SetIndexStatus(value); return *this;} /** *

The number of items in the index.

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

The number of items in the index.

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

The number of items in the index.

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

The number of items in the index.

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& WithItemCount(int value) { SetItemCount(value); return *this;} /** *

The key schema for the index.

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

The key schema for the index.

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

The key schema for the index.

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

The key schema for the index.

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

The key schema for the index.

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

The key schema for the index.

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

The key schema for the index.

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

The key schema for the index.

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

Attributes that are copied from the table into an index.

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

Attributes that are copied from the table into an index.

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

Attributes that are copied from the table into an index.

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

Attributes that are copied from the table into an index.

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

Attributes that are copied from the table into an index.

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

Attributes that are copied from the table into an index.

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

Information about the provisioned throughput settings for the indexes.

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

Information about the provisioned throughput settings for the indexes.

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

Information about the provisioned throughput settings for the indexes.

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

Information about the provisioned throughput settings for the indexes.

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

Information about the provisioned throughput settings for the indexes.

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& WithProvisionedThroughput(const AwsDynamoDbTableProvisionedThroughput& value) { SetProvisionedThroughput(value); return *this;} /** *

Information about the provisioned throughput settings for the indexes.

*/ inline AwsDynamoDbTableGlobalSecondaryIndex& WithProvisionedThroughput(AwsDynamoDbTableProvisionedThroughput&& value) { SetProvisionedThroughput(std::move(value)); return *this;} private: bool m_backfilling; bool m_backfillingHasBeenSet = false; Aws::String m_indexArn; bool m_indexArnHasBeenSet = false; Aws::String m_indexName; bool m_indexNameHasBeenSet = false; long long m_indexSizeBytes; bool m_indexSizeBytesHasBeenSet = false; Aws::String m_indexStatus; bool m_indexStatusHasBeenSet = false; int m_itemCount; bool m_itemCountHasBeenSet = false; Aws::Vector m_keySchema; bool m_keySchemaHasBeenSet = false; AwsDynamoDbTableProjection m_projection; bool m_projectionHasBeenSet = false; AwsDynamoDbTableProvisionedThroughput m_provisionedThroughput; bool m_provisionedThroughputHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws