AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCalculatedAttributeDefinitionRequest.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/CustomerProfilesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/model/AttributeDetails.h>
11#include <aws/customer-profiles/model/Conditions.h>
12#include <aws/customer-profiles/model/Filter.h>
13#include <aws/customer-profiles/model/Statistic.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CustomerProfiles
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CUSTOMERPROFILES_API CreateCalculatedAttributeDefinitionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateCalculatedAttributeDefinition"; }
36
37 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetDomainName() const { return m_domainName; }
45 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
46 template<typename DomainNameT = Aws::String>
47 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
48 template<typename DomainNameT = Aws::String>
49 CreateCalculatedAttributeDefinitionRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetCalculatedAttributeName() const { return m_calculatedAttributeName; }
57 inline bool CalculatedAttributeNameHasBeenSet() const { return m_calculatedAttributeNameHasBeenSet; }
58 template<typename CalculatedAttributeNameT = Aws::String>
59 void SetCalculatedAttributeName(CalculatedAttributeNameT&& value) { m_calculatedAttributeNameHasBeenSet = true; m_calculatedAttributeName = std::forward<CalculatedAttributeNameT>(value); }
60 template<typename CalculatedAttributeNameT = Aws::String>
61 CreateCalculatedAttributeDefinitionRequest& WithCalculatedAttributeName(CalculatedAttributeNameT&& value) { SetCalculatedAttributeName(std::forward<CalculatedAttributeNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDisplayName() const { return m_displayName; }
69 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
70 template<typename DisplayNameT = Aws::String>
71 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
72 template<typename DisplayNameT = Aws::String>
73 CreateCalculatedAttributeDefinitionRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template<typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
84 template<typename DescriptionT = Aws::String>
85 CreateCalculatedAttributeDefinitionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
87
89
93 inline const AttributeDetails& GetAttributeDetails() const { return m_attributeDetails; }
94 inline bool AttributeDetailsHasBeenSet() const { return m_attributeDetailsHasBeenSet; }
95 template<typename AttributeDetailsT = AttributeDetails>
96 void SetAttributeDetails(AttributeDetailsT&& value) { m_attributeDetailsHasBeenSet = true; m_attributeDetails = std::forward<AttributeDetailsT>(value); }
97 template<typename AttributeDetailsT = AttributeDetails>
98 CreateCalculatedAttributeDefinitionRequest& WithAttributeDetails(AttributeDetailsT&& value) { SetAttributeDetails(std::forward<AttributeDetailsT>(value)); return *this;}
100
102
106 inline const Conditions& GetConditions() const { return m_conditions; }
107 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
108 template<typename ConditionsT = Conditions>
109 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
110 template<typename ConditionsT = Conditions>
111 CreateCalculatedAttributeDefinitionRequest& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
113
115
119 inline const Filter& GetFilter() const { return m_filter; }
120 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
121 template<typename FilterT = Filter>
122 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
123 template<typename FilterT = Filter>
124 CreateCalculatedAttributeDefinitionRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
126
128
131 inline Statistic GetStatistic() const { return m_statistic; }
132 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
133 inline void SetStatistic(Statistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
136
138
142 inline bool GetUseHistoricalData() const { return m_useHistoricalData; }
143 inline bool UseHistoricalDataHasBeenSet() const { return m_useHistoricalDataHasBeenSet; }
144 inline void SetUseHistoricalData(bool value) { m_useHistoricalDataHasBeenSet = true; m_useHistoricalData = value; }
147
149
152 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
156 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 CreateCalculatedAttributeDefinitionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
158 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
159 CreateCalculatedAttributeDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
160 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
161 }
163 private:
164
165 Aws::String m_domainName;
166 bool m_domainNameHasBeenSet = false;
167
168 Aws::String m_calculatedAttributeName;
169 bool m_calculatedAttributeNameHasBeenSet = false;
170
171 Aws::String m_displayName;
172 bool m_displayNameHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176
177 AttributeDetails m_attributeDetails;
178 bool m_attributeDetailsHasBeenSet = false;
179
180 Conditions m_conditions;
181 bool m_conditionsHasBeenSet = false;
182
183 Filter m_filter;
184 bool m_filterHasBeenSet = false;
185
186 Statistic m_statistic{Statistic::NOT_SET};
187 bool m_statisticHasBeenSet = false;
188
189 bool m_useHistoricalData{false};
190 bool m_useHistoricalDataHasBeenSet = false;
191
193 bool m_tagsHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace CustomerProfiles
198} // 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