AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DomainIdT = Aws::String>
48 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
49 template<typename DomainIdT = Aws::String>
50 CreateAppRequest& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
52
54
58 inline const Aws::String& GetUserProfileName() const { return m_userProfileName; }
59 inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; }
60 template<typename UserProfileNameT = Aws::String>
61 void SetUserProfileName(UserProfileNameT&& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = std::forward<UserProfileNameT>(value); }
62 template<typename UserProfileNameT = Aws::String>
63 CreateAppRequest& WithUserProfileName(UserProfileNameT&& value) { SetUserProfileName(std::forward<UserProfileNameT>(value)); return *this;}
65
67
71 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
72 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
73 template<typename SpaceNameT = Aws::String>
74 void SetSpaceName(SpaceNameT&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::forward<SpaceNameT>(value); }
75 template<typename SpaceNameT = Aws::String>
76 CreateAppRequest& WithSpaceName(SpaceNameT&& value) { SetSpaceName(std::forward<SpaceNameT>(value)); return *this;}
78
80
83 inline AppType GetAppType() const { return m_appType; }
84 inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; }
85 inline void SetAppType(AppType value) { m_appTypeHasBeenSet = true; m_appType = value; }
86 inline CreateAppRequest& WithAppType(AppType value) { SetAppType(value); return *this;}
88
90
93 inline const Aws::String& GetAppName() const { return m_appName; }
94 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
95 template<typename AppNameT = Aws::String>
96 void SetAppName(AppNameT&& value) { m_appNameHasBeenSet = true; m_appName = std::forward<AppNameT>(value); }
97 template<typename AppNameT = Aws::String>
98 CreateAppRequest& WithAppName(AppNameT&& value) { SetAppName(std::forward<AppNameT>(value)); return *this;}
100
102
106 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template<typename TagsT = Aws::Vector<Tag>>
109 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
110 template<typename TagsT = Aws::Vector<Tag>>
111 CreateAppRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
112 template<typename TagsT = Tag>
113 CreateAppRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
115
117
127 inline const ResourceSpec& GetResourceSpec() const { return m_resourceSpec; }
128 inline bool ResourceSpecHasBeenSet() const { return m_resourceSpecHasBeenSet; }
129 template<typename ResourceSpecT = ResourceSpec>
130 void SetResourceSpec(ResourceSpecT&& value) { m_resourceSpecHasBeenSet = true; m_resourceSpec = std::forward<ResourceSpecT>(value); }
131 template<typename ResourceSpecT = ResourceSpec>
132 CreateAppRequest& WithResourceSpec(ResourceSpecT&& value) { SetResourceSpec(std::forward<ResourceSpecT>(value)); return *this;}
134
136
139 inline bool GetRecoveryMode() const { return m_recoveryMode; }
140 inline bool RecoveryModeHasBeenSet() const { return m_recoveryModeHasBeenSet; }
141 inline void SetRecoveryMode(bool value) { m_recoveryModeHasBeenSet = true; m_recoveryMode = value; }
142 inline CreateAppRequest& WithRecoveryMode(bool value) { SetRecoveryMode(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{AppType::NOT_SET};
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 bool m_recoveryMode{false};
168 bool m_recoveryModeHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace SageMaker
173} // 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