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

An entity attribute that's unique to a specific entity.

See * Also:

AWS * API Reference

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

A string representation of the path to a given attribute or sub-attribute. * Supports JMESPath.

*/ inline const Aws::String& GetAttributePath() const{ return m_attributePath; } /** *

A string representation of the path to a given attribute or sub-attribute. * Supports JMESPath.

*/ inline bool AttributePathHasBeenSet() const { return m_attributePathHasBeenSet; } /** *

A string representation of the path to a given attribute or sub-attribute. * Supports JMESPath.

*/ inline void SetAttributePath(const Aws::String& value) { m_attributePathHasBeenSet = true; m_attributePath = value; } /** *

A string representation of the path to a given attribute or sub-attribute. * Supports JMESPath.

*/ inline void SetAttributePath(Aws::String&& value) { m_attributePathHasBeenSet = true; m_attributePath = std::move(value); } /** *

A string representation of the path to a given attribute or sub-attribute. * Supports JMESPath.

*/ inline void SetAttributePath(const char* value) { m_attributePathHasBeenSet = true; m_attributePath.assign(value); } /** *

A string representation of the path to a given attribute or sub-attribute. * Supports JMESPath.

*/ inline UniqueAttribute& WithAttributePath(const Aws::String& value) { SetAttributePath(value); return *this;} /** *

A string representation of the path to a given attribute or sub-attribute. * Supports JMESPath.

*/ inline UniqueAttribute& WithAttributePath(Aws::String&& value) { SetAttributePath(std::move(value)); return *this;} /** *

A string representation of the path to a given attribute or sub-attribute. * Supports JMESPath.

*/ inline UniqueAttribute& WithAttributePath(const char* value) { SetAttributePath(value); return *this;} /** *

The value of the attribute. This is a Document type. This type * is not supported by Java V1, Go V1, and older versions of the AWS CLI.

*/ inline Aws::Utils::DocumentView GetAttributeValue() const{ return m_attributeValue; } /** *

The value of the attribute. This is a Document type. This type * is not supported by Java V1, Go V1, and older versions of the AWS CLI.

*/ inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; } /** *

The value of the attribute. This is a Document type. This type * is not supported by Java V1, Go V1, and older versions of the AWS CLI.

*/ inline void SetAttributeValue(const Aws::Utils::Document& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; } /** *

The value of the attribute. This is a Document type. This type * is not supported by Java V1, Go V1, and older versions of the AWS CLI.

*/ inline void SetAttributeValue(Aws::Utils::Document&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = std::move(value); } /** *

The value of the attribute. This is a Document type. This type * is not supported by Java V1, Go V1, and older versions of the AWS CLI.

*/ inline UniqueAttribute& WithAttributeValue(const Aws::Utils::Document& value) { SetAttributeValue(value); return *this;} /** *

The value of the attribute. This is a Document type. This type * is not supported by Java V1, Go V1, and older versions of the AWS CLI.

*/ inline UniqueAttribute& WithAttributeValue(Aws::Utils::Document&& value) { SetAttributeValue(std::move(value)); return *this;} private: Aws::String m_attributePath; bool m_attributePathHasBeenSet = false; Aws::Utils::Document m_attributeValue; bool m_attributeValueHasBeenSet = false; }; } // namespace Model } // namespace IdentityStore } // namespace Aws