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

A component of the key schema for the DynamoDB table, a global secondary * index, or a local secondary index.

See Also:

AWS * API Reference

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

The name of the key schema attribute.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The name of the key schema attribute.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The name of the key schema attribute.

*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The name of the key schema attribute.

*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The name of the key schema attribute.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The name of the key schema attribute.

*/ inline AwsDynamoDbTableKeySchema& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The name of the key schema attribute.

*/ inline AwsDynamoDbTableKeySchema& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The name of the key schema attribute.

*/ inline AwsDynamoDbTableKeySchema& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *

The type of key used for the key schema attribute. Valid values are * HASH or RANGE.

*/ inline const Aws::String& GetKeyType() const{ return m_keyType; } /** *

The type of key used for the key schema attribute. Valid values are * HASH or RANGE.

*/ inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; } /** *

The type of key used for the key schema attribute. Valid values are * HASH or RANGE.

*/ inline void SetKeyType(const Aws::String& value) { m_keyTypeHasBeenSet = true; m_keyType = value; } /** *

The type of key used for the key schema attribute. Valid values are * HASH or RANGE.

*/ inline void SetKeyType(Aws::String&& value) { m_keyTypeHasBeenSet = true; m_keyType = std::move(value); } /** *

The type of key used for the key schema attribute. Valid values are * HASH or RANGE.

*/ inline void SetKeyType(const char* value) { m_keyTypeHasBeenSet = true; m_keyType.assign(value); } /** *

The type of key used for the key schema attribute. Valid values are * HASH or RANGE.

*/ inline AwsDynamoDbTableKeySchema& WithKeyType(const Aws::String& value) { SetKeyType(value); return *this;} /** *

The type of key used for the key schema attribute. Valid values are * HASH or RANGE.

*/ inline AwsDynamoDbTableKeySchema& WithKeyType(Aws::String&& value) { SetKeyType(std::move(value)); return *this;} /** *

The type of key used for the key schema attribute. Valid values are * HASH or RANGE.

*/ inline AwsDynamoDbTableKeySchema& WithKeyType(const char* value) { SetKeyType(value); return *this;} private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; Aws::String m_keyType; bool m_keyTypeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws