AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
RecommendationTrigger.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
10#include <aws/wisdom/model/RecommendationSourceType.h>
11#include <aws/wisdom/model/RecommendationTriggerData.h>
12#include <aws/wisdom/model/RecommendationTriggerType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConnectWisdomService {
24namespace Model {
25
35 public:
36 AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger() = default;
37 AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const RecommendationTriggerData& GetData() const { return m_data; }
46 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
47 template <typename DataT = RecommendationTriggerData>
48 void SetData(DataT&& value) {
49 m_dataHasBeenSet = true;
50 m_data = std::forward<DataT>(value);
51 }
52 template <typename DataT = RecommendationTriggerData>
54 SetData(std::forward<DataT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetId() const { return m_id; }
64 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
65 template <typename IdT = Aws::String>
66 void SetId(IdT&& value) {
67 m_idHasBeenSet = true;
68 m_id = std::forward<IdT>(value);
69 }
70 template <typename IdT = Aws::String>
72 SetId(std::forward<IdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const { return m_recommendationIds; }
82 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
83 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
84 void SetRecommendationIds(RecommendationIdsT&& value) {
85 m_recommendationIdsHasBeenSet = true;
86 m_recommendationIds = std::forward<RecommendationIdsT>(value);
87 }
88 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
89 RecommendationTrigger& WithRecommendationIds(RecommendationIdsT&& value) {
90 SetRecommendationIds(std::forward<RecommendationIdsT>(value));
91 return *this;
92 }
93 template <typename RecommendationIdsT = Aws::String>
94 RecommendationTrigger& AddRecommendationIds(RecommendationIdsT&& value) {
95 m_recommendationIdsHasBeenSet = true;
96 m_recommendationIds.emplace_back(std::forward<RecommendationIdsT>(value));
97 return *this;
98 }
100
102
108 inline RecommendationSourceType GetSource() const { return m_source; }
109 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
111 m_sourceHasBeenSet = true;
112 m_source = value;
113 }
115 SetSource(value);
116 return *this;
117 }
119
121
124 inline RecommendationTriggerType GetType() const { return m_type; }
125 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
127 m_typeHasBeenSet = true;
128 m_type = value;
129 }
131 SetType(value);
132 return *this;
133 }
135 private:
137
138 Aws::String m_id;
139
140 Aws::Vector<Aws::String> m_recommendationIds;
141
143
145 bool m_dataHasBeenSet = false;
146 bool m_idHasBeenSet = false;
147 bool m_recommendationIdsHasBeenSet = false;
148 bool m_sourceHasBeenSet = false;
149 bool m_typeHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace ConnectWisdomService
154} // namespace Aws
AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger()=default
AWS_CONNECTWISDOMSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationTrigger & AddRecommendationIds(RecommendationIdsT &&value)
RecommendationTrigger & WithRecommendationIds(RecommendationIdsT &&value)
AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTWISDOMSERVICE_API RecommendationTrigger & operator=(Aws::Utils::Json::JsonView jsonValue)
RecommendationTrigger & WithType(RecommendationTriggerType value)
const RecommendationTriggerData & GetData() const
RecommendationTrigger & WithSource(RecommendationSourceType value)
const Aws::Vector< Aws::String > & GetRecommendationIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue