AWS SDK for C++

AWS SDK for C++ Version 1.11.875

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
101 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
102 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
103 template <typename KmsKeyIdT = Aws::String>
104 void SetKmsKeyId(KmsKeyIdT&& value) {
105 m_kmsKeyIdHasBeenSet = true;
106 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
107 }
108 template <typename KmsKeyIdT = Aws::String>
110 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
111 return *this;
112 }
114
116
124 inline ModelRegistrationMode GetModelRegistrationMode() const { return m_modelRegistrationMode; }
125 inline bool ModelRegistrationModeHasBeenSet() const { return m_modelRegistrationModeHasBeenSet; }
127 m_modelRegistrationModeHasBeenSet = true;
128 m_modelRegistrationMode = value;
129 }
132 return *this;
133 }
135
137
142 inline const Aws::String& GetWeeklyMaintenanceWindowStart() const { return m_weeklyMaintenanceWindowStart; }
143 inline bool WeeklyMaintenanceWindowStartHasBeenSet() const { return m_weeklyMaintenanceWindowStartHasBeenSet; }
144 template <typename WeeklyMaintenanceWindowStartT = Aws::String>
145 void SetWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT&& value) {
146 m_weeklyMaintenanceWindowStartHasBeenSet = true;
147 m_weeklyMaintenanceWindowStart = std::forward<WeeklyMaintenanceWindowStartT>(value);
148 }
149 template <typename WeeklyMaintenanceWindowStartT = Aws::String>
150 CreateMlflowAppRequest& WithWeeklyMaintenanceWindowStart(WeeklyMaintenanceWindowStartT&& value) {
151 SetWeeklyMaintenanceWindowStart(std::forward<WeeklyMaintenanceWindowStartT>(value));
152 return *this;
153 }
155
157
160 inline AccountDefaultStatus GetAccountDefaultStatus() const { return m_accountDefaultStatus; }
161 inline bool AccountDefaultStatusHasBeenSet() const { return m_accountDefaultStatusHasBeenSet; }
163 m_accountDefaultStatusHasBeenSet = true;
164 m_accountDefaultStatus = value;
165 }
168 return *this;
169 }
171
173
177 inline const Aws::Vector<Aws::String>& GetDefaultDomainIdList() const { return m_defaultDomainIdList; }
178 inline bool DefaultDomainIdListHasBeenSet() const { return m_defaultDomainIdListHasBeenSet; }
179 template <typename DefaultDomainIdListT = Aws::Vector<Aws::String>>
180 void SetDefaultDomainIdList(DefaultDomainIdListT&& value) {
181 m_defaultDomainIdListHasBeenSet = true;
182 m_defaultDomainIdList = std::forward<DefaultDomainIdListT>(value);
183 }
184 template <typename DefaultDomainIdListT = Aws::Vector<Aws::String>>
185 CreateMlflowAppRequest& WithDefaultDomainIdList(DefaultDomainIdListT&& value) {
186 SetDefaultDomainIdList(std::forward<DefaultDomainIdListT>(value));
187 return *this;
188 }
189 template <typename DefaultDomainIdListT = Aws::String>
190 CreateMlflowAppRequest& AddDefaultDomainIdList(DefaultDomainIdListT&& value) {
191 m_defaultDomainIdListHasBeenSet = true;
192 m_defaultDomainIdList.emplace_back(std::forward<DefaultDomainIdListT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template <typename TagsT = Aws::Vector<Tag>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Vector<Tag>>
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsT = Tag>
216 m_tagsHasBeenSet = true;
217 m_tags.emplace_back(std::forward<TagsT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_name;
223
224 Aws::String m_artifactStoreUri;
225
226 Aws::String m_roleArn;
227
228 Aws::String m_kmsKeyId;
229
231
232 Aws::String m_weeklyMaintenanceWindowStart;
233
235
236 Aws::Vector<Aws::String> m_defaultDomainIdList;
237
238 Aws::Vector<Tag> m_tags;
239 bool m_nameHasBeenSet = false;
240 bool m_artifactStoreUriHasBeenSet = false;
241 bool m_roleArnHasBeenSet = false;
242 bool m_kmsKeyIdHasBeenSet = false;
243 bool m_modelRegistrationModeHasBeenSet = false;
244 bool m_weeklyMaintenanceWindowStartHasBeenSet = false;
245 bool m_accountDefaultStatusHasBeenSet = false;
246 bool m_defaultDomainIdListHasBeenSet = false;
247 bool m_tagsHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace SageMaker
252} // namespace Aws
CreateMlflowAppRequest & WithKmsKeyId(KmsKeyIdT &&value)
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