AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateCalculatedAttributeDefinitionRequest.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/AttributeDetails.h>
12#include <aws/customer-profiles/model/Conditions.h>
13#include <aws/customer-profiles/model/Filter.h>
14#include <aws/customer-profiles/model/Statistic.h>
15
16#include <utility>
17
18namespace Aws {
19namespace CustomerProfiles {
20namespace Model {
21
25 public:
26 AWS_CUSTOMERPROFILES_API CreateCalculatedAttributeDefinitionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateCalculatedAttributeDefinition"; }
33
34 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetDomainName() const { return m_domainName; }
41 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
42 template <typename DomainNameT = Aws::String>
43 void SetDomainName(DomainNameT&& value) {
44 m_domainNameHasBeenSet = true;
45 m_domainName = std::forward<DomainNameT>(value);
46 }
47 template <typename DomainNameT = Aws::String>
49 SetDomainName(std::forward<DomainNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCalculatedAttributeName() const { return m_calculatedAttributeName; }
59 inline bool CalculatedAttributeNameHasBeenSet() const { return m_calculatedAttributeNameHasBeenSet; }
60 template <typename CalculatedAttributeNameT = Aws::String>
61 void SetCalculatedAttributeName(CalculatedAttributeNameT&& value) {
62 m_calculatedAttributeNameHasBeenSet = true;
63 m_calculatedAttributeName = std::forward<CalculatedAttributeNameT>(value);
64 }
65 template <typename CalculatedAttributeNameT = Aws::String>
67 SetCalculatedAttributeName(std::forward<CalculatedAttributeNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDisplayName() const { return m_displayName; }
77 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
78 template <typename DisplayNameT = Aws::String>
79 void SetDisplayName(DisplayNameT&& value) {
80 m_displayNameHasBeenSet = true;
81 m_displayName = std::forward<DisplayNameT>(value);
82 }
83 template <typename DisplayNameT = Aws::String>
85 SetDisplayName(std::forward<DisplayNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
113 inline const AttributeDetails& GetAttributeDetails() const { return m_attributeDetails; }
114 inline bool AttributeDetailsHasBeenSet() const { return m_attributeDetailsHasBeenSet; }
115 template <typename AttributeDetailsT = AttributeDetails>
116 void SetAttributeDetails(AttributeDetailsT&& value) {
117 m_attributeDetailsHasBeenSet = true;
118 m_attributeDetails = std::forward<AttributeDetailsT>(value);
119 }
120 template <typename AttributeDetailsT = AttributeDetails>
122 SetAttributeDetails(std::forward<AttributeDetailsT>(value));
123 return *this;
124 }
126
128
132 inline const Conditions& GetConditions() const { return m_conditions; }
133 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
134 template <typename ConditionsT = Conditions>
135 void SetConditions(ConditionsT&& value) {
136 m_conditionsHasBeenSet = true;
137 m_conditions = std::forward<ConditionsT>(value);
138 }
139 template <typename ConditionsT = Conditions>
141 SetConditions(std::forward<ConditionsT>(value));
142 return *this;
143 }
145
147
151 inline const Filter& GetFilter() const { return m_filter; }
152 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
153 template <typename FilterT = Filter>
154 void SetFilter(FilterT&& value) {
155 m_filterHasBeenSet = true;
156 m_filter = std::forward<FilterT>(value);
157 }
158 template <typename FilterT = Filter>
160 SetFilter(std::forward<FilterT>(value));
161 return *this;
162 }
164
166
169 inline Statistic GetStatistic() const { return m_statistic; }
170 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
171 inline void SetStatistic(Statistic value) {
172 m_statisticHasBeenSet = true;
173 m_statistic = value;
174 }
176 SetStatistic(value);
177 return *this;
178 }
180
182
186 inline bool GetUseHistoricalData() const { return m_useHistoricalData; }
187 inline bool UseHistoricalDataHasBeenSet() const { return m_useHistoricalDataHasBeenSet; }
188 inline void SetUseHistoricalData(bool value) {
189 m_useHistoricalDataHasBeenSet = true;
190 m_useHistoricalData = value;
191 }
194 return *this;
195 }
197
199
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
215 CreateCalculatedAttributeDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_domainName;
223
224 Aws::String m_calculatedAttributeName;
225
226 Aws::String m_displayName;
227
228 Aws::String m_description;
229
230 AttributeDetails m_attributeDetails;
231
232 Conditions m_conditions;
233
234 Filter m_filter;
235
236 Statistic m_statistic{Statistic::NOT_SET};
237
238 bool m_useHistoricalData{false};
239
241 bool m_domainNameHasBeenSet = false;
242 bool m_calculatedAttributeNameHasBeenSet = false;
243 bool m_displayNameHasBeenSet = false;
244 bool m_descriptionHasBeenSet = false;
245 bool m_attributeDetailsHasBeenSet = false;
246 bool m_conditionsHasBeenSet = false;
247 bool m_filterHasBeenSet = false;
248 bool m_statisticHasBeenSet = false;
249 bool m_useHistoricalDataHasBeenSet = false;
250 bool m_tagsHasBeenSet = false;
251};
252
253} // namespace Model
254} // namespace CustomerProfiles
255} // namespace Aws
CreateCalculatedAttributeDefinitionRequest & WithDomainName(DomainNameT &&value)
CreateCalculatedAttributeDefinitionRequest & WithConditions(ConditionsT &&value)
CreateCalculatedAttributeDefinitionRequest & WithDisplayName(DisplayNameT &&value)
CreateCalculatedAttributeDefinitionRequest & WithAttributeDetails(AttributeDetailsT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
CreateCalculatedAttributeDefinitionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateCalculatedAttributeDefinitionRequest & WithCalculatedAttributeName(CalculatedAttributeNameT &&value)
CreateCalculatedAttributeDefinitionRequest & WithDescription(DescriptionT &&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