AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateDomainRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/DomainVersion.h>
13#include <aws/datazone/model/SingleSignOn.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_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_DATAZONE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 CreateDomainRequest& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 CreateDomainRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const SingleSignOn& GetSingleSignOn() const { return m_singleSignOn; }
76 inline bool SingleSignOnHasBeenSet() const { return m_singleSignOnHasBeenSet; }
77 template <typename SingleSignOnT = SingleSignOn>
78 void SetSingleSignOn(SingleSignOnT&& value) {
79 m_singleSignOnHasBeenSet = true;
80 m_singleSignOn = std::forward<SingleSignOnT>(value);
81 }
82 template <typename SingleSignOnT = SingleSignOn>
83 CreateDomainRequest& WithSingleSignOn(SingleSignOnT&& value) {
84 SetSingleSignOn(std::forward<SingleSignOnT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::String& GetDomainExecutionRole() const { return m_domainExecutionRole; }
96 inline bool DomainExecutionRoleHasBeenSet() const { return m_domainExecutionRoleHasBeenSet; }
97 template <typename DomainExecutionRoleT = Aws::String>
98 void SetDomainExecutionRole(DomainExecutionRoleT&& value) {
99 m_domainExecutionRoleHasBeenSet = true;
100 m_domainExecutionRole = std::forward<DomainExecutionRoleT>(value);
101 }
102 template <typename DomainExecutionRoleT = Aws::String>
103 CreateDomainRequest& WithDomainExecutionRole(DomainExecutionRoleT&& value) {
104 SetDomainExecutionRole(std::forward<DomainExecutionRoleT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
116 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
117 template <typename KmsKeyIdentifierT = Aws::String>
118 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
119 m_kmsKeyIdentifierHasBeenSet = true;
120 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
121 }
122 template <typename KmsKeyIdentifierT = Aws::String>
123 CreateDomainRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
124 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
125 return *this;
126 }
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) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
146 CreateDomainRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
147 m_tagsHasBeenSet = true;
148 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
149 return *this;
150 }
152
154
157 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
158 inline bool DomainVersionHasBeenSet() const { return m_domainVersionHasBeenSet; }
159 inline void SetDomainVersion(DomainVersion value) {
160 m_domainVersionHasBeenSet = true;
161 m_domainVersion = value;
162 }
164 SetDomainVersion(value);
165 return *this;
166 }
168
170
173 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
174 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
175 template <typename ServiceRoleT = Aws::String>
176 void SetServiceRole(ServiceRoleT&& value) {
177 m_serviceRoleHasBeenSet = true;
178 m_serviceRole = std::forward<ServiceRoleT>(value);
179 }
180 template <typename ServiceRoleT = Aws::String>
181 CreateDomainRequest& WithServiceRole(ServiceRoleT&& value) {
182 SetServiceRole(std::forward<ServiceRoleT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetClientToken() const { return m_clientToken; }
193 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
194 template <typename ClientTokenT = Aws::String>
195 void SetClientToken(ClientTokenT&& value) {
196 m_clientTokenHasBeenSet = true;
197 m_clientToken = std::forward<ClientTokenT>(value);
198 }
199 template <typename ClientTokenT = Aws::String>
200 CreateDomainRequest& WithClientToken(ClientTokenT&& value) {
201 SetClientToken(std::forward<ClientTokenT>(value));
202 return *this;
203 }
205 private:
206 Aws::String m_name;
207
208 Aws::String m_description;
209
210 SingleSignOn m_singleSignOn;
211
212 Aws::String m_domainExecutionRole;
213
214 Aws::String m_kmsKeyIdentifier;
215
217
218 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
219
220 Aws::String m_serviceRole;
221
223 bool m_nameHasBeenSet = false;
224 bool m_descriptionHasBeenSet = false;
225 bool m_singleSignOnHasBeenSet = false;
226 bool m_domainExecutionRoleHasBeenSet = false;
227 bool m_kmsKeyIdentifierHasBeenSet = false;
228 bool m_tagsHasBeenSet = false;
229 bool m_domainVersionHasBeenSet = false;
230 bool m_serviceRoleHasBeenSet = false;
231 bool m_clientTokenHasBeenSet = true;
232};
233
234} // namespace Model
235} // namespace DataZone
236} // namespace Aws
CreateDomainRequest & WithTags(TagsT &&value)
CreateDomainRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateDomainRequest & WithDomainExecutionRole(DomainExecutionRoleT &&value)
CreateDomainRequest & WithDomainVersion(DomainVersion value)
const Aws::String & GetDomainExecutionRole() const
CreateDomainRequest & WithName(NameT &&value)
const SingleSignOn & GetSingleSignOn() const
CreateDomainRequest & WithSingleSignOn(SingleSignOnT &&value)
CreateDomainRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetKmsKeyIdentifier() const
CreateDomainRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDomainRequest & WithServiceRole(ServiceRoleT &&value)
AWS_DATAZONE_API CreateDomainRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateDomainRequest & WithDescription(DescriptionT &&value)
void SetDomainExecutionRole(DomainExecutionRoleT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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