AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAppRequest.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/AppType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/ResourceSpec.h>
13#include <aws/sagemaker/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API CreateAppRequest();
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_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetDomainId() const{ return m_domainId; }
46 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
47 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
48 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
49 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
50 inline CreateAppRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
51 inline CreateAppRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
52 inline CreateAppRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;}
54
56
60 inline const Aws::String& GetUserProfileName() const{ return m_userProfileName; }
61 inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; }
62 inline void SetUserProfileName(const Aws::String& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = value; }
63 inline void SetUserProfileName(Aws::String&& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = std::move(value); }
64 inline void SetUserProfileName(const char* value) { m_userProfileNameHasBeenSet = true; m_userProfileName.assign(value); }
65 inline CreateAppRequest& WithUserProfileName(const Aws::String& value) { SetUserProfileName(value); return *this;}
66 inline CreateAppRequest& WithUserProfileName(Aws::String&& value) { SetUserProfileName(std::move(value)); return *this;}
67 inline CreateAppRequest& WithUserProfileName(const char* value) { SetUserProfileName(value); return *this;}
69
71
75 inline const Aws::String& GetSpaceName() const{ return m_spaceName; }
76 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
77 inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; }
78 inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); }
79 inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); }
80 inline CreateAppRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;}
81 inline CreateAppRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;}
82 inline CreateAppRequest& WithSpaceName(const char* value) { SetSpaceName(value); return *this;}
84
86
89 inline const AppType& GetAppType() const{ return m_appType; }
90 inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; }
91 inline void SetAppType(const AppType& value) { m_appTypeHasBeenSet = true; m_appType = value; }
92 inline void SetAppType(AppType&& value) { m_appTypeHasBeenSet = true; m_appType = std::move(value); }
93 inline CreateAppRequest& WithAppType(const AppType& value) { SetAppType(value); return *this;}
94 inline CreateAppRequest& WithAppType(AppType&& value) { SetAppType(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetAppName() const{ return m_appName; }
102 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
103 inline void SetAppName(const Aws::String& value) { m_appNameHasBeenSet = true; m_appName = value; }
104 inline void SetAppName(Aws::String&& value) { m_appNameHasBeenSet = true; m_appName = std::move(value); }
105 inline void SetAppName(const char* value) { m_appNameHasBeenSet = true; m_appName.assign(value); }
106 inline CreateAppRequest& WithAppName(const Aws::String& value) { SetAppName(value); return *this;}
107 inline CreateAppRequest& WithAppName(Aws::String&& value) { SetAppName(std::move(value)); return *this;}
108 inline CreateAppRequest& WithAppName(const char* value) { SetAppName(value); return *this;}
110
112
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CreateAppRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline CreateAppRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateAppRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CreateAppRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125
127
137 inline const ResourceSpec& GetResourceSpec() const{ return m_resourceSpec; }
138 inline bool ResourceSpecHasBeenSet() const { return m_resourceSpecHasBeenSet; }
139 inline void SetResourceSpec(const ResourceSpec& value) { m_resourceSpecHasBeenSet = true; m_resourceSpec = value; }
140 inline void SetResourceSpec(ResourceSpec&& value) { m_resourceSpecHasBeenSet = true; m_resourceSpec = std::move(value); }
141 inline CreateAppRequest& WithResourceSpec(const ResourceSpec& value) { SetResourceSpec(value); return *this;}
142 inline CreateAppRequest& WithResourceSpec(ResourceSpec&& value) { SetResourceSpec(std::move(value)); return *this;}
144 private:
145
146 Aws::String m_domainId;
147 bool m_domainIdHasBeenSet = false;
148
149 Aws::String m_userProfileName;
150 bool m_userProfileNameHasBeenSet = false;
151
152 Aws::String m_spaceName;
153 bool m_spaceNameHasBeenSet = false;
154
155 AppType m_appType;
156 bool m_appTypeHasBeenSet = false;
157
158 Aws::String m_appName;
159 bool m_appNameHasBeenSet = false;
160
161 Aws::Vector<Tag> m_tags;
162 bool m_tagsHasBeenSet = false;
163
164 ResourceSpec m_resourceSpec;
165 bool m_resourceSpecHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace SageMaker
170} // namespace Aws
void SetAppName(const Aws::String &value)
void SetResourceSpec(const ResourceSpec &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateAppRequest & WithAppType(const AppType &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateAppRequest & WithDomainId(Aws::String &&value)
void SetResourceSpec(ResourceSpec &&value)
CreateAppRequest & WithSpaceName(const Aws::String &value)
CreateAppRequest & WithSpaceName(const char *value)
const Aws::String & GetDomainId() const
CreateAppRequest & WithAppName(const Aws::String &value)
void SetSpaceName(const Aws::String &value)
const Aws::String & GetAppName() const
virtual const char * GetServiceRequestName() const override
CreateAppRequest & WithUserProfileName(const char *value)
CreateAppRequest & WithUserProfileName(const Aws::String &value)
const Aws::String & GetSpaceName() const
void SetTags(const Aws::Vector< Tag > &value)
CreateAppRequest & WithAppName(const char *value)
CreateAppRequest & AddTags(const Tag &value)
const Aws::String & GetUserProfileName() const
CreateAppRequest & WithUserProfileName(Aws::String &&value)
CreateAppRequest & WithSpaceName(Aws::String &&value)
void SetAppType(const AppType &value)
CreateAppRequest & WithTags(const Aws::Vector< Tag > &value)
void SetDomainId(const Aws::String &value)
CreateAppRequest & WithDomainId(const Aws::String &value)
CreateAppRequest & WithAppType(AppType &&value)
const ResourceSpec & GetResourceSpec() const
CreateAppRequest & AddTags(Tag &&value)
void SetUserProfileName(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAppRequest & WithAppName(Aws::String &&value)
CreateAppRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAppRequest & WithResourceSpec(ResourceSpec &&value)
CreateAppRequest & WithResourceSpec(const ResourceSpec &value)
CreateAppRequest & WithDomainId(const char *value)
const Aws::Vector< Tag > & GetTags() const
void SetUserProfileName(Aws::String &&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