AWS SDK for C++  1.9.156
AWS SDK for C++
CreateAppRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace SageMaker
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateApp"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetDomainId() const{ return m_domainId; }
45 
49  inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
50 
54  inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
55 
59  inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
60 
64  inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
65 
69  inline CreateAppRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
70 
74  inline CreateAppRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
75 
79  inline CreateAppRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;}
80 
81 
85  inline const Aws::String& GetUserProfileName() const{ return m_userProfileName; }
86 
90  inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; }
91 
95  inline void SetUserProfileName(const Aws::String& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = value; }
96 
100  inline void SetUserProfileName(Aws::String&& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = std::move(value); }
101 
105  inline void SetUserProfileName(const char* value) { m_userProfileNameHasBeenSet = true; m_userProfileName.assign(value); }
106 
110  inline CreateAppRequest& WithUserProfileName(const Aws::String& value) { SetUserProfileName(value); return *this;}
111 
115  inline CreateAppRequest& WithUserProfileName(Aws::String&& value) { SetUserProfileName(std::move(value)); return *this;}
116 
120  inline CreateAppRequest& WithUserProfileName(const char* value) { SetUserProfileName(value); return *this;}
121 
122 
127  inline const AppType& GetAppType() const{ return m_appType; }
128 
133  inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; }
134 
139  inline void SetAppType(const AppType& value) { m_appTypeHasBeenSet = true; m_appType = value; }
140 
145  inline void SetAppType(AppType&& value) { m_appTypeHasBeenSet = true; m_appType = std::move(value); }
146 
151  inline CreateAppRequest& WithAppType(const AppType& value) { SetAppType(value); return *this;}
152 
157  inline CreateAppRequest& WithAppType(AppType&& value) { SetAppType(std::move(value)); return *this;}
158 
159 
163  inline const Aws::String& GetAppName() const{ return m_appName; }
164 
168  inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
169 
173  inline void SetAppName(const Aws::String& value) { m_appNameHasBeenSet = true; m_appName = value; }
174 
178  inline void SetAppName(Aws::String&& value) { m_appNameHasBeenSet = true; m_appName = std::move(value); }
179 
183  inline void SetAppName(const char* value) { m_appNameHasBeenSet = true; m_appName.assign(value); }
184 
188  inline CreateAppRequest& WithAppName(const Aws::String& value) { SetAppName(value); return *this;}
189 
193  inline CreateAppRequest& WithAppName(Aws::String&& value) { SetAppName(std::move(value)); return *this;}
194 
198  inline CreateAppRequest& WithAppName(const char* value) { SetAppName(value); return *this;}
199 
200 
205  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
206 
211  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 
217  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
218 
223  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
224 
229  inline CreateAppRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
230 
235  inline CreateAppRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
236 
241  inline CreateAppRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
242 
247  inline CreateAppRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
248 
249 
254  inline const ResourceSpec& GetResourceSpec() const{ return m_resourceSpec; }
255 
260  inline bool ResourceSpecHasBeenSet() const { return m_resourceSpecHasBeenSet; }
261 
266  inline void SetResourceSpec(const ResourceSpec& value) { m_resourceSpecHasBeenSet = true; m_resourceSpec = value; }
267 
272  inline void SetResourceSpec(ResourceSpec&& value) { m_resourceSpecHasBeenSet = true; m_resourceSpec = std::move(value); }
273 
278  inline CreateAppRequest& WithResourceSpec(const ResourceSpec& value) { SetResourceSpec(value); return *this;}
279 
284  inline CreateAppRequest& WithResourceSpec(ResourceSpec&& value) { SetResourceSpec(std::move(value)); return *this;}
285 
286  private:
287 
288  Aws::String m_domainId;
289  bool m_domainIdHasBeenSet;
290 
291  Aws::String m_userProfileName;
292  bool m_userProfileNameHasBeenSet;
293 
294  AppType m_appType;
295  bool m_appTypeHasBeenSet;
296 
297  Aws::String m_appName;
298  bool m_appNameHasBeenSet;
299 
300  Aws::Vector<Tag> m_tags;
301  bool m_tagsHasBeenSet;
302 
303  ResourceSpec m_resourceSpec;
304  bool m_resourceSpecHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace SageMaker
309 } // namespace Aws
Aws::SageMaker::Model::CreateAppRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateAppRequest.h:223
Aws::SageMaker::Model::CreateAppRequest
Definition: CreateAppRequest.h:26
Aws::SageMaker::Model::CreateAppRequest::GetUserProfileName
const Aws::String & GetUserProfileName() const
Definition: CreateAppRequest.h:85
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SageMaker::Model::CreateAppRequest::UserProfileNameHasBeenSet
bool UserProfileNameHasBeenSet() const
Definition: CreateAppRequest.h:90
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CreateAppRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAppRequest.h:34
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateAppRequest::WithUserProfileName
CreateAppRequest & WithUserProfileName(const Aws::String &value)
Definition: CreateAppRequest.h:110
Aws::SageMaker::Model::CreateAppRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAppRequest.h:211
Aws::SageMaker::Model::CreateAppRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::CreateAppRequest::SetAppType
void SetAppType(AppType &&value)
Definition: CreateAppRequest.h:145
Aws::SageMaker::Model::CreateAppRequest::SetResourceSpec
void SetResourceSpec(const ResourceSpec &value)
Definition: CreateAppRequest.h:266
Aws::SageMaker::Model::CreateAppRequest::WithUserProfileName
CreateAppRequest & WithUserProfileName(const char *value)
Definition: CreateAppRequest.h:120
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateAppRequest::SetAppName
void SetAppName(Aws::String &&value)
Definition: CreateAppRequest.h:178
Aws::SageMaker::Model::CreateAppRequest::WithDomainId
CreateAppRequest & WithDomainId(const char *value)
Definition: CreateAppRequest.h:79
Aws::SageMaker::Model::AppType
AppType
Definition: AppType.h:17
Aws::SageMaker::Model::CreateAppRequest::SetDomainId
void SetDomainId(const char *value)
Definition: CreateAppRequest.h:64
Aws::SageMaker::Model::CreateAppRequest::WithAppType
CreateAppRequest & WithAppType(AppType &&value)
Definition: CreateAppRequest.h:157
Aws::SageMaker::Model::CreateAppRequest::SetDomainId
void SetDomainId(Aws::String &&value)
Definition: CreateAppRequest.h:59
Aws::SageMaker::Model::CreateAppRequest::WithAppName
CreateAppRequest & WithAppName(const char *value)
Definition: CreateAppRequest.h:198
Aws::SageMaker::Model::CreateAppRequest::WithResourceSpec
CreateAppRequest & WithResourceSpec(const ResourceSpec &value)
Definition: CreateAppRequest.h:278
Aws::SageMaker::Model::CreateAppRequest::SetAppType
void SetAppType(const AppType &value)
Definition: CreateAppRequest.h:139
Aws::SageMaker::Model::CreateAppRequest::SetUserProfileName
void SetUserProfileName(const char *value)
Definition: CreateAppRequest.h:105
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AppType.h
Aws::SageMaker::Model::ResourceSpec
Definition: ResourceSpec.h:34
Aws::SageMaker::Model::CreateAppRequest::WithUserProfileName
CreateAppRequest & WithUserProfileName(Aws::String &&value)
Definition: CreateAppRequest.h:115
Aws::SageMaker::Model::CreateAppRequest::AppNameHasBeenSet
bool AppNameHasBeenSet() const
Definition: CreateAppRequest.h:168
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::CreateAppRequest::WithAppName
CreateAppRequest & WithAppName(Aws::String &&value)
Definition: CreateAppRequest.h:193
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateAppRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateAppRequest.h:217
Aws::SageMaker::Model::CreateAppRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateAppRequest.h:205
Aws::SageMaker::Model::CreateAppRequest::WithAppName
CreateAppRequest & WithAppName(const Aws::String &value)
Definition: CreateAppRequest.h:188
Aws::SageMaker::Model::CreateAppRequest::WithTags
CreateAppRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateAppRequest.h:229
Aws::SageMaker::Model::CreateAppRequest::SetUserProfileName
void SetUserProfileName(Aws::String &&value)
Definition: CreateAppRequest.h:100
Aws::SageMaker::Model::CreateAppRequest::SetUserProfileName
void SetUserProfileName(const Aws::String &value)
Definition: CreateAppRequest.h:95
Aws::SageMaker::Model::CreateAppRequest::GetAppType
const AppType & GetAppType() const
Definition: CreateAppRequest.h:127
Aws::SageMaker::Model::CreateAppRequest::SetResourceSpec
void SetResourceSpec(ResourceSpec &&value)
Definition: CreateAppRequest.h:272
AWSString.h
Aws::SageMaker::Model::CreateAppRequest::DomainIdHasBeenSet
bool DomainIdHasBeenSet() const
Definition: CreateAppRequest.h:49
Tag.h
Aws::SageMaker::Model::CreateAppRequest::SetAppName
void SetAppName(const char *value)
Definition: CreateAppRequest.h:183
Aws::SageMaker::Model::CreateAppRequest::WithTags
CreateAppRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateAppRequest.h:235
Aws::SageMaker::Model::CreateAppRequest::GetResourceSpec
const ResourceSpec & GetResourceSpec() const
Definition: CreateAppRequest.h:254
Aws::SageMaker::Model::CreateAppRequest::WithDomainId
CreateAppRequest & WithDomainId(Aws::String &&value)
Definition: CreateAppRequest.h:74
Aws::SageMaker::Model::CreateAppRequest::CreateAppRequest
CreateAppRequest()
Aws::SageMaker::Model::CreateAppRequest::GetDomainId
const Aws::String & GetDomainId() const
Definition: CreateAppRequest.h:44
Aws::SageMaker::Model::CreateAppRequest::WithDomainId
CreateAppRequest & WithDomainId(const Aws::String &value)
Definition: CreateAppRequest.h:69
Aws::SageMaker::Model::CreateAppRequest::AddTags
CreateAppRequest & AddTags(Tag &&value)
Definition: CreateAppRequest.h:247
Aws::SageMaker::Model::CreateAppRequest::SetAppName
void SetAppName(const Aws::String &value)
Definition: CreateAppRequest.h:173
Aws::SageMaker::Model::CreateAppRequest::AddTags
CreateAppRequest & AddTags(const Tag &value)
Definition: CreateAppRequest.h:241
Aws::SageMaker::Model::CreateAppRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::CreateAppRequest::GetAppName
const Aws::String & GetAppName() const
Definition: CreateAppRequest.h:163
SageMakerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateAppRequest::ResourceSpecHasBeenSet
bool ResourceSpecHasBeenSet() const
Definition: CreateAppRequest.h:260
Aws::SageMaker::Model::CreateAppRequest::SetDomainId
void SetDomainId(const Aws::String &value)
Definition: CreateAppRequest.h:54
Aws::SageMaker::Model::CreateAppRequest::WithAppType
CreateAppRequest & WithAppType(const AppType &value)
Definition: CreateAppRequest.h:151
ResourceSpec.h
Aws::SageMaker::Model::CreateAppRequest::WithResourceSpec
CreateAppRequest & WithResourceSpec(ResourceSpec &&value)
Definition: CreateAppRequest.h:284
Aws::SageMaker::Model::CreateAppRequest::AppTypeHasBeenSet
bool AppTypeHasBeenSet() const
Definition: CreateAppRequest.h:133