AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
UpdateDomainRequest.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 UpdateDomainRequest() = 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 "UpdateDomain"; }
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 UpdateDomainRequest& 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
76 inline const Aws::String& GetDefaultEncryptionKey() const { return m_defaultEncryptionKey; }
77 inline bool DefaultEncryptionKeyHasBeenSet() const { return m_defaultEncryptionKeyHasBeenSet; }
78 template <typename DefaultEncryptionKeyT = Aws::String>
79 void SetDefaultEncryptionKey(DefaultEncryptionKeyT&& value) {
80 m_defaultEncryptionKeyHasBeenSet = true;
81 m_defaultEncryptionKey = std::forward<DefaultEncryptionKeyT>(value);
82 }
83 template <typename DefaultEncryptionKeyT = Aws::String>
84 UpdateDomainRequest& WithDefaultEncryptionKey(DefaultEncryptionKeyT&& value) {
85 SetDefaultEncryptionKey(std::forward<DefaultEncryptionKeyT>(value));
86 return *this;
87 }
89
91
98 inline const Aws::String& GetDeadLetterQueueUrl() const { return m_deadLetterQueueUrl; }
99 inline bool DeadLetterQueueUrlHasBeenSet() const { return m_deadLetterQueueUrlHasBeenSet; }
100 template <typename DeadLetterQueueUrlT = Aws::String>
101 void SetDeadLetterQueueUrl(DeadLetterQueueUrlT&& value) {
102 m_deadLetterQueueUrlHasBeenSet = true;
103 m_deadLetterQueueUrl = std::forward<DeadLetterQueueUrlT>(value);
104 }
105 template <typename DeadLetterQueueUrlT = Aws::String>
106 UpdateDomainRequest& WithDeadLetterQueueUrl(DeadLetterQueueUrlT&& value) {
107 SetDeadLetterQueueUrl(std::forward<DeadLetterQueueUrlT>(value));
108 return *this;
109 }
111
113
125 inline const MatchingRequest& GetMatching() const { return m_matching; }
126 inline bool MatchingHasBeenSet() const { return m_matchingHasBeenSet; }
127 template <typename MatchingT = MatchingRequest>
128 void SetMatching(MatchingT&& value) {
129 m_matchingHasBeenSet = true;
130 m_matching = std::forward<MatchingT>(value);
131 }
132 template <typename MatchingT = MatchingRequest>
133 UpdateDomainRequest& WithMatching(MatchingT&& value) {
134 SetMatching(std::forward<MatchingT>(value));
135 return *this;
136 }
138
140
150 inline const RuleBasedMatchingRequest& GetRuleBasedMatching() const { return m_ruleBasedMatching; }
151 inline bool RuleBasedMatchingHasBeenSet() const { return m_ruleBasedMatchingHasBeenSet; }
152 template <typename RuleBasedMatchingT = RuleBasedMatchingRequest>
153 void SetRuleBasedMatching(RuleBasedMatchingT&& value) {
154 m_ruleBasedMatchingHasBeenSet = true;
155 m_ruleBasedMatching = std::forward<RuleBasedMatchingT>(value);
156 }
157 template <typename RuleBasedMatchingT = RuleBasedMatchingRequest>
158 UpdateDomainRequest& WithRuleBasedMatching(RuleBasedMatchingT&& value) {
159 SetRuleBasedMatching(std::forward<RuleBasedMatchingT>(value));
160 return *this;
161 }
163
165
168 inline const DataStoreRequest& GetDataStore() const { return m_dataStore; }
169 inline bool DataStoreHasBeenSet() const { return m_dataStoreHasBeenSet; }
170 template <typename DataStoreT = DataStoreRequest>
171 void SetDataStore(DataStoreT&& value) {
172 m_dataStoreHasBeenSet = true;
173 m_dataStore = std::forward<DataStoreT>(value);
174 }
175 template <typename DataStoreT = DataStoreRequest>
176 UpdateDomainRequest& WithDataStore(DataStoreT&& value) {
177 SetDataStore(std::forward<DataStoreT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags = std::forward<TagsT>(value);
192 }
193 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 SetTags(std::forward<TagsT>(value));
196 return *this;
197 }
198 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 UpdateDomainRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_domainName;
207
208 int m_defaultExpirationDays{0};
209
210 Aws::String m_defaultEncryptionKey;
211
212 Aws::String m_deadLetterQueueUrl;
213
214 MatchingRequest m_matching;
215
216 RuleBasedMatchingRequest m_ruleBasedMatching;
217
218 DataStoreRequest m_dataStore;
219
221 bool m_domainNameHasBeenSet = false;
222 bool m_defaultExpirationDaysHasBeenSet = false;
223 bool m_defaultEncryptionKeyHasBeenSet = false;
224 bool m_deadLetterQueueUrlHasBeenSet = false;
225 bool m_matchingHasBeenSet = false;
226 bool m_ruleBasedMatchingHasBeenSet = false;
227 bool m_dataStoreHasBeenSet = false;
228 bool m_tagsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace CustomerProfiles
233} // namespace Aws
UpdateDomainRequest & WithMatching(MatchingT &&value)
UpdateDomainRequest & WithDefaultExpirationDays(int value)
void SetRuleBasedMatching(RuleBasedMatchingT &&value)
UpdateDomainRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CUSTOMERPROFILES_API UpdateDomainRequest()=default
const RuleBasedMatchingRequest & GetRuleBasedMatching() const
void SetDeadLetterQueueUrl(DeadLetterQueueUrlT &&value)
UpdateDomainRequest & WithDataStore(DataStoreT &&value)
UpdateDomainRequest & WithDeadLetterQueueUrl(DeadLetterQueueUrlT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
UpdateDomainRequest & WithDefaultEncryptionKey(DefaultEncryptionKeyT &&value)
UpdateDomainRequest & WithRuleBasedMatching(RuleBasedMatchingT &&value)
UpdateDomainRequest & WithDomainName(DomainNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
void SetDefaultEncryptionKey(DefaultEncryptionKeyT &&value)
UpdateDomainRequest & WithTags(TagsT &&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