AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDomainRequest.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/MatchingRequest.h>
11#include <aws/customer-profiles/model/RuleBasedMatchingRequest.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CustomerProfiles
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CUSTOMERPROFILES_API CreateDomainRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
34
35 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetDomainName() const { return m_domainName; }
43 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
44 template<typename DomainNameT = Aws::String>
45 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
46 template<typename DomainNameT = Aws::String>
47 CreateDomainRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
49
51
54 inline int GetDefaultExpirationDays() const { return m_defaultExpirationDays; }
55 inline bool DefaultExpirationDaysHasBeenSet() const { return m_defaultExpirationDaysHasBeenSet; }
56 inline void SetDefaultExpirationDays(int value) { m_defaultExpirationDaysHasBeenSet = true; m_defaultExpirationDays = value; }
59
61
66 inline const Aws::String& GetDefaultEncryptionKey() const { return m_defaultEncryptionKey; }
67 inline bool DefaultEncryptionKeyHasBeenSet() const { return m_defaultEncryptionKeyHasBeenSet; }
68 template<typename DefaultEncryptionKeyT = Aws::String>
69 void SetDefaultEncryptionKey(DefaultEncryptionKeyT&& value) { m_defaultEncryptionKeyHasBeenSet = true; m_defaultEncryptionKey = std::forward<DefaultEncryptionKeyT>(value); }
70 template<typename DefaultEncryptionKeyT = Aws::String>
71 CreateDomainRequest& WithDefaultEncryptionKey(DefaultEncryptionKeyT&& value) { SetDefaultEncryptionKey(std::forward<DefaultEncryptionKeyT>(value)); return *this;}
73
75
81 inline const Aws::String& GetDeadLetterQueueUrl() const { return m_deadLetterQueueUrl; }
82 inline bool DeadLetterQueueUrlHasBeenSet() const { return m_deadLetterQueueUrlHasBeenSet; }
83 template<typename DeadLetterQueueUrlT = Aws::String>
84 void SetDeadLetterQueueUrl(DeadLetterQueueUrlT&& value) { m_deadLetterQueueUrlHasBeenSet = true; m_deadLetterQueueUrl = std::forward<DeadLetterQueueUrlT>(value); }
85 template<typename DeadLetterQueueUrlT = Aws::String>
86 CreateDomainRequest& WithDeadLetterQueueUrl(DeadLetterQueueUrlT&& value) { SetDeadLetterQueueUrl(std::forward<DeadLetterQueueUrlT>(value)); return *this;}
88
90
102 inline const MatchingRequest& GetMatching() const { return m_matching; }
103 inline bool MatchingHasBeenSet() const { return m_matchingHasBeenSet; }
104 template<typename MatchingT = MatchingRequest>
105 void SetMatching(MatchingT&& value) { m_matchingHasBeenSet = true; m_matching = std::forward<MatchingT>(value); }
106 template<typename MatchingT = MatchingRequest>
107 CreateDomainRequest& WithMatching(MatchingT&& value) { SetMatching(std::forward<MatchingT>(value)); return *this;}
109
111
121 inline const RuleBasedMatchingRequest& GetRuleBasedMatching() const { return m_ruleBasedMatching; }
122 inline bool RuleBasedMatchingHasBeenSet() const { return m_ruleBasedMatchingHasBeenSet; }
123 template<typename RuleBasedMatchingT = RuleBasedMatchingRequest>
124 void SetRuleBasedMatching(RuleBasedMatchingT&& value) { m_ruleBasedMatchingHasBeenSet = true; m_ruleBasedMatching = std::forward<RuleBasedMatchingT>(value); }
125 template<typename RuleBasedMatchingT = RuleBasedMatchingRequest>
126 CreateDomainRequest& WithRuleBasedMatching(RuleBasedMatchingT&& value) { SetRuleBasedMatching(std::forward<RuleBasedMatchingT>(value)); return *this;}
128
130
133 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
134 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
135 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
137 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 CreateDomainRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
139 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 CreateDomainRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
142 }
144 private:
145
146 Aws::String m_domainName;
147 bool m_domainNameHasBeenSet = false;
148
149 int m_defaultExpirationDays{0};
150 bool m_defaultExpirationDaysHasBeenSet = false;
151
152 Aws::String m_defaultEncryptionKey;
153 bool m_defaultEncryptionKeyHasBeenSet = false;
154
155 Aws::String m_deadLetterQueueUrl;
156 bool m_deadLetterQueueUrlHasBeenSet = false;
157
158 MatchingRequest m_matching;
159 bool m_matchingHasBeenSet = false;
160
161 RuleBasedMatchingRequest m_ruleBasedMatching;
162 bool m_ruleBasedMatchingHasBeenSet = false;
163
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace CustomerProfiles
170} // namespace Aws
CreateDomainRequest & WithDefaultExpirationDays(int 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