AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateAppRequest.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/AppType.h>
12#include <aws/sagemaker/model/ResourceSpec.h>
13#include <aws/sagemaker/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API CreateAppRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApp"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetDomainId() const { return m_domainId; }
42 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
43 template <typename DomainIdT = Aws::String>
44 void SetDomainId(DomainIdT&& value) {
45 m_domainIdHasBeenSet = true;
46 m_domainId = std::forward<DomainIdT>(value);
47 }
48 template <typename DomainIdT = Aws::String>
49 CreateAppRequest& WithDomainId(DomainIdT&& value) {
50 SetDomainId(std::forward<DomainIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetUserProfileName() const { return m_userProfileName; }
61 inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; }
62 template <typename UserProfileNameT = Aws::String>
63 void SetUserProfileName(UserProfileNameT&& value) {
64 m_userProfileNameHasBeenSet = true;
65 m_userProfileName = std::forward<UserProfileNameT>(value);
66 }
67 template <typename UserProfileNameT = Aws::String>
68 CreateAppRequest& WithUserProfileName(UserProfileNameT&& value) {
69 SetUserProfileName(std::forward<UserProfileNameT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
80 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
81 template <typename SpaceNameT = Aws::String>
82 void SetSpaceName(SpaceNameT&& value) {
83 m_spaceNameHasBeenSet = true;
84 m_spaceName = std::forward<SpaceNameT>(value);
85 }
86 template <typename SpaceNameT = Aws::String>
87 CreateAppRequest& WithSpaceName(SpaceNameT&& value) {
88 SetSpaceName(std::forward<SpaceNameT>(value));
89 return *this;
90 }
92
94
97 inline AppType GetAppType() const { return m_appType; }
98 inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; }
99 inline void SetAppType(AppType value) {
100 m_appTypeHasBeenSet = true;
101 m_appType = value;
102 }
104 SetAppType(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetAppName() const { return m_appName; }
114 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
115 template <typename AppNameT = Aws::String>
116 void SetAppName(AppNameT&& value) {
117 m_appNameHasBeenSet = true;
118 m_appName = std::forward<AppNameT>(value);
119 }
120 template <typename AppNameT = Aws::String>
121 CreateAppRequest& WithAppName(AppNameT&& value) {
122 SetAppName(std::forward<AppNameT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Vector<Tag>>
140 CreateAppRequest& WithTags(TagsT&& value) {
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsT = Tag>
145 CreateAppRequest& AddTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace_back(std::forward<TagsT>(value));
148 return *this;
149 }
151
153
163 inline const ResourceSpec& GetResourceSpec() const { return m_resourceSpec; }
164 inline bool ResourceSpecHasBeenSet() const { return m_resourceSpecHasBeenSet; }
165 template <typename ResourceSpecT = ResourceSpec>
166 void SetResourceSpec(ResourceSpecT&& value) {
167 m_resourceSpecHasBeenSet = true;
168 m_resourceSpec = std::forward<ResourceSpecT>(value);
169 }
170 template <typename ResourceSpecT = ResourceSpec>
171 CreateAppRequest& WithResourceSpec(ResourceSpecT&& value) {
172 SetResourceSpec(std::forward<ResourceSpecT>(value));
173 return *this;
174 }
176
178
181 inline bool GetRecoveryMode() const { return m_recoveryMode; }
182 inline bool RecoveryModeHasBeenSet() const { return m_recoveryModeHasBeenSet; }
183 inline void SetRecoveryMode(bool value) {
184 m_recoveryModeHasBeenSet = true;
185 m_recoveryMode = value;
186 }
187 inline CreateAppRequest& WithRecoveryMode(bool value) {
188 SetRecoveryMode(value);
189 return *this;
190 }
192 private:
193 Aws::String m_domainId;
194
195 Aws::String m_userProfileName;
196
197 Aws::String m_spaceName;
198
199 AppType m_appType{AppType::NOT_SET};
200
201 Aws::String m_appName;
202
203 Aws::Vector<Tag> m_tags;
204
205 ResourceSpec m_resourceSpec;
206
207 bool m_recoveryMode{false};
208 bool m_domainIdHasBeenSet = false;
209 bool m_userProfileNameHasBeenSet = false;
210 bool m_spaceNameHasBeenSet = false;
211 bool m_appTypeHasBeenSet = false;
212 bool m_appNameHasBeenSet = false;
213 bool m_tagsHasBeenSet = false;
214 bool m_resourceSpecHasBeenSet = false;
215 bool m_recoveryModeHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace SageMaker
220} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API CreateAppRequest()=default
CreateAppRequest & WithDomainId(DomainIdT &&value)
void SetUserProfileName(UserProfileNameT &&value)
const Aws::String & GetDomainId() const
CreateAppRequest & WithUserProfileName(UserProfileNameT &&value)
const Aws::String & GetAppName() const
void SetResourceSpec(ResourceSpecT &&value)
virtual const char * GetServiceRequestName() const override
CreateAppRequest & AddTags(TagsT &&value)
const Aws::String & GetSpaceName() const
const Aws::String & GetUserProfileName() const
CreateAppRequest & WithRecoveryMode(bool value)
CreateAppRequest & WithAppName(AppNameT &&value)
const ResourceSpec & GetResourceSpec() const
CreateAppRequest & WithResourceSpec(ResourceSpecT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAppRequest & WithAppType(AppType value)
CreateAppRequest & WithSpaceName(SpaceNameT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateAppRequest & WithTags(TagsT &&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