AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateMlflowAppRequest.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/AccountDefaultStatus.h>
12#include <aws/sagemaker/model/ModelRegistrationMode.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 CreateMlflowAppRequest() = 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 "CreateMlflowApp"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetArtifactStoreUri() const { return m_artifactStoreUri; }
62 inline bool ArtifactStoreUriHasBeenSet() const { return m_artifactStoreUriHasBeenSet; }
63 template <typename ArtifactStoreUriT = Aws::String>
64 void SetArtifactStoreUri(ArtifactStoreUriT&& value) {
65 m_artifactStoreUriHasBeenSet = true;
66 m_artifactStoreUri = std::forward<ArtifactStoreUriT>(value);
67 }
68 template <typename ArtifactStoreUriT = Aws::String>
69 CreateMlflowAppRequest& WithArtifactStoreUri(ArtifactStoreUriT&& value) {
70 SetArtifactStoreUri(std::forward<ArtifactStoreUriT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
82 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
83 template <typename RoleArnT = Aws::String>
84 void SetRoleArn(RoleArnT&& value) {
85 m_roleArnHasBeenSet = true;
86 m_roleArn = std::forward<RoleArnT>(value);
87 }
88 template <typename RoleArnT = Aws::String>
90 SetRoleArn(std::forward<RoleArnT>(value));
91 return *this;
92 }
94
96
104 inline ModelRegistrationMode GetModelRegistrationMode() const { return m_modelRegistrationMode; }
105 inline bool ModelRegistrationModeHasBeenSet() const { return m_modelRegistrationModeHasBeenSet; }
107 m_modelRegistrationModeHasBeenSet = true;
108 m_modelRegistrationMode = value;
109 }
112 return *this;
113 }
115
117
122 inline const Aws::String& GetWeeklyMaintenanceWindowStart() const { return m_weeklyMaintenanceWindowStart; }
123 inline bool WeeklyMaintenanceWindowStartHasBeenSet() const { return m_weeklyMaintenanceWindowStartHasBeenSet; }
124 template <typename WeeklyMaintenanceWindowStartT = Aws::String>
125 void SetWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT&& value) {
126 m_weeklyMaintenanceWindowStartHasBeenSet = true;
127 m_weeklyMaintenanceWindowStart = std::forward<WeeklyMaintenanceWindowStartT>(value);
128 }
129 template <typename WeeklyMaintenanceWindowStartT = Aws::String>
130 CreateMlflowAppRequest& WithWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT&& value) {
131 SetWeeklyMaintenanceWindowStart(std::forward<WeeklyMaintenanceWindowStartT>(value));
132 return *this;
133 }
135
137
140 inline AccountDefaultStatus GetAccountDefaultStatus() const { return m_accountDefaultStatus; }
141 inline bool AccountDefaultStatusHasBeenSet() const { return m_accountDefaultStatusHasBeenSet; }
143 m_accountDefaultStatusHasBeenSet = true;
144 m_accountDefaultStatus = value;
145 }
148 return *this;
149 }
151
153
157 inline const Aws::Vector<Aws::String>& GetDefaultDomainIdList() const { return m_defaultDomainIdList; }
158 inline bool DefaultDomainIdListHasBeenSet() const { return m_defaultDomainIdListHasBeenSet; }
159 template <typename DefaultDomainIdListT = Aws::Vector<Aws::String>>
160 void SetDefaultDomainIdList(DefaultDomainIdListT&& value) {
161 m_defaultDomainIdListHasBeenSet = true;
162 m_defaultDomainIdList = std::forward<DefaultDomainIdListT>(value);
163 }
164 template <typename DefaultDomainIdListT = Aws::Vector<Aws::String>>
165 CreateMlflowAppRequest& WithDefaultDomainIdList(DefaultDomainIdListT&& value) {
166 SetDefaultDomainIdList(std::forward<DefaultDomainIdListT>(value));
167 return *this;
168 }
169 template <typename DefaultDomainIdListT = Aws::String>
170 CreateMlflowAppRequest& AddDefaultDomainIdList(DefaultDomainIdListT&& value) {
171 m_defaultDomainIdListHasBeenSet = true;
172 m_defaultDomainIdList.emplace_back(std::forward<DefaultDomainIdListT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 template <typename TagsT = Aws::Vector<Tag>>
185 void SetTags(TagsT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags = std::forward<TagsT>(value);
188 }
189 template <typename TagsT = Aws::Vector<Tag>>
191 SetTags(std::forward<TagsT>(value));
192 return *this;
193 }
194 template <typename TagsT = Tag>
196 m_tagsHasBeenSet = true;
197 m_tags.emplace_back(std::forward<TagsT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_name;
203
204 Aws::String m_artifactStoreUri;
205
206 Aws::String m_roleArn;
207
209
210 Aws::String m_weeklyMaintenanceWindowStart;
211
213
214 Aws::Vector<Aws::String> m_defaultDomainIdList;
215
216 Aws::Vector<Tag> m_tags;
217 bool m_nameHasBeenSet = false;
218 bool m_artifactStoreUriHasBeenSet = false;
219 bool m_roleArnHasBeenSet = false;
220 bool m_modelRegistrationModeHasBeenSet = false;
221 bool m_weeklyMaintenanceWindowStartHasBeenSet = false;
222 bool m_accountDefaultStatusHasBeenSet = false;
223 bool m_defaultDomainIdListHasBeenSet = false;
224 bool m_tagsHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace SageMaker
229} // namespace Aws
CreateMlflowAppRequest & WithAccountDefaultStatus(AccountDefaultStatus value)
AWS_SAGEMAKER_API CreateMlflowAppRequest()=default
CreateMlflowAppRequest & AddTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetDefaultDomainIdList() const
CreateMlflowAppRequest & WithDefaultDomainIdList(DefaultDomainIdListT &&value)
CreateMlflowAppRequest & AddDefaultDomainIdList(DefaultDomainIdListT &&value)
virtual const char * GetServiceRequestName() const override
void SetDefaultDomainIdList(DefaultDomainIdListT &&value)
CreateMlflowAppRequest & WithName(NameT &&value)
CreateMlflowAppRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetArtifactStoreUri(ArtifactStoreUriT &&value)
void SetModelRegistrationMode(ModelRegistrationMode value)
CreateMlflowAppRequest & WithWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT &&value)
void SetAccountDefaultStatus(AccountDefaultStatus value)
CreateMlflowAppRequest & WithRoleArn(RoleArnT &&value)
void SetWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT &&value)
CreateMlflowAppRequest & WithArtifactStoreUri(ArtifactStoreUriT &&value)
CreateMlflowAppRequest & WithModelRegistrationMode(ModelRegistrationMode 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