AWS SDK for C++  1.8.71
AWS SDK for C++
CreateDomainRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace SageMaker
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
45  inline const Aws::String& GetDomainName() const{ return m_domainName; }
46 
50  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
51 
55  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
56 
60  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
61 
65  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
66 
70  inline CreateDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
71 
75  inline CreateDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
76 
80  inline CreateDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
81 
82 
86  inline const AuthMode& GetAuthMode() const{ return m_authMode; }
87 
91  inline bool AuthModeHasBeenSet() const { return m_authModeHasBeenSet; }
92 
96  inline void SetAuthMode(const AuthMode& value) { m_authModeHasBeenSet = true; m_authMode = value; }
97 
101  inline void SetAuthMode(AuthMode&& value) { m_authModeHasBeenSet = true; m_authMode = std::move(value); }
102 
106  inline CreateDomainRequest& WithAuthMode(const AuthMode& value) { SetAuthMode(value); return *this;}
107 
111  inline CreateDomainRequest& WithAuthMode(AuthMode&& value) { SetAuthMode(std::move(value)); return *this;}
112 
113 
117  inline const UserSettings& GetDefaultUserSettings() const{ return m_defaultUserSettings; }
118 
122  inline bool DefaultUserSettingsHasBeenSet() const { return m_defaultUserSettingsHasBeenSet; }
123 
127  inline void SetDefaultUserSettings(const UserSettings& value) { m_defaultUserSettingsHasBeenSet = true; m_defaultUserSettings = value; }
128 
132  inline void SetDefaultUserSettings(UserSettings&& value) { m_defaultUserSettingsHasBeenSet = true; m_defaultUserSettings = std::move(value); }
133 
137  inline CreateDomainRequest& WithDefaultUserSettings(const UserSettings& value) { SetDefaultUserSettings(value); return *this;}
138 
142  inline CreateDomainRequest& WithDefaultUserSettings(UserSettings&& value) { SetDefaultUserSettings(std::move(value)); return *this;}
143 
144 
148  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
149 
153  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
154 
158  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
159 
163  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
164 
168  inline CreateDomainRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
169 
173  inline CreateDomainRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
174 
178  inline CreateDomainRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
179 
183  inline CreateDomainRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
184 
188  inline CreateDomainRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
189 
190 
195  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
196 
201  inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
202 
207  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
208 
213  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
214 
219  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
220 
225  inline CreateDomainRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
226 
231  inline CreateDomainRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
232 
237  inline CreateDomainRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
238 
239 
245  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
246 
252  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
253 
259  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
260 
266  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
267 
273  inline CreateDomainRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
274 
280  inline CreateDomainRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
281 
287  inline CreateDomainRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
288 
294  inline CreateDomainRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
295 
296 
301  inline const Aws::String& GetHomeEfsFileSystemKmsKeyId() const{ return m_homeEfsFileSystemKmsKeyId; }
302 
307  inline bool HomeEfsFileSystemKmsKeyIdHasBeenSet() const { return m_homeEfsFileSystemKmsKeyIdHasBeenSet; }
308 
313  inline void SetHomeEfsFileSystemKmsKeyId(const Aws::String& value) { m_homeEfsFileSystemKmsKeyIdHasBeenSet = true; m_homeEfsFileSystemKmsKeyId = value; }
314 
319  inline void SetHomeEfsFileSystemKmsKeyId(Aws::String&& value) { m_homeEfsFileSystemKmsKeyIdHasBeenSet = true; m_homeEfsFileSystemKmsKeyId = std::move(value); }
320 
325  inline void SetHomeEfsFileSystemKmsKeyId(const char* value) { m_homeEfsFileSystemKmsKeyIdHasBeenSet = true; m_homeEfsFileSystemKmsKeyId.assign(value); }
326 
331  inline CreateDomainRequest& WithHomeEfsFileSystemKmsKeyId(const Aws::String& value) { SetHomeEfsFileSystemKmsKeyId(value); return *this;}
332 
337  inline CreateDomainRequest& WithHomeEfsFileSystemKmsKeyId(Aws::String&& value) { SetHomeEfsFileSystemKmsKeyId(std::move(value)); return *this;}
338 
343  inline CreateDomainRequest& WithHomeEfsFileSystemKmsKeyId(const char* value) { SetHomeEfsFileSystemKmsKeyId(value); return *this;}
344 
345 
354  inline const AppNetworkAccessType& GetAppNetworkAccessType() const{ return m_appNetworkAccessType; }
355 
364  inline bool AppNetworkAccessTypeHasBeenSet() const { return m_appNetworkAccessTypeHasBeenSet; }
365 
374  inline void SetAppNetworkAccessType(const AppNetworkAccessType& value) { m_appNetworkAccessTypeHasBeenSet = true; m_appNetworkAccessType = value; }
375 
384  inline void SetAppNetworkAccessType(AppNetworkAccessType&& value) { m_appNetworkAccessTypeHasBeenSet = true; m_appNetworkAccessType = std::move(value); }
385 
394  inline CreateDomainRequest& WithAppNetworkAccessType(const AppNetworkAccessType& value) { SetAppNetworkAccessType(value); return *this;}
395 
404  inline CreateDomainRequest& WithAppNetworkAccessType(AppNetworkAccessType&& value) { SetAppNetworkAccessType(std::move(value)); return *this;}
405 
406  private:
407 
408  Aws::String m_domainName;
409  bool m_domainNameHasBeenSet;
410 
411  AuthMode m_authMode;
412  bool m_authModeHasBeenSet;
413 
414  UserSettings m_defaultUserSettings;
415  bool m_defaultUserSettingsHasBeenSet;
416 
417  Aws::Vector<Aws::String> m_subnetIds;
418  bool m_subnetIdsHasBeenSet;
419 
420  Aws::String m_vpcId;
421  bool m_vpcIdHasBeenSet;
422 
423  Aws::Vector<Tag> m_tags;
424  bool m_tagsHasBeenSet;
425 
426  Aws::String m_homeEfsFileSystemKmsKeyId;
427  bool m_homeEfsFileSystemKmsKeyIdHasBeenSet;
428 
429  AppNetworkAccessType m_appNetworkAccessType;
430  bool m_appNetworkAccessTypeHasBeenSet;
431  };
432 
433 } // namespace Model
434 } // namespace SageMaker
435 } // namespace Aws
#define AWS_SAGEMAKER_API
CreateDomainRequest & WithVpcId(const Aws::String &value)
const UserSettings & GetDefaultUserSettings() const
void SetSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDomainRequest & WithAuthMode(AuthMode &&value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CreateDomainRequest & WithAppNetworkAccessType(AppNetworkAccessType &&value)
CreateDomainRequest & WithDomainName(Aws::String &&value)
CreateDomainRequest & AddTags(const Tag &value)
CreateDomainRequest & WithVpcId(const char *value)
void SetDefaultUserSettings(const UserSettings &value)
CreateDomainRequest & WithHomeEfsFileSystemKmsKeyId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetHomeEfsFileSystemKmsKeyId(Aws::String &&value)
void SetDomainName(const Aws::String &value)
CreateDomainRequest & WithHomeEfsFileSystemKmsKeyId(const char *value)
void SetAppNetworkAccessType(AppNetworkAccessType &&value)
void SetAppNetworkAccessType(const AppNetworkAccessType &value)
void SetDefaultUserSettings(UserSettings &&value)
virtual const char * GetServiceRequestName() const override
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateDomainRequest & WithVpcId(Aws::String &&value)
const AppNetworkAccessType & GetAppNetworkAccessType() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::String & GetHomeEfsFileSystemKmsKeyId() const
CreateDomainRequest & WithAppNetworkAccessType(const AppNetworkAccessType &value)
CreateDomainRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateDomainRequest & WithDomainName(const Aws::String &value)
CreateDomainRequest & AddSubnetIds(const Aws::String &value)
CreateDomainRequest & AddTags(Tag &&value)
CreateDomainRequest & WithAuthMode(const AuthMode &value)
void SetHomeEfsFileSystemKmsKeyId(const Aws::String &value)
CreateDomainRequest & AddSubnetIds(Aws::String &&value)
CreateDomainRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDomainRequest & WithDefaultUserSettings(UserSettings &&value)
CreateDomainRequest & WithDefaultUserSettings(const UserSettings &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateDomainRequest & AddSubnetIds(const char *value)
CreateDomainRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDomainRequest & WithHomeEfsFileSystemKmsKeyId(const Aws::String &value)
CreateDomainRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
void SetTags(Aws::Vector< Tag > &&value)
CreateDomainRequest & WithDomainName(const char *value)