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

A union type containing information related to the trigger.

See * Also:

AWS * API Reference

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

Data associated with the QUERY RecommendationTriggerType.

*/ inline const QueryRecommendationTriggerData& GetQuery() const{ return m_query; } /** *

Data associated with the QUERY RecommendationTriggerType.

*/ inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; } /** *

Data associated with the QUERY RecommendationTriggerType.

*/ inline void SetQuery(const QueryRecommendationTriggerData& value) { m_queryHasBeenSet = true; m_query = value; } /** *

Data associated with the QUERY RecommendationTriggerType.

*/ inline void SetQuery(QueryRecommendationTriggerData&& value) { m_queryHasBeenSet = true; m_query = std::move(value); } /** *

Data associated with the QUERY RecommendationTriggerType.

*/ inline RecommendationTriggerData& WithQuery(const QueryRecommendationTriggerData& value) { SetQuery(value); return *this;} /** *

Data associated with the QUERY RecommendationTriggerType.

*/ inline RecommendationTriggerData& WithQuery(QueryRecommendationTriggerData&& value) { SetQuery(std::move(value)); return *this;} private: QueryRecommendationTriggerData m_query; bool m_queryHasBeenSet = false; }; } // namespace Model } // namespace ConnectWisdomService } // namespace Aws