AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateDomainRequest.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/DataStoreRequest.h>
12#include <aws/customer-profiles/model/MatchingRequest.h>
13#include <aws/customer-profiles/model/RuleBasedMatchingRequest.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CustomerProfiles {
19namespace Model {
20
24 public:
25 AWS_CUSTOMERPROFILES_API CreateDomainRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
32
33 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetDomainName() const { return m_domainName; }
40 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
41 template <typename DomainNameT = Aws::String>
42 void SetDomainName(DomainNameT&& value) {
43 m_domainNameHasBeenSet = true;
44 m_domainName = std::forward<DomainNameT>(value);
45 }
46 template <typename DomainNameT = Aws::String>
47 CreateDomainRequest& WithDomainName(DomainNameT&& value) {
48 SetDomainName(std::forward<DomainNameT>(value));
49 return *this;
50 }
52
54
57 inline int GetDefaultExpirationDays() const { return m_defaultExpirationDays; }
58 inline bool DefaultExpirationDaysHasBeenSet() const { return m_defaultExpirationDaysHasBeenSet; }
59 inline void SetDefaultExpirationDays(int value) {
60 m_defaultExpirationDaysHasBeenSet = true;
61 m_defaultExpirationDays = value;
62 }
65 return *this;
66 }
68
70
75 inline const Aws::String& GetDefaultEncryptionKey() const { return m_defaultEncryptionKey; }
76 inline bool DefaultEncryptionKeyHasBeenSet() const { return m_defaultEncryptionKeyHasBeenSet; }
77 template <typename DefaultEncryptionKeyT = Aws::String>
78 void SetDefaultEncryptionKey(DefaultEncryptionKeyT&& value) {
79 m_defaultEncryptionKeyHasBeenSet = true;
80 m_defaultEncryptionKey = std::forward<DefaultEncryptionKeyT>(value);
81 }
82 template <typename DefaultEncryptionKeyT = Aws::String>
83 CreateDomainRequest& WithDefaultEncryptionKey(DefaultEncryptionKeyT&& value) {
84 SetDefaultEncryptionKey(std::forward<DefaultEncryptionKeyT>(value));
85 return *this;
86 }
88
90
96 inline const Aws::String& GetDeadLetterQueueUrl() const { return m_deadLetterQueueUrl; }
97 inline bool DeadLetterQueueUrlHasBeenSet() const { return m_deadLetterQueueUrlHasBeenSet; }
98 template <typename DeadLetterQueueUrlT = Aws::String>
99 void SetDeadLetterQueueUrl(DeadLetterQueueUrlT&& value) {
100 m_deadLetterQueueUrlHasBeenSet = true;
101 m_deadLetterQueueUrl = std::forward<DeadLetterQueueUrlT>(value);
102 }
103 template <typename DeadLetterQueueUrlT = Aws::String>
104 CreateDomainRequest& WithDeadLetterQueueUrl(DeadLetterQueueUrlT&& value) {
105 SetDeadLetterQueueUrl(std::forward<DeadLetterQueueUrlT>(value));
106 return *this;
107 }
109
111
123 inline const MatchingRequest& GetMatching() const { return m_matching; }
124 inline bool MatchingHasBeenSet() const { return m_matchingHasBeenSet; }
125 template <typename MatchingT = MatchingRequest>
126 void SetMatching(MatchingT&& value) {
127 m_matchingHasBeenSet = true;
128 m_matching = std::forward<MatchingT>(value);
129 }
130 template <typename MatchingT = MatchingRequest>
131 CreateDomainRequest& WithMatching(MatchingT&& value) {
132 SetMatching(std::forward<MatchingT>(value));
133 return *this;
134 }
136
138
148 inline const RuleBasedMatchingRequest& GetRuleBasedMatching() const { return m_ruleBasedMatching; }
149 inline bool RuleBasedMatchingHasBeenSet() const { return m_ruleBasedMatchingHasBeenSet; }
150 template <typename RuleBasedMatchingT = RuleBasedMatchingRequest>
151 void SetRuleBasedMatching(RuleBasedMatchingT&& value) {
152 m_ruleBasedMatchingHasBeenSet = true;
153 m_ruleBasedMatching = std::forward<RuleBasedMatchingT>(value);
154 }
155 template <typename RuleBasedMatchingT = RuleBasedMatchingRequest>
156 CreateDomainRequest& WithRuleBasedMatching(RuleBasedMatchingT&& value) {
157 SetRuleBasedMatching(std::forward<RuleBasedMatchingT>(value));
158 return *this;
159 }
161
163
166 inline const DataStoreRequest& GetDataStore() const { return m_dataStore; }
167 inline bool DataStoreHasBeenSet() const { return m_dataStoreHasBeenSet; }
168 template <typename DataStoreT = DataStoreRequest>
169 void SetDataStore(DataStoreT&& value) {
170 m_dataStoreHasBeenSet = true;
171 m_dataStore = std::forward<DataStoreT>(value);
172 }
173 template <typename DataStoreT = DataStoreRequest>
174 CreateDomainRequest& WithDataStore(DataStoreT&& value) {
175 SetDataStore(std::forward<DataStoreT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
185 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
186 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
187 void SetTags(TagsT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags = std::forward<TagsT>(value);
190 }
191 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
193 SetTags(std::forward<TagsT>(value));
194 return *this;
195 }
196 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
197 CreateDomainRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
198 m_tagsHasBeenSet = true;
199 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_domainName;
205
206 int m_defaultExpirationDays{0};
207
208 Aws::String m_defaultEncryptionKey;
209
210 Aws::String m_deadLetterQueueUrl;
211
212 MatchingRequest m_matching;
213
214 RuleBasedMatchingRequest m_ruleBasedMatching;
215
216 DataStoreRequest m_dataStore;
217
219 bool m_domainNameHasBeenSet = false;
220 bool m_defaultExpirationDaysHasBeenSet = false;
221 bool m_defaultEncryptionKeyHasBeenSet = false;
222 bool m_deadLetterQueueUrlHasBeenSet = false;
223 bool m_matchingHasBeenSet = false;
224 bool m_ruleBasedMatchingHasBeenSet = false;
225 bool m_dataStoreHasBeenSet = false;
226 bool m_tagsHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace CustomerProfiles
231} // namespace Aws
CreateDomainRequest & WithDefaultExpirationDays(int value)
CreateDomainRequest & WithDataStore(DataStoreT &&value)
void SetDefaultEncryptionKey(DefaultEncryptionKeyT &&value)
CreateDomainRequest & WithDefaultEncryptionKey(DefaultEncryptionKeyT &&value)
AWS_CUSTOMERPROFILES_API CreateDomainRequest()=default
CreateDomainRequest & WithRuleBasedMatching(RuleBasedMatchingT &&value)
CreateDomainRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDomainRequest & WithDeadLetterQueueUrl(DeadLetterQueueUrlT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDomainRequest & WithDomainName(DomainNameT &&value)
void SetDeadLetterQueueUrl(DeadLetterQueueUrlT &&value)
const RuleBasedMatchingRequest & GetRuleBasedMatching() const
CreateDomainRequest & WithTags(TagsT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
CreateDomainRequest & WithMatching(MatchingT &&value)
void SetRuleBasedMatching(RuleBasedMatchingT &&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