AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SegmentResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/SegmentDimensions.h>
11#include <aws/pinpoint/model/SegmentGroupList.h>
12#include <aws/pinpoint/model/SegmentImportResource.h>
13#include <aws/pinpoint/model/SegmentType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint {
25namespace Model {
26
34 public:
35 AWS_PINPOINT_API SegmentResponse() = default;
36 AWS_PINPOINT_API SegmentResponse(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
46 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
47 template <typename ApplicationIdT = Aws::String>
48 void SetApplicationId(ApplicationIdT&& value) {
49 m_applicationIdHasBeenSet = true;
50 m_applicationId = std::forward<ApplicationIdT>(value);
51 }
52 template <typename ApplicationIdT = Aws::String>
53 SegmentResponse& WithApplicationId(ApplicationIdT&& value) {
54 SetApplicationId(std::forward<ApplicationIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
71 SegmentResponse& WithArn(ArnT&& value) {
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
82 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
83 template <typename CreationDateT = Aws::String>
84 void SetCreationDate(CreationDateT&& value) {
85 m_creationDateHasBeenSet = true;
86 m_creationDate = std::forward<CreationDateT>(value);
87 }
88 template <typename CreationDateT = Aws::String>
89 SegmentResponse& WithCreationDate(CreationDateT&& value) {
90 SetCreationDate(std::forward<CreationDateT>(value));
91 return *this;
92 }
94
96
99 inline const SegmentDimensions& GetDimensions() const { return m_dimensions; }
100 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
101 template <typename DimensionsT = SegmentDimensions>
102 void SetDimensions(DimensionsT&& value) {
103 m_dimensionsHasBeenSet = true;
104 m_dimensions = std::forward<DimensionsT>(value);
105 }
106 template <typename DimensionsT = SegmentDimensions>
107 SegmentResponse& WithDimensions(DimensionsT&& value) {
108 SetDimensions(std::forward<DimensionsT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetId() const { return m_id; }
118 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
119 template <typename IdT = Aws::String>
120 void SetId(IdT&& value) {
121 m_idHasBeenSet = true;
122 m_id = std::forward<IdT>(value);
123 }
124 template <typename IdT = Aws::String>
125 SegmentResponse& WithId(IdT&& value) {
126 SetId(std::forward<IdT>(value));
127 return *this;
128 }
130
132
135 inline const SegmentImportResource& GetImportDefinition() const { return m_importDefinition; }
136 inline bool ImportDefinitionHasBeenSet() const { return m_importDefinitionHasBeenSet; }
137 template <typename ImportDefinitionT = SegmentImportResource>
138 void SetImportDefinition(ImportDefinitionT&& value) {
139 m_importDefinitionHasBeenSet = true;
140 m_importDefinition = std::forward<ImportDefinitionT>(value);
141 }
142 template <typename ImportDefinitionT = SegmentImportResource>
143 SegmentResponse& WithImportDefinition(ImportDefinitionT&& value) {
144 SetImportDefinition(std::forward<ImportDefinitionT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
154 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
155 template <typename LastModifiedDateT = Aws::String>
156 void SetLastModifiedDate(LastModifiedDateT&& value) {
157 m_lastModifiedDateHasBeenSet = true;
158 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
159 }
160 template <typename LastModifiedDateT = Aws::String>
161 SegmentResponse& WithLastModifiedDate(LastModifiedDateT&& value) {
162 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetName() const { return m_name; }
172 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
173 template <typename NameT = Aws::String>
174 void SetName(NameT&& value) {
175 m_nameHasBeenSet = true;
176 m_name = std::forward<NameT>(value);
177 }
178 template <typename NameT = Aws::String>
179 SegmentResponse& WithName(NameT&& value) {
180 SetName(std::forward<NameT>(value));
181 return *this;
182 }
184
186
191 inline const SegmentGroupList& GetSegmentGroups() const { return m_segmentGroups; }
192 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
193 template <typename SegmentGroupsT = SegmentGroupList>
194 void SetSegmentGroups(SegmentGroupsT&& value) {
195 m_segmentGroupsHasBeenSet = true;
196 m_segmentGroups = std::forward<SegmentGroupsT>(value);
197 }
198 template <typename SegmentGroupsT = SegmentGroupList>
199 SegmentResponse& WithSegmentGroups(SegmentGroupsT&& value) {
200 SetSegmentGroups(std::forward<SegmentGroupsT>(value));
201 return *this;
202 }
204
206
215 inline SegmentType GetSegmentType() const { return m_segmentType; }
216 inline bool SegmentTypeHasBeenSet() const { return m_segmentTypeHasBeenSet; }
217 inline void SetSegmentType(SegmentType value) {
218 m_segmentTypeHasBeenSet = true;
219 m_segmentType = value;
220 }
222 SetSegmentType(value);
223 return *this;
224 }
226
228
233 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
241 SegmentResponse& WithTags(TagsT&& value) {
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
246 SegmentResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
247 m_tagsHasBeenSet = true;
248 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
249 return *this;
250 }
252
254
257 inline int GetVersion() const { return m_version; }
258 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
259 inline void SetVersion(int value) {
260 m_versionHasBeenSet = true;
261 m_version = value;
262 }
263 inline SegmentResponse& WithVersion(int value) {
264 SetVersion(value);
265 return *this;
266 }
268 private:
269 Aws::String m_applicationId;
270
271 Aws::String m_arn;
272
273 Aws::String m_creationDate;
274
275 SegmentDimensions m_dimensions;
276
277 Aws::String m_id;
278
279 SegmentImportResource m_importDefinition;
280
281 Aws::String m_lastModifiedDate;
282
283 Aws::String m_name;
284
285 SegmentGroupList m_segmentGroups;
286
287 SegmentType m_segmentType{SegmentType::NOT_SET};
288
290
291 int m_version{0};
292 bool m_applicationIdHasBeenSet = false;
293 bool m_arnHasBeenSet = false;
294 bool m_creationDateHasBeenSet = false;
295 bool m_dimensionsHasBeenSet = false;
296 bool m_idHasBeenSet = false;
297 bool m_importDefinitionHasBeenSet = false;
298 bool m_lastModifiedDateHasBeenSet = false;
299 bool m_nameHasBeenSet = false;
300 bool m_segmentGroupsHasBeenSet = false;
301 bool m_segmentTypeHasBeenSet = false;
302 bool m_tagsHasBeenSet = false;
303 bool m_versionHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace Pinpoint
308} // namespace Aws
SegmentResponse & WithDimensions(DimensionsT &&value)
AWS_PINPOINT_API SegmentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetApplicationId() const
SegmentResponse & WithImportDefinition(ImportDefinitionT &&value)
SegmentResponse & WithTags(TagsT &&value)
SegmentResponse & WithVersion(int value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetApplicationId(ApplicationIdT &&value)
const SegmentGroupList & GetSegmentGroups() const
SegmentResponse & WithName(NameT &&value)
SegmentResponse & WithCreationDate(CreationDateT &&value)
void SetCreationDate(CreationDateT &&value)
SegmentResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
SegmentResponse & WithLastModifiedDate(LastModifiedDateT &&value)
SegmentResponse & WithApplicationId(ApplicationIdT &&value)
SegmentResponse & WithSegmentType(SegmentType value)
SegmentResponse & WithArn(ArnT &&value)
const Aws::String & GetCreationDate() const
AWS_PINPOINT_API SegmentResponse(Aws::Utils::Json::JsonView jsonValue)
const SegmentImportResource & GetImportDefinition() const
const Aws::String & GetId() const
void SetDimensions(DimensionsT &&value)
AWS_PINPOINT_API SegmentResponse()=default
const Aws::String & GetArn() const
const Aws::String & GetLastModifiedDate() const
SegmentResponse & WithSegmentGroups(SegmentGroupsT &&value)
void SetImportDefinition(ImportDefinitionT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
SegmentResponse & WithId(IdT &&value)
const Aws::String & GetName() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSegmentGroups(SegmentGroupsT &&value)
const SegmentDimensions & GetDimensions() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue