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

An attribute returned from an index query.

See Also:

AWS * API Reference

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

The key that identifies the attribute.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The key that identifies the attribute.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The key that identifies the attribute.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The key that identifies the attribute.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The key that identifies the attribute.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The key that identifies the attribute.

*/ inline AdditionalResultAttribute& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The key that identifies the attribute.

*/ inline AdditionalResultAttribute& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The key that identifies the attribute.

*/ inline AdditionalResultAttribute& WithKey(const char* value) { SetKey(value); return *this;} /** *

The data type of the Value property.

*/ inline const AdditionalResultAttributeValueType& GetValueType() const{ return m_valueType; } /** *

The data type of the Value property.

*/ inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; } /** *

The data type of the Value property.

*/ inline void SetValueType(const AdditionalResultAttributeValueType& value) { m_valueTypeHasBeenSet = true; m_valueType = value; } /** *

The data type of the Value property.

*/ inline void SetValueType(AdditionalResultAttributeValueType&& value) { m_valueTypeHasBeenSet = true; m_valueType = std::move(value); } /** *

The data type of the Value property.

*/ inline AdditionalResultAttribute& WithValueType(const AdditionalResultAttributeValueType& value) { SetValueType(value); return *this;} /** *

The data type of the Value property.

*/ inline AdditionalResultAttribute& WithValueType(AdditionalResultAttributeValueType&& value) { SetValueType(std::move(value)); return *this;} /** *

An object that contains the attribute value.

*/ inline const AdditionalResultAttributeValue& GetValue() const{ return m_value; } /** *

An object that contains the attribute value.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

An object that contains the attribute value.

*/ inline void SetValue(const AdditionalResultAttributeValue& value) { m_valueHasBeenSet = true; m_value = value; } /** *

An object that contains the attribute value.

*/ inline void SetValue(AdditionalResultAttributeValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

An object that contains the attribute value.

*/ inline AdditionalResultAttribute& WithValue(const AdditionalResultAttributeValue& value) { SetValue(value); return *this;} /** *

An object that contains the attribute value.

*/ inline AdditionalResultAttribute& WithValue(AdditionalResultAttributeValue&& value) { SetValue(std::move(value)); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; AdditionalResultAttributeValueType m_valueType; bool m_valueTypeHasBeenSet = false; AdditionalResultAttributeValue m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws