AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EngagementSummary.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/EngagementContextType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralSelling {
23namespace Model {
24
32 public:
33 AWS_PARTNERCENTRALSELLING_API EngagementSummary() = default;
34 AWS_PARTNERCENTRALSELLING_API EngagementSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API EngagementSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 EngagementSummary& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
68 EngagementSummary& WithId(IdT&& value) {
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTitle() const { return m_title; }
79 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
80 template <typename TitleT = Aws::String>
81 void SetTitle(TitleT&& value) {
82 m_titleHasBeenSet = true;
83 m_title = std::forward<TitleT>(value);
84 }
85 template <typename TitleT = Aws::String>
86 EngagementSummary& WithTitle(TitleT&& value) {
87 SetTitle(std::forward<TitleT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 EngagementSummary& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
115 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
116 template <typename CreatedByT = Aws::String>
117 void SetCreatedBy(CreatedByT&& value) {
118 m_createdByHasBeenSet = true;
119 m_createdBy = std::forward<CreatedByT>(value);
120 }
121 template <typename CreatedByT = Aws::String>
122 EngagementSummary& WithCreatedBy(CreatedByT&& value) {
123 SetCreatedBy(std::forward<CreatedByT>(value));
124 return *this;
125 }
127
129
132 inline int GetMemberCount() const { return m_memberCount; }
133 inline bool MemberCountHasBeenSet() const { return m_memberCountHasBeenSet; }
134 inline void SetMemberCount(int value) {
135 m_memberCountHasBeenSet = true;
136 m_memberCount = value;
137 }
139 SetMemberCount(value);
140 return *this;
141 }
143
145
149 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
150 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
151 template <typename ModifiedAtT = Aws::Utils::DateTime>
152 void SetModifiedAt(ModifiedAtT&& value) {
153 m_modifiedAtHasBeenSet = true;
154 m_modifiedAt = std::forward<ModifiedAtT>(value);
155 }
156 template <typename ModifiedAtT = Aws::Utils::DateTime>
157 EngagementSummary& WithModifiedAt(ModifiedAtT&& value) {
158 SetModifiedAt(std::forward<ModifiedAtT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetModifiedBy() const { return m_modifiedBy; }
169 inline bool ModifiedByHasBeenSet() const { return m_modifiedByHasBeenSet; }
170 template <typename ModifiedByT = Aws::String>
171 void SetModifiedBy(ModifiedByT&& value) {
172 m_modifiedByHasBeenSet = true;
173 m_modifiedBy = std::forward<ModifiedByT>(value);
174 }
175 template <typename ModifiedByT = Aws::String>
176 EngagementSummary& WithModifiedBy(ModifiedByT&& value) {
177 SetModifiedBy(std::forward<ModifiedByT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::Vector<EngagementContextType>& GetContextTypes() const { return m_contextTypes; }
189 inline bool ContextTypesHasBeenSet() const { return m_contextTypesHasBeenSet; }
190 template <typename ContextTypesT = Aws::Vector<EngagementContextType>>
191 void SetContextTypes(ContextTypesT&& value) {
192 m_contextTypesHasBeenSet = true;
193 m_contextTypes = std::forward<ContextTypesT>(value);
194 }
195 template <typename ContextTypesT = Aws::Vector<EngagementContextType>>
196 EngagementSummary& WithContextTypes(ContextTypesT&& value) {
197 SetContextTypes(std::forward<ContextTypesT>(value));
198 return *this;
199 }
201 m_contextTypesHasBeenSet = true;
202 m_contextTypes.push_back(value);
203 return *this;
204 }
206 private:
207 Aws::String m_arn;
208
209 Aws::String m_id;
210
211 Aws::String m_title;
212
213 Aws::Utils::DateTime m_createdAt{};
214
215 Aws::String m_createdBy;
216
217 int m_memberCount{0};
218
219 Aws::Utils::DateTime m_modifiedAt{};
220
221 Aws::String m_modifiedBy;
222
224 bool m_arnHasBeenSet = false;
225 bool m_idHasBeenSet = false;
226 bool m_titleHasBeenSet = false;
227 bool m_createdAtHasBeenSet = false;
228 bool m_createdByHasBeenSet = false;
229 bool m_memberCountHasBeenSet = false;
230 bool m_modifiedAtHasBeenSet = false;
231 bool m_modifiedByHasBeenSet = false;
232 bool m_contextTypesHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace PartnerCentralSelling
237} // namespace Aws
AWS_PARTNERCENTRALSELLING_API EngagementSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
EngagementSummary & WithContextTypes(ContextTypesT &&value)
EngagementSummary & WithModifiedAt(ModifiedAtT &&value)
const Aws::Utils::DateTime & GetModifiedAt() const
EngagementSummary & WithModifiedBy(ModifiedByT &&value)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
EngagementSummary & AddContextTypes(EngagementContextType value)
const Aws::Vector< EngagementContextType > & GetContextTypes() const
EngagementSummary & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_PARTNERCENTRALSELLING_API EngagementSummary()=default
EngagementSummary & WithCreatedBy(CreatedByT &&value)
AWS_PARTNERCENTRALSELLING_API EngagementSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue