/** * 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 { /** *

Contains a definition of an attribute for the table.

See Also:

* AWS * API Reference

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

The name of the attribute.

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

The name of the attribute.

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

The name of the attribute.

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

The name of the attribute.

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

The name of the attribute.

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

The name of the attribute.

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

The name of the attribute.

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

The name of the attribute.

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

The type of the attribute.

*/ inline const Aws::String& GetAttributeType() const{ return m_attributeType; } /** *

The type of the attribute.

*/ inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; } /** *

The type of the attribute.

*/ inline void SetAttributeType(const Aws::String& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; } /** *

The type of the attribute.

*/ inline void SetAttributeType(Aws::String&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); } /** *

The type of the attribute.

*/ inline void SetAttributeType(const char* value) { m_attributeTypeHasBeenSet = true; m_attributeType.assign(value); } /** *

The type of the attribute.

*/ inline AwsDynamoDbTableAttributeDefinition& WithAttributeType(const Aws::String& value) { SetAttributeType(value); return *this;} /** *

The type of the attribute.

*/ inline AwsDynamoDbTableAttributeDefinition& WithAttributeType(Aws::String&& value) { SetAttributeType(std::move(value)); return *this;} /** *

The type of the attribute.

*/ inline AwsDynamoDbTableAttributeDefinition& WithAttributeType(const char* value) { SetAttributeType(value); return *this;} private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; Aws::String m_attributeType; bool m_attributeTypeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws