AWS SDK for C++

AWS SDK for C++ Version 1.11.798

Loading...
Searching...
No Matches
CreateSegmentDefinitionRequest.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/customer-profiles/CustomerProfilesRequest.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/SegmentGroup.h>
12#include <aws/customer-profiles/model/SegmentSort.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CustomerProfiles {
18namespace Model {
19
23 public:
24 AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateSegmentDefinition"; }
31
32 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetDomainName() const { return m_domainName; }
39 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
40 template <typename DomainNameT = Aws::String>
41 void SetDomainName(DomainNameT&& value) {
42 m_domainNameHasBeenSet = true;
43 m_domainName = std::forward<DomainNameT>(value);
44 }
45 template <typename DomainNameT = Aws::String>
47 SetDomainName(std::forward<DomainNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
57 inline bool SegmentDefinitionNameHasBeenSet() const { return m_segmentDefinitionNameHasBeenSet; }
58 template <typename SegmentDefinitionNameT = Aws::String>
59 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) {
60 m_segmentDefinitionNameHasBeenSet = true;
61 m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value);
62 }
63 template <typename SegmentDefinitionNameT = Aws::String>
65 SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDisplayName() const { return m_displayName; }
75 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
76 template <typename DisplayNameT = Aws::String>
77 void SetDisplayName(DisplayNameT&& value) {
78 m_displayNameHasBeenSet = true;
79 m_displayName = std::forward<DisplayNameT>(value);
80 }
81 template <typename DisplayNameT = Aws::String>
83 SetDisplayName(std::forward<DisplayNameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
111 inline const SegmentGroup& GetSegmentGroups() const { return m_segmentGroups; }
112 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
113 template <typename SegmentGroupsT = SegmentGroup>
114 void SetSegmentGroups(SegmentGroupsT&& value) {
115 m_segmentGroupsHasBeenSet = true;
116 m_segmentGroups = std::forward<SegmentGroupsT>(value);
117 }
118 template <typename SegmentGroupsT = SegmentGroup>
120 SetSegmentGroups(std::forward<SegmentGroupsT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetSegmentSqlQuery() const { return m_segmentSqlQuery; }
130 inline bool SegmentSqlQueryHasBeenSet() const { return m_segmentSqlQueryHasBeenSet; }
131 template <typename SegmentSqlQueryT = Aws::String>
132 void SetSegmentSqlQuery(SegmentSqlQueryT&& value) {
133 m_segmentSqlQueryHasBeenSet = true;
134 m_segmentSqlQuery = std::forward<SegmentSqlQueryT>(value);
135 }
136 template <typename SegmentSqlQueryT = Aws::String>
138 SetSegmentSqlQuery(std::forward<SegmentSqlQueryT>(value));
139 return *this;
140 }
142
144
147 inline const SegmentSort& GetSegmentSort() const { return m_segmentSort; }
148 inline bool SegmentSortHasBeenSet() const { return m_segmentSortHasBeenSet; }
149 template <typename SegmentSortT = SegmentSort>
150 void SetSegmentSort(SegmentSortT&& value) {
151 m_segmentSortHasBeenSet = true;
152 m_segmentSort = std::forward<SegmentSortT>(value);
153 }
154 template <typename SegmentSortT = SegmentSort>
156 SetSegmentSort(std::forward<SegmentSortT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 CreateSegmentDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_domainName;
186
187 Aws::String m_segmentDefinitionName;
188
189 Aws::String m_displayName;
190
191 Aws::String m_description;
192
193 SegmentGroup m_segmentGroups;
194
195 Aws::String m_segmentSqlQuery;
196
197 SegmentSort m_segmentSort;
198
200 bool m_domainNameHasBeenSet = false;
201 bool m_segmentDefinitionNameHasBeenSet = false;
202 bool m_displayNameHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204 bool m_segmentGroupsHasBeenSet = false;
205 bool m_segmentSqlQueryHasBeenSet = false;
206 bool m_segmentSortHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace CustomerProfiles
212} // namespace Aws
CreateSegmentDefinitionRequest & WithSegmentSort(SegmentSortT &&value)
CreateSegmentDefinitionRequest & WithDomainName(DomainNameT &&value)
CreateSegmentDefinitionRequest & WithDescription(DescriptionT &&value)
CreateSegmentDefinitionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
CreateSegmentDefinitionRequest & WithSegmentGroups(SegmentGroupsT &&value)
CreateSegmentDefinitionRequest & WithSegmentSqlQuery(SegmentSqlQueryT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSegmentDefinitionRequest & WithSegmentDefinitionName(SegmentDefinitionNameT &&value)
CreateSegmentDefinitionRequest & WithDisplayName(DisplayNameT &&value)
AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionRequest()=default
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