AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetEngagementResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
12#include <aws/partnercentral-selling/model/EngagementContextDetails.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace PartnerCentralSelling {
26namespace Model {
28 public:
29 AWS_PARTNERCENTRALSELLING_API GetEngagementResult() = default;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetArn() const { return m_arn; }
55 template <typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) {
57 m_arnHasBeenSet = true;
58 m_arn = std::forward<ArnT>(value);
59 }
60 template <typename ArnT = Aws::String>
62 SetArn(std::forward<ArnT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetTitle() const { return m_title; }
73 template <typename TitleT = Aws::String>
74 void SetTitle(TitleT&& value) {
75 m_titleHasBeenSet = true;
76 m_title = std::forward<TitleT>(value);
77 }
78 template <typename TitleT = Aws::String>
79 GetEngagementResult& WithTitle(TitleT&& value) {
80 SetTitle(std::forward<TitleT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetDescription() const { return m_description; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
97 GetEngagementResult& WithDescription(DescriptionT&& value) {
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
109 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
110 template <typename CreatedAtT = Aws::Utils::DateTime>
111 void SetCreatedAt(CreatedAtT&& value) {
112 m_createdAtHasBeenSet = true;
113 m_createdAt = std::forward<CreatedAtT>(value);
114 }
115 template <typename CreatedAtT = Aws::Utils::DateTime>
116 GetEngagementResult& WithCreatedAt(CreatedAtT&& value) {
117 SetCreatedAt(std::forward<CreatedAtT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
128 template <typename CreatedByT = Aws::String>
129 void SetCreatedBy(CreatedByT&& value) {
130 m_createdByHasBeenSet = true;
131 m_createdBy = std::forward<CreatedByT>(value);
132 }
133 template <typename CreatedByT = Aws::String>
134 GetEngagementResult& WithCreatedBy(CreatedByT&& value) {
135 SetCreatedBy(std::forward<CreatedByT>(value));
136 return *this;
137 }
139
141
146 inline int GetMemberCount() const { return m_memberCount; }
147 inline void SetMemberCount(int value) {
148 m_memberCountHasBeenSet = true;
149 m_memberCount = value;
150 }
152 SetMemberCount(value);
153 return *this;
154 }
156
158
163 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
164 template <typename ModifiedAtT = Aws::Utils::DateTime>
165 void SetModifiedAt(ModifiedAtT&& value) {
166 m_modifiedAtHasBeenSet = true;
167 m_modifiedAt = std::forward<ModifiedAtT>(value);
168 }
169 template <typename ModifiedAtT = Aws::Utils::DateTime>
170 GetEngagementResult& WithModifiedAt(ModifiedAtT&& value) {
171 SetModifiedAt(std::forward<ModifiedAtT>(value));
172 return *this;
173 }
175
177
181 inline const Aws::String& GetModifiedBy() const { return m_modifiedBy; }
182 template <typename ModifiedByT = Aws::String>
183 void SetModifiedBy(ModifiedByT&& value) {
184 m_modifiedByHasBeenSet = true;
185 m_modifiedBy = std::forward<ModifiedByT>(value);
186 }
187 template <typename ModifiedByT = Aws::String>
188 GetEngagementResult& WithModifiedBy(ModifiedByT&& value) {
189 SetModifiedBy(std::forward<ModifiedByT>(value));
190 return *this;
191 }
193
195
200 inline const Aws::Vector<EngagementContextDetails>& GetContexts() const { return m_contexts; }
201 template <typename ContextsT = Aws::Vector<EngagementContextDetails>>
202 void SetContexts(ContextsT&& value) {
203 m_contextsHasBeenSet = true;
204 m_contexts = std::forward<ContextsT>(value);
205 }
206 template <typename ContextsT = Aws::Vector<EngagementContextDetails>>
207 GetEngagementResult& WithContexts(ContextsT&& value) {
208 SetContexts(std::forward<ContextsT>(value));
209 return *this;
210 }
211 template <typename ContextsT = EngagementContextDetails>
212 GetEngagementResult& AddContexts(ContextsT&& value) {
213 m_contextsHasBeenSet = true;
214 m_contexts.emplace_back(std::forward<ContextsT>(value));
215 return *this;
216 }
218
220
221 inline const Aws::String& GetRequestId() const { return m_requestId; }
222 template <typename RequestIdT = Aws::String>
223 void SetRequestId(RequestIdT&& value) {
224 m_requestIdHasBeenSet = true;
225 m_requestId = std::forward<RequestIdT>(value);
226 }
227 template <typename RequestIdT = Aws::String>
228 GetEngagementResult& WithRequestId(RequestIdT&& value) {
229 SetRequestId(std::forward<RequestIdT>(value));
230 return *this;
231 }
233 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
234
235 private:
236 Aws::String m_id;
237
238 Aws::String m_arn;
239
240 Aws::String m_title;
241
242 Aws::String m_description;
243
244 Aws::Utils::DateTime m_createdAt{};
245
246 Aws::String m_createdBy;
247
248 int m_memberCount{0};
249
250 Aws::Utils::DateTime m_modifiedAt{};
251
252 Aws::String m_modifiedBy;
253
255
256 Aws::String m_requestId;
257 Aws::Http::HttpResponseCode m_HttpResponseCode;
258 bool m_idHasBeenSet = false;
259 bool m_arnHasBeenSet = false;
260 bool m_titleHasBeenSet = false;
261 bool m_descriptionHasBeenSet = false;
262 bool m_createdAtHasBeenSet = false;
263 bool m_createdByHasBeenSet = false;
264 bool m_memberCountHasBeenSet = false;
265 bool m_modifiedAtHasBeenSet = false;
266 bool m_modifiedByHasBeenSet = false;
267 bool m_contextsHasBeenSet = false;
268 bool m_requestIdHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace PartnerCentralSelling
273} // namespace Aws
GetEngagementResult & WithCreatedAt(CreatedAtT &&value)
GetEngagementResult & WithModifiedAt(ModifiedAtT &&value)
GetEngagementResult & AddContexts(ContextsT &&value)
AWS_PARTNERCENTRALSELLING_API GetEngagementResult()=default
AWS_PARTNERCENTRALSELLING_API GetEngagementResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEngagementResult & WithModifiedBy(ModifiedByT &&value)
GetEngagementResult & WithContexts(ContextsT &&value)
GetEngagementResult & WithRequestId(RequestIdT &&value)
GetEngagementResult & WithDescription(DescriptionT &&value)
GetEngagementResult & WithCreatedBy(CreatedByT &&value)
const Aws::Vector< EngagementContextDetails > & GetContexts() const
AWS_PARTNERCENTRALSELLING_API GetEngagementResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue