/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a conflicting query used across different sets of featured
* results. When you create a featured results set, you must check that the queries
* are unique per featured results set for each index.See Also:
* AWS
* API Reference
The text of the conflicting query.
*/ inline const Aws::String& GetQueryText() const{ return m_queryText; } /** *The text of the conflicting query.
*/ inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; } /** *The text of the conflicting query.
*/ inline void SetQueryText(const Aws::String& value) { m_queryTextHasBeenSet = true; m_queryText = value; } /** *The text of the conflicting query.
*/ inline void SetQueryText(Aws::String&& value) { m_queryTextHasBeenSet = true; m_queryText = std::move(value); } /** *The text of the conflicting query.
*/ inline void SetQueryText(const char* value) { m_queryTextHasBeenSet = true; m_queryText.assign(value); } /** *The text of the conflicting query.
*/ inline ConflictingItem& WithQueryText(const Aws::String& value) { SetQueryText(value); return *this;} /** *The text of the conflicting query.
*/ inline ConflictingItem& WithQueryText(Aws::String&& value) { SetQueryText(std::move(value)); return *this;} /** *The text of the conflicting query.
*/ inline ConflictingItem& WithQueryText(const char* value) { SetQueryText(value); return *this;} /** *The name for the set of featured results that the conflicting query belongs * to.
*/ inline const Aws::String& GetSetName() const{ return m_setName; } /** *The name for the set of featured results that the conflicting query belongs * to.
*/ inline bool SetNameHasBeenSet() const { return m_setNameHasBeenSet; } /** *The name for the set of featured results that the conflicting query belongs * to.
*/ inline void SetSetName(const Aws::String& value) { m_setNameHasBeenSet = true; m_setName = value; } /** *The name for the set of featured results that the conflicting query belongs * to.
*/ inline void SetSetName(Aws::String&& value) { m_setNameHasBeenSet = true; m_setName = std::move(value); } /** *The name for the set of featured results that the conflicting query belongs * to.
*/ inline void SetSetName(const char* value) { m_setNameHasBeenSet = true; m_setName.assign(value); } /** *The name for the set of featured results that the conflicting query belongs * to.
*/ inline ConflictingItem& WithSetName(const Aws::String& value) { SetSetName(value); return *this;} /** *The name for the set of featured results that the conflicting query belongs * to.
*/ inline ConflictingItem& WithSetName(Aws::String&& value) { SetSetName(std::move(value)); return *this;} /** *The name for the set of featured results that the conflicting query belongs * to.
*/ inline ConflictingItem& WithSetName(const char* value) { SetSetName(value); return *this;} /** *The identifier of the set of featured results that the conflicting query * belongs to.
*/ inline const Aws::String& GetSetId() const{ return m_setId; } /** *The identifier of the set of featured results that the conflicting query * belongs to.
*/ inline bool SetIdHasBeenSet() const { return m_setIdHasBeenSet; } /** *The identifier of the set of featured results that the conflicting query * belongs to.
*/ inline void SetSetId(const Aws::String& value) { m_setIdHasBeenSet = true; m_setId = value; } /** *The identifier of the set of featured results that the conflicting query * belongs to.
*/ inline void SetSetId(Aws::String&& value) { m_setIdHasBeenSet = true; m_setId = std::move(value); } /** *The identifier of the set of featured results that the conflicting query * belongs to.
*/ inline void SetSetId(const char* value) { m_setIdHasBeenSet = true; m_setId.assign(value); } /** *The identifier of the set of featured results that the conflicting query * belongs to.
*/ inline ConflictingItem& WithSetId(const Aws::String& value) { SetSetId(value); return *this;} /** *The identifier of the set of featured results that the conflicting query * belongs to.
*/ inline ConflictingItem& WithSetId(Aws::String&& value) { SetSetId(std::move(value)); return *this;} /** *The identifier of the set of featured results that the conflicting query * belongs to.
*/ inline ConflictingItem& WithSetId(const char* value) { SetSetId(value); return *this;} private: Aws::String m_queryText; bool m_queryTextHasBeenSet = false; Aws::String m_setName; bool m_setNameHasBeenSet = false; Aws::String m_setId; bool m_setIdHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws