AWS SDK for C++

AWS SDK for C++ Version 1.11.813

Loading...
Searching...
No Matches
CreateDomainRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/AppNetworkAccessType.h>
12#include <aws/sagemaker/model/AppSecurityGroupManagement.h>
13#include <aws/sagemaker/model/AuthMode.h>
14#include <aws/sagemaker/model/DefaultSpaceSettings.h>
15#include <aws/sagemaker/model/DomainSettings.h>
16#include <aws/sagemaker/model/HomeEfsFileSystemCreation.h>
17#include <aws/sagemaker/model/Tag.h>
18#include <aws/sagemaker/model/TagPropagation.h>
19#include <aws/sagemaker/model/UserSettings.h>
20
21#include <utility>
22
23namespace Aws {
24namespace SageMaker {
25namespace Model {
26
30 public:
31 AWS_SAGEMAKER_API CreateDomainRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
38
39 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
40
42
44
47 inline const Aws::String& GetDomainName() const { return m_domainName; }
48 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
49 template <typename DomainNameT = Aws::String>
50 void SetDomainName(DomainNameT&& value) {
51 m_domainNameHasBeenSet = true;
52 m_domainName = std::forward<DomainNameT>(value);
53 }
54 template <typename DomainNameT = Aws::String>
55 CreateDomainRequest& WithDomainName(DomainNameT&& value) {
56 SetDomainName(std::forward<DomainNameT>(value));
57 return *this;
58 }
60
62
65 inline AuthMode GetAuthMode() const { return m_authMode; }
66 inline bool AuthModeHasBeenSet() const { return m_authModeHasBeenSet; }
67 inline void SetAuthMode(AuthMode value) {
68 m_authModeHasBeenSet = true;
69 m_authMode = value;
70 }
72 SetAuthMode(value);
73 return *this;
74 }
76
78
87 inline const UserSettings& GetDefaultUserSettings() const { return m_defaultUserSettings; }
88 inline bool DefaultUserSettingsHasBeenSet() const { return m_defaultUserSettingsHasBeenSet; }
89 template <typename DefaultUserSettingsT = UserSettings>
90 void SetDefaultUserSettings(DefaultUserSettingsT&& value) {
91 m_defaultUserSettingsHasBeenSet = true;
92 m_defaultUserSettings = std::forward<DefaultUserSettingsT>(value);
93 }
94 template <typename DefaultUserSettingsT = UserSettings>
95 CreateDomainRequest& WithDefaultUserSettings(DefaultUserSettingsT&& value) {
96 SetDefaultUserSettings(std::forward<DefaultUserSettingsT>(value));
97 return *this;
98 }
100
102
105 inline const DomainSettings& GetDomainSettings() const { return m_domainSettings; }
106 inline bool DomainSettingsHasBeenSet() const { return m_domainSettingsHasBeenSet; }
107 template <typename DomainSettingsT = DomainSettings>
108 void SetDomainSettings(DomainSettingsT&& value) {
109 m_domainSettingsHasBeenSet = true;
110 m_domainSettings = std::forward<DomainSettingsT>(value);
111 }
112 template <typename DomainSettingsT = DomainSettings>
113 CreateDomainRequest& WithDomainSettings(DomainSettingsT&& value) {
114 SetDomainSettings(std::forward<DomainSettingsT>(value));
115 return *this;
116 }
118
120
126 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
127 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
128 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
129 void SetSubnetIds(SubnetIdsT&& value) {
130 m_subnetIdsHasBeenSet = true;
131 m_subnetIds = std::forward<SubnetIdsT>(value);
132 }
133 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
134 CreateDomainRequest& WithSubnetIds(SubnetIdsT&& value) {
135 SetSubnetIds(std::forward<SubnetIdsT>(value));
136 return *this;
137 }
138 template <typename SubnetIdsT = Aws::String>
139 CreateDomainRequest& AddSubnetIds(SubnetIdsT&& value) {
140 m_subnetIdsHasBeenSet = true;
141 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
142 return *this;
143 }
145
147
154 inline const Aws::String& GetVpcId() const { return m_vpcId; }
155 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
156 template <typename VpcIdT = Aws::String>
157 void SetVpcId(VpcIdT&& value) {
158 m_vpcIdHasBeenSet = true;
159 m_vpcId = std::forward<VpcIdT>(value);
160 }
161 template <typename VpcIdT = Aws::String>
163 SetVpcId(std::forward<VpcIdT>(value));
164 return *this;
165 }
167
169
175 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 template <typename TagsT = Aws::Vector<Tag>>
178 void SetTags(TagsT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags = std::forward<TagsT>(value);
181 }
182 template <typename TagsT = Aws::Vector<Tag>>
184 SetTags(std::forward<TagsT>(value));
185 return *this;
186 }
187 template <typename TagsT = Tag>
188 CreateDomainRequest& AddTags(TagsT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags.emplace_back(std::forward<TagsT>(value));
191 return *this;
192 }
194
196
204 inline AppNetworkAccessType GetAppNetworkAccessType() const { return m_appNetworkAccessType; }
205 inline bool AppNetworkAccessTypeHasBeenSet() const { return m_appNetworkAccessTypeHasBeenSet; }
207 m_appNetworkAccessTypeHasBeenSet = true;
208 m_appNetworkAccessType = value;
209 }
212 return *this;
213 }
215
217
222 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
223 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
224 template <typename KmsKeyIdT = Aws::String>
225 void SetKmsKeyId(KmsKeyIdT&& value) {
226 m_kmsKeyIdHasBeenSet = true;
227 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
228 }
229 template <typename KmsKeyIdT = Aws::String>
230 CreateDomainRequest& WithKmsKeyId(KmsKeyIdT&& value) {
231 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
232 return *this;
233 }
235
237
245 inline AppSecurityGroupManagement GetAppSecurityGroupManagement() const { return m_appSecurityGroupManagement; }
246 inline bool AppSecurityGroupManagementHasBeenSet() const { return m_appSecurityGroupManagementHasBeenSet; }
248 m_appSecurityGroupManagementHasBeenSet = true;
249 m_appSecurityGroupManagement = value;
250 }
253 return *this;
254 }
256
258
264 inline HomeEfsFileSystemCreation GetHomeEfsFileSystemCreation() const { return m_homeEfsFileSystemCreation; }
265 inline bool HomeEfsFileSystemCreationHasBeenSet() const { return m_homeEfsFileSystemCreationHasBeenSet; }
267 m_homeEfsFileSystemCreationHasBeenSet = true;
268 m_homeEfsFileSystemCreation = value;
269 }
272 return *this;
273 }
275
277
281 inline TagPropagation GetTagPropagation() const { return m_tagPropagation; }
282 inline bool TagPropagationHasBeenSet() const { return m_tagPropagationHasBeenSet; }
284 m_tagPropagationHasBeenSet = true;
285 m_tagPropagation = value;
286 }
288 SetTagPropagation(value);
289 return *this;
290 }
292
294
297 inline const DefaultSpaceSettings& GetDefaultSpaceSettings() const { return m_defaultSpaceSettings; }
298 inline bool DefaultSpaceSettingsHasBeenSet() const { return m_defaultSpaceSettingsHasBeenSet; }
299 template <typename DefaultSpaceSettingsT = DefaultSpaceSettings>
300 void SetDefaultSpaceSettings(DefaultSpaceSettingsT&& value) {
301 m_defaultSpaceSettingsHasBeenSet = true;
302 m_defaultSpaceSettings = std::forward<DefaultSpaceSettingsT>(value);
303 }
304 template <typename DefaultSpaceSettingsT = DefaultSpaceSettings>
305 CreateDomainRequest& WithDefaultSpaceSettings(DefaultSpaceSettingsT&& value) {
306 SetDefaultSpaceSettings(std::forward<DefaultSpaceSettingsT>(value));
307 return *this;
308 }
310 private:
311 Aws::String m_domainName;
312
313 AuthMode m_authMode{AuthMode::NOT_SET};
314
315 UserSettings m_defaultUserSettings;
316
317 DomainSettings m_domainSettings;
318
319 Aws::Vector<Aws::String> m_subnetIds;
320
321 Aws::String m_vpcId;
322
323 Aws::Vector<Tag> m_tags;
324
326
327 Aws::String m_kmsKeyId;
328
330
332
333 TagPropagation m_tagPropagation{TagPropagation::NOT_SET};
334
335 DefaultSpaceSettings m_defaultSpaceSettings;
336 bool m_domainNameHasBeenSet = false;
337 bool m_authModeHasBeenSet = false;
338 bool m_defaultUserSettingsHasBeenSet = false;
339 bool m_domainSettingsHasBeenSet = false;
340 bool m_subnetIdsHasBeenSet = false;
341 bool m_vpcIdHasBeenSet = false;
342 bool m_tagsHasBeenSet = false;
343 bool m_appNetworkAccessTypeHasBeenSet = false;
344 bool m_kmsKeyIdHasBeenSet = false;
345 bool m_appSecurityGroupManagementHasBeenSet = false;
346 bool m_homeEfsFileSystemCreationHasBeenSet = false;
347 bool m_tagPropagationHasBeenSet = false;
348 bool m_defaultSpaceSettingsHasBeenSet = false;
349};
350
351} // namespace Model
352} // namespace SageMaker
353} // namespace Aws
CreateDomainRequest & AddSubnetIds(SubnetIdsT &&value)
const UserSettings & GetDefaultUserSettings() const
HomeEfsFileSystemCreation GetHomeEfsFileSystemCreation() const
const DomainSettings & GetDomainSettings() const
void SetDomainSettings(DomainSettingsT &&value)
CreateDomainRequest & WithTags(TagsT &&value)
CreateDomainRequest & WithSubnetIds(SubnetIdsT &&value)
void SetHomeEfsFileSystemCreation(HomeEfsFileSystemCreation value)
AppNetworkAccessType GetAppNetworkAccessType() const
CreateDomainRequest & WithAuthMode(AuthMode value)
const DefaultSpaceSettings & GetDefaultSpaceSettings() const
void SetDefaultUserSettings(DefaultUserSettingsT &&value)
CreateDomainRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateDomainRequest & WithDomainName(DomainNameT &&value)
void SetAppNetworkAccessType(AppNetworkAccessType value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetAppSecurityGroupManagement(AppSecurityGroupManagement value)
CreateDomainRequest & WithAppSecurityGroupManagement(AppSecurityGroupManagement value)
CreateDomainRequest & WithVpcId(VpcIdT &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateDomainRequest & WithDefaultUserSettings(DefaultUserSettingsT &&value)
CreateDomainRequest & WithDomainSettings(DomainSettingsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
CreateDomainRequest & AddTags(TagsT &&value)
AWS_SAGEMAKER_API CreateDomainRequest()=default
CreateDomainRequest & WithHomeEfsFileSystemCreation(HomeEfsFileSystemCreation value)
CreateDomainRequest & WithTagPropagation(TagPropagation value)
CreateDomainRequest & WithDefaultSpaceSettings(DefaultSpaceSettingsT &&value)
CreateDomainRequest & WithAppNetworkAccessType(AppNetworkAccessType value)
void SetDefaultSpaceSettings(DefaultSpaceSettingsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AppSecurityGroupManagement GetAppSecurityGroupManagement() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector