AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SegmentResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/model/SegmentDimensions.h>
10#include <aws/pinpoint/model/SegmentImportResource.h>
11#include <aws/pinpoint/model/SegmentGroupList.h>
12#include <aws/pinpoint/model/SegmentType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Pinpoint
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_PINPOINT_API SegmentResponse();
41 AWS_PINPOINT_API SegmentResponse(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
52 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
53 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
54 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
55 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
56 inline SegmentResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
57 inline SegmentResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
58 inline SegmentResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
60
62
65 inline const Aws::String& GetArn() const{ return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
68 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
69 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 inline SegmentResponse& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 inline SegmentResponse& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
72 inline SegmentResponse& WithArn(const char* value) { SetArn(value); return *this;}
74
76
79 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
80 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
81 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
82 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
83 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
84 inline SegmentResponse& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
85 inline SegmentResponse& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
86 inline SegmentResponse& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
88
90
93 inline const SegmentDimensions& GetDimensions() const{ return m_dimensions; }
94 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
95 inline void SetDimensions(const SegmentDimensions& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
96 inline void SetDimensions(SegmentDimensions&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
97 inline SegmentResponse& WithDimensions(const SegmentDimensions& value) { SetDimensions(value); return *this;}
98 inline SegmentResponse& WithDimensions(SegmentDimensions&& value) { SetDimensions(std::move(value)); return *this;}
100
102
105 inline const Aws::String& GetId() const{ return m_id; }
106 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
107 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
108 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
109 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
110 inline SegmentResponse& WithId(const Aws::String& value) { SetId(value); return *this;}
111 inline SegmentResponse& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
112 inline SegmentResponse& WithId(const char* value) { SetId(value); return *this;}
114
116
119 inline const SegmentImportResource& GetImportDefinition() const{ return m_importDefinition; }
120 inline bool ImportDefinitionHasBeenSet() const { return m_importDefinitionHasBeenSet; }
121 inline void SetImportDefinition(const SegmentImportResource& value) { m_importDefinitionHasBeenSet = true; m_importDefinition = value; }
122 inline void SetImportDefinition(SegmentImportResource&& value) { m_importDefinitionHasBeenSet = true; m_importDefinition = std::move(value); }
124 inline SegmentResponse& WithImportDefinition(SegmentImportResource&& value) { SetImportDefinition(std::move(value)); return *this;}
126
128
131 inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; }
132 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
133 inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
134 inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
135 inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); }
136 inline SegmentResponse& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;}
137 inline SegmentResponse& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;}
138 inline SegmentResponse& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;}
140
142
145 inline const Aws::String& GetName() const{ return m_name; }
146 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
147 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
148 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
149 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
150 inline SegmentResponse& WithName(const Aws::String& value) { SetName(value); return *this;}
151 inline SegmentResponse& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
152 inline SegmentResponse& WithName(const char* value) { SetName(value); return *this;}
154
156
161 inline const SegmentGroupList& GetSegmentGroups() const{ return m_segmentGroups; }
162 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
163 inline void SetSegmentGroups(const SegmentGroupList& value) { m_segmentGroupsHasBeenSet = true; m_segmentGroups = value; }
164 inline void SetSegmentGroups(SegmentGroupList&& value) { m_segmentGroupsHasBeenSet = true; m_segmentGroups = std::move(value); }
165 inline SegmentResponse& WithSegmentGroups(const SegmentGroupList& value) { SetSegmentGroups(value); return *this;}
166 inline SegmentResponse& WithSegmentGroups(SegmentGroupList&& value) { SetSegmentGroups(std::move(value)); return *this;}
168
170
179 inline const SegmentType& GetSegmentType() const{ return m_segmentType; }
180 inline bool SegmentTypeHasBeenSet() const { return m_segmentTypeHasBeenSet; }
181 inline void SetSegmentType(const SegmentType& value) { m_segmentTypeHasBeenSet = true; m_segmentType = value; }
182 inline void SetSegmentType(SegmentType&& value) { m_segmentTypeHasBeenSet = true; m_segmentType = std::move(value); }
183 inline SegmentResponse& WithSegmentType(const SegmentType& value) { SetSegmentType(value); return *this;}
184 inline SegmentResponse& WithSegmentType(SegmentType&& value) { SetSegmentType(std::move(value)); return *this;}
186
188
193 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
196 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
197 inline SegmentResponse& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
198 inline SegmentResponse& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
199 inline SegmentResponse& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
200 inline SegmentResponse& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
201 inline SegmentResponse& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
202 inline SegmentResponse& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
203 inline SegmentResponse& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
204 inline SegmentResponse& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
205 inline SegmentResponse& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
207
209
212 inline int GetVersion() const{ return m_version; }
213 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
214 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
215 inline SegmentResponse& WithVersion(int value) { SetVersion(value); return *this;}
217 private:
218
219 Aws::String m_applicationId;
220 bool m_applicationIdHasBeenSet = false;
221
222 Aws::String m_arn;
223 bool m_arnHasBeenSet = false;
224
225 Aws::String m_creationDate;
226 bool m_creationDateHasBeenSet = false;
227
228 SegmentDimensions m_dimensions;
229 bool m_dimensionsHasBeenSet = false;
230
231 Aws::String m_id;
232 bool m_idHasBeenSet = false;
233
234 SegmentImportResource m_importDefinition;
235 bool m_importDefinitionHasBeenSet = false;
236
237 Aws::String m_lastModifiedDate;
238 bool m_lastModifiedDateHasBeenSet = false;
239
240 Aws::String m_name;
241 bool m_nameHasBeenSet = false;
242
243 SegmentGroupList m_segmentGroups;
244 bool m_segmentGroupsHasBeenSet = false;
245
246 SegmentType m_segmentType;
247 bool m_segmentTypeHasBeenSet = false;
248
250 bool m_tagsHasBeenSet = false;
251
252 int m_version;
253 bool m_versionHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace Pinpoint
258} // namespace Aws
void SetApplicationId(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PINPOINT_API SegmentResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
SegmentResponse & WithLastModifiedDate(const char *value)
SegmentResponse & WithName(Aws::String &&value)
const Aws::String & GetApplicationId() const
SegmentResponse & WithDimensions(SegmentDimensions &&value)
SegmentResponse & WithCreationDate(const char *value)
SegmentResponse & WithVersion(int value)
SegmentResponse & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SegmentResponse & WithDimensions(const SegmentDimensions &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
SegmentResponse & WithSegmentType(const SegmentType &value)
const SegmentGroupList & GetSegmentGroups() const
void SetSegmentGroups(SegmentGroupList &&value)
SegmentResponse & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
SegmentResponse & WithLastModifiedDate(Aws::String &&value)
void SetImportDefinition(const SegmentImportResource &value)
SegmentResponse & WithApplicationId(const Aws::String &value)
void SetImportDefinition(SegmentImportResource &&value)
void SetLastModifiedDate(const char *value)
void SetCreationDate(Aws::String &&value)
void SetDimensions(SegmentDimensions &&value)
SegmentResponse & WithName(const Aws::String &value)
SegmentResponse & WithImportDefinition(SegmentImportResource &&value)
SegmentResponse & WithSegmentGroups(SegmentGroupList &&value)
SegmentResponse & WithCreationDate(const Aws::String &value)
SegmentResponse & AddTags(const Aws::String &key, Aws::String &&value)
SegmentResponse & AddTags(Aws::String &&key, const char *value)
SegmentResponse & WithCreationDate(Aws::String &&value)
SegmentResponse & WithApplicationId(Aws::String &&value)
void SetApplicationId(const char *value)
const SegmentType & GetSegmentType() const
SegmentResponse & WithId(const Aws::String &value)
SegmentResponse & WithImportDefinition(const SegmentImportResource &value)
SegmentResponse & WithArn(const char *value)
SegmentResponse & WithLastModifiedDate(const Aws::String &value)
const Aws::String & GetCreationDate() const
SegmentResponse & WithId(const char *value)
AWS_PINPOINT_API SegmentResponse(Aws::Utils::Json::JsonView jsonValue)
SegmentResponse & AddTags(Aws::String &&key, const Aws::String &value)
const SegmentImportResource & GetImportDefinition() const
void SetSegmentGroups(const SegmentGroupList &value)
void SetLastModifiedDate(const Aws::String &value)
const Aws::String & GetId() const
void SetApplicationId(const Aws::String &value)
void SetLastModifiedDate(Aws::String &&value)
void SetSegmentType(SegmentType &&value)
void SetSegmentType(const SegmentType &value)
SegmentResponse & WithArn(const Aws::String &value)
const Aws::String & GetArn() const
const Aws::String & GetLastModifiedDate() const
void SetId(const Aws::String &value)
SegmentResponse & AddTags(const char *key, Aws::String &&value)
SegmentResponse & WithId(Aws::String &&value)
SegmentResponse & WithApplicationId(const char *value)
SegmentResponse & AddTags(const char *key, const char *value)
void SetCreationDate(const Aws::String &value)
SegmentResponse & WithName(const char *value)
void SetName(const Aws::String &value)
const Aws::String & GetName() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
SegmentResponse & AddTags(Aws::String &&key, Aws::String &&value)
void SetCreationDate(const char *value)
SegmentResponse & WithArn(Aws::String &&value)
void SetDimensions(const SegmentDimensions &value)
SegmentResponse & WithSegmentGroups(const SegmentGroupList &value)
void SetArn(const Aws::String &value)
const SegmentDimensions & GetDimensions() const
SegmentResponse & AddTags(const Aws::String &key, const Aws::String &value)
SegmentResponse & WithSegmentType(SegmentType &&value)
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