/** * 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 error message with a list of conflicting queries used across different * sets of featured results. This occurred with the request for a new featured * results set. Check that the queries you specified for featured results are * unique per featured results set for each index.

See Also:

AWS * API Reference

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

An explanation for the conflicting queries.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

An explanation for the conflicting queries.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

An explanation for the conflicting queries.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

An explanation for the conflicting queries.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

An explanation for the conflicting queries.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

An explanation for the conflicting queries.

*/ inline FeaturedResultsConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

An explanation for the conflicting queries.

*/ inline FeaturedResultsConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

An explanation for the conflicting queries.

*/ inline FeaturedResultsConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

A list of the conflicting queries, including the query text, the name for the * featured results set, and the identifier of the featured results set.

*/ inline const Aws::Vector& GetConflictingItems() const{ return m_conflictingItems; } /** *

A list of the conflicting queries, including the query text, the name for the * featured results set, and the identifier of the featured results set.

*/ inline bool ConflictingItemsHasBeenSet() const { return m_conflictingItemsHasBeenSet; } /** *

A list of the conflicting queries, including the query text, the name for the * featured results set, and the identifier of the featured results set.

*/ inline void SetConflictingItems(const Aws::Vector& value) { m_conflictingItemsHasBeenSet = true; m_conflictingItems = value; } /** *

A list of the conflicting queries, including the query text, the name for the * featured results set, and the identifier of the featured results set.

*/ inline void SetConflictingItems(Aws::Vector&& value) { m_conflictingItemsHasBeenSet = true; m_conflictingItems = std::move(value); } /** *

A list of the conflicting queries, including the query text, the name for the * featured results set, and the identifier of the featured results set.

*/ inline FeaturedResultsConflictException& WithConflictingItems(const Aws::Vector& value) { SetConflictingItems(value); return *this;} /** *

A list of the conflicting queries, including the query text, the name for the * featured results set, and the identifier of the featured results set.

*/ inline FeaturedResultsConflictException& WithConflictingItems(Aws::Vector&& value) { SetConflictingItems(std::move(value)); return *this;} /** *

A list of the conflicting queries, including the query text, the name for the * featured results set, and the identifier of the featured results set.

*/ inline FeaturedResultsConflictException& AddConflictingItems(const ConflictingItem& value) { m_conflictingItemsHasBeenSet = true; m_conflictingItems.push_back(value); return *this; } /** *

A list of the conflicting queries, including the query text, the name for the * featured results set, and the identifier of the featured results set.

*/ inline FeaturedResultsConflictException& AddConflictingItems(ConflictingItem&& value) { m_conflictingItemsHasBeenSet = true; m_conflictingItems.push_back(std::move(value)); return *this; } private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector m_conflictingItems; bool m_conflictingItemsHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws