/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An attribute returned from an index query.See Also:
AWS
* API Reference
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.
The data type of the Value
property.
The data type of the Value
property.
The data type of the Value
property.
The data type of the Value
property.
The data type of the Value
property.
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