AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
48 CreateDomainRequest& WithClientToken(ClientTokenT&& value) {
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 CreateDomainRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetDomainExecutionRole() const { return m_domainExecutionRole; }
79 inline bool DomainExecutionRoleHasBeenSet() const { return m_domainExecutionRoleHasBeenSet; }
80 template <typename DomainExecutionRoleT = Aws::String>
81 void SetDomainExecutionRole(DomainExecutionRoleT&& value) {
82 m_domainExecutionRoleHasBeenSet = true;
83 m_domainExecutionRole = std::forward<DomainExecutionRoleT>(value);
84 }
85 template <typename DomainExecutionRoleT = Aws::String>
86 CreateDomainRequest& WithDomainExecutionRole(DomainExecutionRoleT&& value) {
87 SetDomainExecutionRole(std::forward<DomainExecutionRoleT>(value));
88 return *this;
89 }
91
93
96 inline DomainVersion GetDomainVersion() const { return m_domainVersion; }
97 inline bool DomainVersionHasBeenSet() const { return m_domainVersionHasBeenSet; }
98 inline void SetDomainVersion(DomainVersion value) {
99 m_domainVersionHasBeenSet = true;
100 m_domainVersion = value;
101 }
103 SetDomainVersion(value);
104 return *this;
105 }
107
109
114 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
115 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
116 template <typename KmsKeyIdentifierT = Aws::String>
117 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
118 m_kmsKeyIdentifierHasBeenSet = true;
119 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
120 }
121 template <typename KmsKeyIdentifierT = Aws::String>
122 CreateDomainRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
123 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetName() const { return m_name; }
133 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 template <typename NameT = Aws::String>
135 void SetName(NameT&& value) {
136 m_nameHasBeenSet = true;
137 m_name = std::forward<NameT>(value);
138 }
139 template <typename NameT = Aws::String>
141 SetName(std::forward<NameT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
151 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
152 template <typename ServiceRoleT = Aws::String>
153 void SetServiceRole(ServiceRoleT&& value) {
154 m_serviceRoleHasBeenSet = true;
155 m_serviceRole = std::forward<ServiceRoleT>(value);
156 }
157 template <typename ServiceRoleT = Aws::String>
158 CreateDomainRequest& WithServiceRole(ServiceRoleT&& value) {
159 SetServiceRole(std::forward<ServiceRoleT>(value));
160 return *this;
161 }
163
165
168 inline const SingleSignOn& GetSingleSignOn() const { return m_singleSignOn; }
169 inline bool SingleSignOnHasBeenSet() const { return m_singleSignOnHasBeenSet; }
170 template <typename SingleSignOnT = SingleSignOn>
171 void SetSingleSignOn(SingleSignOnT&& value) {
172 m_singleSignOnHasBeenSet = true;
173 m_singleSignOn = std::forward<SingleSignOnT>(value);
174 }
175 template <typename SingleSignOnT = SingleSignOn>
176 CreateDomainRequest& WithSingleSignOn(SingleSignOnT&& value) {
177 SetSingleSignOn(std::forward<SingleSignOnT>(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 CreateDomainRequest& 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:
207 bool m_clientTokenHasBeenSet = true;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 Aws::String m_domainExecutionRole;
213 bool m_domainExecutionRoleHasBeenSet = false;
214
215 DomainVersion m_domainVersion{DomainVersion::NOT_SET};
216 bool m_domainVersionHasBeenSet = false;
217
218 Aws::String m_kmsKeyIdentifier;
219 bool m_kmsKeyIdentifierHasBeenSet = false;
220
221 Aws::String m_name;
222 bool m_nameHasBeenSet = false;
223
224 Aws::String m_serviceRole;
225 bool m_serviceRoleHasBeenSet = false;
226
227 SingleSignOn m_singleSignOn;
228 bool m_singleSignOnHasBeenSet = false;
229
231 bool m_tagsHasBeenSet = false;
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)
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