AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/RecommendationSourceType.h>
11#include <aws/qconnect/model/RecommendationTriggerData.h>
12#include <aws/qconnect/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 QConnect {
24namespace Model {
25
35 public:
36 AWS_QCONNECT_API RecommendationTrigger() = default;
39 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline RecommendationTriggerType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 m_typeHasBeenSet = true;
67 m_type = value;
68 }
70 SetType(value);
71 return *this;
72 }
74
76
82 inline RecommendationSourceType GetSource() const { return m_source; }
83 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
85 m_sourceHasBeenSet = true;
86 m_source = value;
87 }
89 SetSource(value);
90 return *this;
91 }
93
95
98 inline const RecommendationTriggerData& GetData() const { return m_data; }
99 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
100 template <typename DataT = RecommendationTriggerData>
101 void SetData(DataT&& value) {
102 m_dataHasBeenSet = true;
103 m_data = std::forward<DataT>(value);
104 }
105 template <typename DataT = RecommendationTriggerData>
107 SetData(std::forward<DataT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<Aws::String>& GetRecommendationIds() const { return m_recommendationIds; }
117 inline bool RecommendationIdsHasBeenSet() const { return m_recommendationIdsHasBeenSet; }
118 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
120 m_recommendationIdsHasBeenSet = true;
121 m_recommendationIds = std::forward<RecommendationIdsT>(value);
122 }
123 template <typename RecommendationIdsT = Aws::Vector<Aws::String>>
125 SetRecommendationIds(std::forward<RecommendationIdsT>(value));
126 return *this;
127 }
128 template <typename RecommendationIdsT = Aws::String>
130 m_recommendationIdsHasBeenSet = true;
131 m_recommendationIds.emplace_back(std::forward<RecommendationIdsT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_id;
137
139
141
142 RecommendationTriggerData m_data;
143
144 Aws::Vector<Aws::String> m_recommendationIds;
145 bool m_idHasBeenSet = false;
146 bool m_typeHasBeenSet = false;
147 bool m_sourceHasBeenSet = false;
148 bool m_dataHasBeenSet = false;
149 bool m_recommendationIdsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace QConnect
154} // namespace Aws
AWS_QCONNECT_API RecommendationTrigger()=default
RecommendationTrigger & AddRecommendationIds(RecommendationIdsT &&value)
RecommendationTrigger & WithId(IdT &&value)
void SetSource(RecommendationSourceType value)
void SetType(RecommendationTriggerType value)
RecommendationTrigger & WithSource(RecommendationSourceType value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const RecommendationTriggerData & GetData() const
RecommendationTrigger & WithData(DataT &&value)
AWS_QCONNECT_API RecommendationTrigger & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRecommendationIds(RecommendationIdsT &&value)
RecommendationTriggerType GetType() const
RecommendationTrigger & WithType(RecommendationTriggerType value)
const Aws::Vector< Aws::String > & GetRecommendationIds() const
AWS_QCONNECT_API RecommendationTrigger(Aws::Utils::Json::JsonView jsonValue)
RecommendationTrigger & WithRecommendationIds(RecommendationIdsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue