/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Overrides the document relevance properties of a custom index
* field.See Also:
AWS
* API Reference
The name of the index field.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the index field.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the index field.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the index field.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the index field.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the index field.
*/ inline DocumentRelevanceConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the index field.
*/ inline DocumentRelevanceConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the index field.
*/ inline DocumentRelevanceConfiguration& WithName(const char* value) { SetName(value); return *this;} /** *Provides information for tuning the relevance of a field in a search. When a * query includes terms that match the field, the results are given a boost in the * response based on these tuning parameters.
*/ inline const Relevance& GetRelevance() const{ return m_relevance; } /** *Provides information for tuning the relevance of a field in a search. When a * query includes terms that match the field, the results are given a boost in the * response based on these tuning parameters.
*/ inline bool RelevanceHasBeenSet() const { return m_relevanceHasBeenSet; } /** *Provides information for tuning the relevance of a field in a search. When a * query includes terms that match the field, the results are given a boost in the * response based on these tuning parameters.
*/ inline void SetRelevance(const Relevance& value) { m_relevanceHasBeenSet = true; m_relevance = value; } /** *Provides information for tuning the relevance of a field in a search. When a * query includes terms that match the field, the results are given a boost in the * response based on these tuning parameters.
*/ inline void SetRelevance(Relevance&& value) { m_relevanceHasBeenSet = true; m_relevance = std::move(value); } /** *Provides information for tuning the relevance of a field in a search. When a * query includes terms that match the field, the results are given a boost in the * response based on these tuning parameters.
*/ inline DocumentRelevanceConfiguration& WithRelevance(const Relevance& value) { SetRelevance(value); return *this;} /** *Provides information for tuning the relevance of a field in a search. When a * query includes terms that match the field, the results are given a boost in the * response based on these tuning parameters.
*/ inline DocumentRelevanceConfiguration& WithRelevance(Relevance&& value) { SetRelevance(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Relevance m_relevance; bool m_relevanceHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws