AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ApplicationIdT = Aws::String>
54 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
55 template<typename ApplicationIdT = Aws::String>
56 SegmentResponse& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
67 template<typename ArnT = Aws::String>
68 SegmentResponse& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
70
72
75 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
76 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
77 template<typename CreationDateT = Aws::String>
78 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
79 template<typename CreationDateT = Aws::String>
80 SegmentResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
82
84
87 inline const SegmentDimensions& GetDimensions() const { return m_dimensions; }
88 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
89 template<typename DimensionsT = SegmentDimensions>
90 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
91 template<typename DimensionsT = SegmentDimensions>
92 SegmentResponse& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
94
96
99 inline const Aws::String& GetId() const { return m_id; }
100 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
101 template<typename IdT = Aws::String>
102 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
103 template<typename IdT = Aws::String>
104 SegmentResponse& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
106
108
111 inline const SegmentImportResource& GetImportDefinition() const { return m_importDefinition; }
112 inline bool ImportDefinitionHasBeenSet() const { return m_importDefinitionHasBeenSet; }
113 template<typename ImportDefinitionT = SegmentImportResource>
114 void SetImportDefinition(ImportDefinitionT&& value) { m_importDefinitionHasBeenSet = true; m_importDefinition = std::forward<ImportDefinitionT>(value); }
115 template<typename ImportDefinitionT = SegmentImportResource>
116 SegmentResponse& WithImportDefinition(ImportDefinitionT&& value) { SetImportDefinition(std::forward<ImportDefinitionT>(value)); return *this;}
118
120
123 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
124 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
125 template<typename LastModifiedDateT = Aws::String>
126 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
127 template<typename LastModifiedDateT = Aws::String>
128 SegmentResponse& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
130
132
135 inline const Aws::String& GetName() const { return m_name; }
136 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 template<typename NameT = Aws::String>
138 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
139 template<typename NameT = Aws::String>
140 SegmentResponse& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
142
144
149 inline const SegmentGroupList& GetSegmentGroups() const { return m_segmentGroups; }
150 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
151 template<typename SegmentGroupsT = SegmentGroupList>
152 void SetSegmentGroups(SegmentGroupsT&& value) { m_segmentGroupsHasBeenSet = true; m_segmentGroups = std::forward<SegmentGroupsT>(value); }
153 template<typename SegmentGroupsT = SegmentGroupList>
154 SegmentResponse& WithSegmentGroups(SegmentGroupsT&& value) { SetSegmentGroups(std::forward<SegmentGroupsT>(value)); return *this;}
156
158
167 inline SegmentType GetSegmentType() const { return m_segmentType; }
168 inline bool SegmentTypeHasBeenSet() const { return m_segmentTypeHasBeenSet; }
169 inline void SetSegmentType(SegmentType value) { m_segmentTypeHasBeenSet = true; m_segmentType = value; }
170 inline SegmentResponse& WithSegmentType(SegmentType value) { SetSegmentType(value); return *this;}
172
174
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
183 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
184 SegmentResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
185 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
186 SegmentResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
187 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
188 }
190
192
195 inline int GetVersion() const { return m_version; }
196 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
197 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
198 inline SegmentResponse& WithVersion(int value) { SetVersion(value); return *this;}
200 private:
201
202 Aws::String m_applicationId;
203 bool m_applicationIdHasBeenSet = false;
204
205 Aws::String m_arn;
206 bool m_arnHasBeenSet = false;
207
208 Aws::String m_creationDate;
209 bool m_creationDateHasBeenSet = false;
210
211 SegmentDimensions m_dimensions;
212 bool m_dimensionsHasBeenSet = false;
213
214 Aws::String m_id;
215 bool m_idHasBeenSet = false;
216
217 SegmentImportResource m_importDefinition;
218 bool m_importDefinitionHasBeenSet = false;
219
220 Aws::String m_lastModifiedDate;
221 bool m_lastModifiedDateHasBeenSet = false;
222
223 Aws::String m_name;
224 bool m_nameHasBeenSet = false;
225
226 SegmentGroupList m_segmentGroups;
227 bool m_segmentGroupsHasBeenSet = false;
228
229 SegmentType m_segmentType{SegmentType::NOT_SET};
230 bool m_segmentTypeHasBeenSet = false;
231
233 bool m_tagsHasBeenSet = false;
234
235 int m_version{0};
236 bool m_versionHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace Pinpoint
241} // 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