AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetEngagementResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
11#include <aws/partnercentral-selling/model/EngagementContextDetails.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace PartnerCentralSelling {
25namespace Model {
27 public:
28 AWS_PARTNERCENTRALSELLING_API GetEngagementResult() = default;
31
33
36 inline const Aws::String& GetId() const { return m_id; }
37 template <typename IdT = Aws::String>
38 void SetId(IdT&& value) {
39 m_idHasBeenSet = true;
40 m_id = std::forward<IdT>(value);
41 }
42 template <typename IdT = Aws::String>
44 SetId(std::forward<IdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 template <typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) {
56 m_arnHasBeenSet = true;
57 m_arn = std::forward<ArnT>(value);
58 }
59 template <typename ArnT = Aws::String>
61 SetArn(std::forward<ArnT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetTitle() const { return m_title; }
72 template <typename TitleT = Aws::String>
73 void SetTitle(TitleT&& value) {
74 m_titleHasBeenSet = true;
75 m_title = std::forward<TitleT>(value);
76 }
77 template <typename TitleT = Aws::String>
78 GetEngagementResult& WithTitle(TitleT&& value) {
79 SetTitle(std::forward<TitleT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetDescription() const { return m_description; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 GetEngagementResult& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
109 template <typename CreatedAtT = Aws::Utils::DateTime>
110 void SetCreatedAt(CreatedAtT&& value) {
111 m_createdAtHasBeenSet = true;
112 m_createdAt = std::forward<CreatedAtT>(value);
113 }
114 template <typename CreatedAtT = Aws::Utils::DateTime>
115 GetEngagementResult& WithCreatedAt(CreatedAtT&& value) {
116 SetCreatedAt(std::forward<CreatedAtT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
127 template <typename CreatedByT = Aws::String>
128 void SetCreatedBy(CreatedByT&& value) {
129 m_createdByHasBeenSet = true;
130 m_createdBy = std::forward<CreatedByT>(value);
131 }
132 template <typename CreatedByT = Aws::String>
133 GetEngagementResult& WithCreatedBy(CreatedByT&& value) {
134 SetCreatedBy(std::forward<CreatedByT>(value));
135 return *this;
136 }
138
140
145 inline int GetMemberCount() const { return m_memberCount; }
146 inline void SetMemberCount(int value) {
147 m_memberCountHasBeenSet = true;
148 m_memberCount = value;
149 }
151 SetMemberCount(value);
152 return *this;
153 }
155
157
162 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
163 template <typename ModifiedAtT = Aws::Utils::DateTime>
164 void SetModifiedAt(ModifiedAtT&& value) {
165 m_modifiedAtHasBeenSet = true;
166 m_modifiedAt = std::forward<ModifiedAtT>(value);
167 }
168 template <typename ModifiedAtT = Aws::Utils::DateTime>
169 GetEngagementResult& WithModifiedAt(ModifiedAtT&& value) {
170 SetModifiedAt(std::forward<ModifiedAtT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetModifiedBy() const { return m_modifiedBy; }
181 template <typename ModifiedByT = Aws::String>
182 void SetModifiedBy(ModifiedByT&& value) {
183 m_modifiedByHasBeenSet = true;
184 m_modifiedBy = std::forward<ModifiedByT>(value);
185 }
186 template <typename ModifiedByT = Aws::String>
187 GetEngagementResult& WithModifiedBy(ModifiedByT&& value) {
188 SetModifiedBy(std::forward<ModifiedByT>(value));
189 return *this;
190 }
192
194
199 inline const Aws::Vector<EngagementContextDetails>& GetContexts() const { return m_contexts; }
200 template <typename ContextsT = Aws::Vector<EngagementContextDetails>>
201 void SetContexts(ContextsT&& value) {
202 m_contextsHasBeenSet = true;
203 m_contexts = std::forward<ContextsT>(value);
204 }
205 template <typename ContextsT = Aws::Vector<EngagementContextDetails>>
206 GetEngagementResult& WithContexts(ContextsT&& value) {
207 SetContexts(std::forward<ContextsT>(value));
208 return *this;
209 }
210 template <typename ContextsT = EngagementContextDetails>
211 GetEngagementResult& AddContexts(ContextsT&& value) {
212 m_contextsHasBeenSet = true;
213 m_contexts.emplace_back(std::forward<ContextsT>(value));
214 return *this;
215 }
217
219
220 inline const Aws::String& GetRequestId() const { return m_requestId; }
221 template <typename RequestIdT = Aws::String>
222 void SetRequestId(RequestIdT&& value) {
223 m_requestIdHasBeenSet = true;
224 m_requestId = std::forward<RequestIdT>(value);
225 }
226 template <typename RequestIdT = Aws::String>
227 GetEngagementResult& WithRequestId(RequestIdT&& value) {
228 SetRequestId(std::forward<RequestIdT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_id;
234
235 Aws::String m_arn;
236
237 Aws::String m_title;
238
239 Aws::String m_description;
240
241 Aws::Utils::DateTime m_createdAt{};
242
243 Aws::String m_createdBy;
244
245 int m_memberCount{0};
246
247 Aws::Utils::DateTime m_modifiedAt{};
248
249 Aws::String m_modifiedBy;
250
252
253 Aws::String m_requestId;
254 bool m_idHasBeenSet = false;
255 bool m_arnHasBeenSet = false;
256 bool m_titleHasBeenSet = false;
257 bool m_descriptionHasBeenSet = false;
258 bool m_createdAtHasBeenSet = false;
259 bool m_createdByHasBeenSet = false;
260 bool m_memberCountHasBeenSet = false;
261 bool m_modifiedAtHasBeenSet = false;
262 bool m_modifiedByHasBeenSet = false;
263 bool m_contextsHasBeenSet = false;
264 bool m_requestIdHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace PartnerCentralSelling
269} // 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