AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
13#include <utility>
14
15namespace Aws {
16namespace CustomerProfiles {
17namespace Model {
18
22 public:
23 AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSegmentDefinition"; }
30
31 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDomainName() const { return m_domainName; }
38 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
39 template <typename DomainNameT = Aws::String>
40 void SetDomainName(DomainNameT&& value) {
41 m_domainNameHasBeenSet = true;
42 m_domainName = std::forward<DomainNameT>(value);
43 }
44 template <typename DomainNameT = Aws::String>
46 SetDomainName(std::forward<DomainNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
56 inline bool SegmentDefinitionNameHasBeenSet() const { return m_segmentDefinitionNameHasBeenSet; }
57 template <typename SegmentDefinitionNameT = Aws::String>
58 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) {
59 m_segmentDefinitionNameHasBeenSet = true;
60 m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value);
61 }
62 template <typename SegmentDefinitionNameT = Aws::String>
64 SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDisplayName() const { return m_displayName; }
74 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
75 template <typename DisplayNameT = Aws::String>
76 void SetDisplayName(DisplayNameT&& value) {
77 m_displayNameHasBeenSet = true;
78 m_displayName = std::forward<DisplayNameT>(value);
79 }
80 template <typename DisplayNameT = Aws::String>
82 SetDisplayName(std::forward<DisplayNameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
110 inline const SegmentGroup& GetSegmentGroups() const { return m_segmentGroups; }
111 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
112 template <typename SegmentGroupsT = SegmentGroup>
113 void SetSegmentGroups(SegmentGroupsT&& value) {
114 m_segmentGroupsHasBeenSet = true;
115 m_segmentGroups = std::forward<SegmentGroupsT>(value);
116 }
117 template <typename SegmentGroupsT = SegmentGroup>
119 SetSegmentGroups(std::forward<SegmentGroupsT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetSegmentSqlQuery() const { return m_segmentSqlQuery; }
129 inline bool SegmentSqlQueryHasBeenSet() const { return m_segmentSqlQueryHasBeenSet; }
130 template <typename SegmentSqlQueryT = Aws::String>
131 void SetSegmentSqlQuery(SegmentSqlQueryT&& value) {
132 m_segmentSqlQueryHasBeenSet = true;
133 m_segmentSqlQuery = std::forward<SegmentSqlQueryT>(value);
134 }
135 template <typename SegmentSqlQueryT = Aws::String>
137 SetSegmentSqlQuery(std::forward<SegmentSqlQueryT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
149 void SetTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags = std::forward<TagsT>(value);
152 }
153 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 SetTags(std::forward<TagsT>(value));
156 return *this;
157 }
158 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
159 CreateSegmentDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_domainName;
167
168 Aws::String m_segmentDefinitionName;
169
170 Aws::String m_displayName;
171
172 Aws::String m_description;
173
174 SegmentGroup m_segmentGroups;
175
176 Aws::String m_segmentSqlQuery;
177
179 bool m_domainNameHasBeenSet = false;
180 bool m_segmentDefinitionNameHasBeenSet = false;
181 bool m_displayNameHasBeenSet = false;
182 bool m_descriptionHasBeenSet = false;
183 bool m_segmentGroupsHasBeenSet = false;
184 bool m_segmentSqlQueryHasBeenSet = false;
185 bool m_tagsHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace CustomerProfiles
190} // namespace Aws
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