/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

For global and local secondary indexes, identifies the attributes that are * copied from the table into the index.

See Also:

AWS * API Reference

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

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline const Aws::Vector& GetNonKeyAttributes() const{ return m_nonKeyAttributes; } /** *

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline bool NonKeyAttributesHasBeenSet() const { return m_nonKeyAttributesHasBeenSet; } /** *

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline void SetNonKeyAttributes(const Aws::Vector& value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes = value; } /** *

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline void SetNonKeyAttributes(Aws::Vector&& value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes = std::move(value); } /** *

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline AwsDynamoDbTableProjection& WithNonKeyAttributes(const Aws::Vector& value) { SetNonKeyAttributes(value); return *this;} /** *

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline AwsDynamoDbTableProjection& WithNonKeyAttributes(Aws::Vector&& value) { SetNonKeyAttributes(std::move(value)); return *this;} /** *

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline AwsDynamoDbTableProjection& AddNonKeyAttributes(const Aws::String& value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes.push_back(value); return *this; } /** *

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline AwsDynamoDbTableProjection& AddNonKeyAttributes(Aws::String&& value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes.push_back(std::move(value)); return *this; } /** *

The nonkey attributes that are projected into the index. For each attribute, * provide the attribute name.

*/ inline AwsDynamoDbTableProjection& AddNonKeyAttributes(const char* value) { m_nonKeyAttributesHasBeenSet = true; m_nonKeyAttributes.push_back(value); return *this; } /** *

The types of attributes that are projected into the index. Valid values are * as follows:

  • ALL

  • * INCLUDE

  • KEYS_ONLY

*/ inline const Aws::String& GetProjectionType() const{ return m_projectionType; } /** *

The types of attributes that are projected into the index. Valid values are * as follows:

  • ALL

  • * INCLUDE

  • KEYS_ONLY

*/ inline bool ProjectionTypeHasBeenSet() const { return m_projectionTypeHasBeenSet; } /** *

The types of attributes that are projected into the index. Valid values are * as follows:

  • ALL

  • * INCLUDE

  • KEYS_ONLY

*/ inline void SetProjectionType(const Aws::String& value) { m_projectionTypeHasBeenSet = true; m_projectionType = value; } /** *

The types of attributes that are projected into the index. Valid values are * as follows:

  • ALL

  • * INCLUDE

  • KEYS_ONLY

*/ inline void SetProjectionType(Aws::String&& value) { m_projectionTypeHasBeenSet = true; m_projectionType = std::move(value); } /** *

The types of attributes that are projected into the index. Valid values are * as follows:

  • ALL

  • * INCLUDE

  • KEYS_ONLY

*/ inline void SetProjectionType(const char* value) { m_projectionTypeHasBeenSet = true; m_projectionType.assign(value); } /** *

The types of attributes that are projected into the index. Valid values are * as follows:

  • ALL

  • * INCLUDE

  • KEYS_ONLY

*/ inline AwsDynamoDbTableProjection& WithProjectionType(const Aws::String& value) { SetProjectionType(value); return *this;} /** *

The types of attributes that are projected into the index. Valid values are * as follows:

  • ALL

  • * INCLUDE

  • KEYS_ONLY

*/ inline AwsDynamoDbTableProjection& WithProjectionType(Aws::String&& value) { SetProjectionType(std::move(value)); return *this;} /** *

The types of attributes that are projected into the index. Valid values are * as follows:

  • ALL

  • * INCLUDE

  • KEYS_ONLY

*/ inline AwsDynamoDbTableProjection& WithProjectionType(const char* value) { SetProjectionType(value); return *this;} private: Aws::Vector m_nonKeyAttributes; bool m_nonKeyAttributesHasBeenSet = false; Aws::String m_projectionType; bool m_projectionTypeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws