AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDomainRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/AuthMode.h>
11#include <aws/sagemaker/model/UserSettings.h>
12#include <aws/sagemaker/model/DomainSettings.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/AppNetworkAccessType.h>
15#include <aws/sagemaker/model/AppSecurityGroupManagement.h>
16#include <aws/sagemaker/model/TagPropagation.h>
17#include <aws/sagemaker/model/DefaultSpaceSettings.h>
18#include <aws/sagemaker/model/Tag.h>
19#include <utility>
20
21namespace Aws
22{
23namespace SageMaker
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_SAGEMAKER_API CreateDomainRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
40
41 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
42
44
45
47
50 inline const Aws::String& GetDomainName() const{ return m_domainName; }
51 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
52 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
53 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
54 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
55 inline CreateDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
56 inline CreateDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
57 inline CreateDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
59
61
64 inline const AuthMode& GetAuthMode() const{ return m_authMode; }
65 inline bool AuthModeHasBeenSet() const { return m_authModeHasBeenSet; }
66 inline void SetAuthMode(const AuthMode& value) { m_authModeHasBeenSet = true; m_authMode = value; }
67 inline void SetAuthMode(AuthMode&& value) { m_authModeHasBeenSet = true; m_authMode = std::move(value); }
68 inline CreateDomainRequest& WithAuthMode(const AuthMode& value) { SetAuthMode(value); return *this;}
69 inline CreateDomainRequest& WithAuthMode(AuthMode&& value) { SetAuthMode(std::move(value)); return *this;}
71
73
82 inline const UserSettings& GetDefaultUserSettings() const{ return m_defaultUserSettings; }
83 inline bool DefaultUserSettingsHasBeenSet() const { return m_defaultUserSettingsHasBeenSet; }
84 inline void SetDefaultUserSettings(const UserSettings& value) { m_defaultUserSettingsHasBeenSet = true; m_defaultUserSettings = value; }
85 inline void SetDefaultUserSettings(UserSettings&& value) { m_defaultUserSettingsHasBeenSet = true; m_defaultUserSettings = std::move(value); }
87 inline CreateDomainRequest& WithDefaultUserSettings(UserSettings&& value) { SetDefaultUserSettings(std::move(value)); return *this;}
89
91
94 inline const DomainSettings& GetDomainSettings() const{ return m_domainSettings; }
95 inline bool DomainSettingsHasBeenSet() const { return m_domainSettingsHasBeenSet; }
96 inline void SetDomainSettings(const DomainSettings& value) { m_domainSettingsHasBeenSet = true; m_domainSettings = value; }
97 inline void SetDomainSettings(DomainSettings&& value) { m_domainSettingsHasBeenSet = true; m_domainSettings = std::move(value); }
98 inline CreateDomainRequest& WithDomainSettings(const DomainSettings& value) { SetDomainSettings(value); return *this;}
99 inline CreateDomainRequest& WithDomainSettings(DomainSettings&& value) { SetDomainSettings(std::move(value)); return *this;}
101
103
106 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
107 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
108 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
109 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
110 inline CreateDomainRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
111 inline CreateDomainRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
112 inline CreateDomainRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
113 inline CreateDomainRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
114 inline CreateDomainRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
116
118
122 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
123 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
124 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
125 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
126 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
127 inline CreateDomainRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
128 inline CreateDomainRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
129 inline CreateDomainRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
131
133
139 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
142 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
143 inline CreateDomainRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
144 inline CreateDomainRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
145 inline CreateDomainRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
146 inline CreateDomainRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
148
150
158 inline const AppNetworkAccessType& GetAppNetworkAccessType() const{ return m_appNetworkAccessType; }
159 inline bool AppNetworkAccessTypeHasBeenSet() const { return m_appNetworkAccessTypeHasBeenSet; }
160 inline void SetAppNetworkAccessType(const AppNetworkAccessType& value) { m_appNetworkAccessTypeHasBeenSet = true; m_appNetworkAccessType = value; }
161 inline void SetAppNetworkAccessType(AppNetworkAccessType&& value) { m_appNetworkAccessTypeHasBeenSet = true; m_appNetworkAccessType = std::move(value); }
165
167
172 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
173 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
174 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
175 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
176 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
177 inline CreateDomainRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
178 inline CreateDomainRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
179 inline CreateDomainRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
181
183
191 inline const AppSecurityGroupManagement& GetAppSecurityGroupManagement() const{ return m_appSecurityGroupManagement; }
192 inline bool AppSecurityGroupManagementHasBeenSet() const { return m_appSecurityGroupManagementHasBeenSet; }
193 inline void SetAppSecurityGroupManagement(const AppSecurityGroupManagement& value) { m_appSecurityGroupManagementHasBeenSet = true; m_appSecurityGroupManagement = value; }
194 inline void SetAppSecurityGroupManagement(AppSecurityGroupManagement&& value) { m_appSecurityGroupManagementHasBeenSet = true; m_appSecurityGroupManagement = std::move(value); }
198
200
204 inline const TagPropagation& GetTagPropagation() const{ return m_tagPropagation; }
205 inline bool TagPropagationHasBeenSet() const { return m_tagPropagationHasBeenSet; }
206 inline void SetTagPropagation(const TagPropagation& value) { m_tagPropagationHasBeenSet = true; m_tagPropagation = value; }
207 inline void SetTagPropagation(TagPropagation&& value) { m_tagPropagationHasBeenSet = true; m_tagPropagation = std::move(value); }
208 inline CreateDomainRequest& WithTagPropagation(const TagPropagation& value) { SetTagPropagation(value); return *this;}
209 inline CreateDomainRequest& WithTagPropagation(TagPropagation&& value) { SetTagPropagation(std::move(value)); return *this;}
211
213
216 inline const DefaultSpaceSettings& GetDefaultSpaceSettings() const{ return m_defaultSpaceSettings; }
217 inline bool DefaultSpaceSettingsHasBeenSet() const { return m_defaultSpaceSettingsHasBeenSet; }
218 inline void SetDefaultSpaceSettings(const DefaultSpaceSettings& value) { m_defaultSpaceSettingsHasBeenSet = true; m_defaultSpaceSettings = value; }
219 inline void SetDefaultSpaceSettings(DefaultSpaceSettings&& value) { m_defaultSpaceSettingsHasBeenSet = true; m_defaultSpaceSettings = std::move(value); }
223 private:
224
225 Aws::String m_domainName;
226 bool m_domainNameHasBeenSet = false;
227
228 AuthMode m_authMode;
229 bool m_authModeHasBeenSet = false;
230
231 UserSettings m_defaultUserSettings;
232 bool m_defaultUserSettingsHasBeenSet = false;
233
234 DomainSettings m_domainSettings;
235 bool m_domainSettingsHasBeenSet = false;
236
237 Aws::Vector<Aws::String> m_subnetIds;
238 bool m_subnetIdsHasBeenSet = false;
239
240 Aws::String m_vpcId;
241 bool m_vpcIdHasBeenSet = false;
242
243 Aws::Vector<Tag> m_tags;
244 bool m_tagsHasBeenSet = false;
245
246 AppNetworkAccessType m_appNetworkAccessType;
247 bool m_appNetworkAccessTypeHasBeenSet = false;
248
249 Aws::String m_kmsKeyId;
250 bool m_kmsKeyIdHasBeenSet = false;
251
252 AppSecurityGroupManagement m_appSecurityGroupManagement;
253 bool m_appSecurityGroupManagementHasBeenSet = false;
254
255 TagPropagation m_tagPropagation;
256 bool m_tagPropagationHasBeenSet = false;
257
258 DefaultSpaceSettings m_defaultSpaceSettings;
259 bool m_defaultSpaceSettingsHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace SageMaker
264} // namespace Aws
void SetTagPropagation(const TagPropagation &value)
CreateDomainRequest & WithDomainName(const char *value)
const UserSettings & GetDefaultUserSettings() const
CreateDomainRequest & WithTags(const Aws::Vector< Tag > &value)
void SetAppNetworkAccessType(AppNetworkAccessType &&value)
const DomainSettings & GetDomainSettings() const
CreateDomainRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDomainRequest & AddTags(const Tag &value)
CreateDomainRequest & AddSubnetIds(const Aws::String &value)
void SetDefaultUserSettings(UserSettings &&value)
void SetAppSecurityGroupManagement(AppSecurityGroupManagement &&value)
CreateDomainRequest & WithDefaultSpaceSettings(DefaultSpaceSettings &&value)
const DefaultSpaceSettings & GetDefaultSpaceSettings() const
CreateDomainRequest & WithAuthMode(const AuthMode &value)
CreateDomainRequest & AddSubnetIds(Aws::String &&value)
void SetDefaultSpaceSettings(DefaultSpaceSettings &&value)
void SetAppNetworkAccessType(const AppNetworkAccessType &value)
CreateDomainRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateDomainRequest & WithVpcId(const Aws::String &value)
void SetDefaultSpaceSettings(const DefaultSpaceSettings &value)
void SetDefaultUserSettings(const UserSettings &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
const AppSecurityGroupManagement & GetAppSecurityGroupManagement() const
CreateDomainRequest & WithVpcId(const char *value)
CreateDomainRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDomainRequest & WithKmsKeyId(const char *value)
CreateDomainRequest & WithVpcId(Aws::String &&value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
void SetDomainSettings(DomainSettings &&value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateDomainRequest & AddTags(Tag &&value)
CreateDomainRequest & WithAppSecurityGroupManagement(AppSecurityGroupManagement &&value)
CreateDomainRequest & WithAppSecurityGroupManagement(const AppSecurityGroupManagement &value)
void SetAppSecurityGroupManagement(const AppSecurityGroupManagement &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateDomainRequest & WithAppNetworkAccessType(AppNetworkAccessType &&value)
CreateDomainRequest & WithDefaultSpaceSettings(const DefaultSpaceSettings &value)
CreateDomainRequest & WithTagPropagation(TagPropagation &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
CreateDomainRequest & WithTagPropagation(const TagPropagation &value)
CreateDomainRequest & WithKmsKeyId(Aws::String &&value)
const TagPropagation & GetTagPropagation() const
CreateDomainRequest & WithDomainName(Aws::String &&value)
CreateDomainRequest & WithDomainName(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDomainRequest & WithAuthMode(AuthMode &&value)
void SetDomainName(const Aws::String &value)
const AppNetworkAccessType & GetAppNetworkAccessType() const
CreateDomainRequest & WithDomainSettings(DomainSettings &&value)
void SetDomainSettings(const DomainSettings &value)
CreateDomainRequest & AddSubnetIds(const char *value)
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDomainRequest & WithDomainSettings(const DomainSettings &value)
CreateDomainRequest & WithDefaultUserSettings(UserSettings &&value)
CreateDomainRequest & WithKmsKeyId(const Aws::String &value)
CreateDomainRequest & WithAppNetworkAccessType(const AppNetworkAccessType &value)
CreateDomainRequest & WithDefaultUserSettings(const UserSettings &value)
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