AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateModelPackageRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/AdditionalInferenceSpecificationDefinition.h>
13#include <aws/sagemaker/model/InferenceSpecification.h>
14#include <aws/sagemaker/model/ModelApprovalStatus.h>
15#include <aws/sagemaker/model/ModelLifeCycle.h>
16#include <aws/sagemaker/model/ModelPackageModelCard.h>
17#include <aws/sagemaker/model/ModelPackageRegistrationType.h>
18
19#include <utility>
20
21namespace Aws {
22namespace SageMaker {
23namespace Model {
24
28 public:
29 AWS_SAGEMAKER_API UpdateModelPackageRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateModelPackage"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetModelPackageArn() const { return m_modelPackageArn; }
46 inline bool ModelPackageArnHasBeenSet() const { return m_modelPackageArnHasBeenSet; }
47 template <typename ModelPackageArnT = Aws::String>
48 void SetModelPackageArn(ModelPackageArnT&& value) {
49 m_modelPackageArnHasBeenSet = true;
50 m_modelPackageArn = std::forward<ModelPackageArnT>(value);
51 }
52 template <typename ModelPackageArnT = Aws::String>
54 SetModelPackageArn(std::forward<ModelPackageArnT>(value));
55 return *this;
56 }
58
60
63 inline ModelApprovalStatus GetModelApprovalStatus() const { return m_modelApprovalStatus; }
64 inline bool ModelApprovalStatusHasBeenSet() const { return m_modelApprovalStatusHasBeenSet; }
66 m_modelApprovalStatusHasBeenSet = true;
67 m_modelApprovalStatus = value;
68 }
71 return *this;
72 }
74
76
79 inline ModelPackageRegistrationType GetModelPackageRegistrationType() const { return m_modelPackageRegistrationType; }
80 inline bool ModelPackageRegistrationTypeHasBeenSet() const { return m_modelPackageRegistrationTypeHasBeenSet; }
82 m_modelPackageRegistrationTypeHasBeenSet = true;
83 m_modelPackageRegistrationType = value;
84 }
87 return *this;
88 }
90
92
95 inline const Aws::String& GetApprovalDescription() const { return m_approvalDescription; }
96 inline bool ApprovalDescriptionHasBeenSet() const { return m_approvalDescriptionHasBeenSet; }
97 template <typename ApprovalDescriptionT = Aws::String>
98 void SetApprovalDescription(ApprovalDescriptionT&& value) {
99 m_approvalDescriptionHasBeenSet = true;
100 m_approvalDescription = std::forward<ApprovalDescriptionT>(value);
101 }
102 template <typename ApprovalDescriptionT = Aws::String>
103 UpdateModelPackageRequest& WithApprovalDescription(ApprovalDescriptionT&& value) {
104 SetApprovalDescription(std::forward<ApprovalDescriptionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Map<Aws::String, Aws::String>& GetCustomerMetadataProperties() const { return m_customerMetadataProperties; }
114 inline bool CustomerMetadataPropertiesHasBeenSet() const { return m_customerMetadataPropertiesHasBeenSet; }
115 template <typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
116 void SetCustomerMetadataProperties(CustomerMetadataPropertiesT&& value) {
117 m_customerMetadataPropertiesHasBeenSet = true;
118 m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value);
119 }
120 template <typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
121 UpdateModelPackageRequest& WithCustomerMetadataProperties(CustomerMetadataPropertiesT&& value) {
122 SetCustomerMetadataProperties(std::forward<CustomerMetadataPropertiesT>(value));
123 return *this;
124 }
125 template <typename CustomerMetadataPropertiesKeyT = Aws::String, typename CustomerMetadataPropertiesValueT = Aws::String>
126 UpdateModelPackageRequest& AddCustomerMetadataProperties(CustomerMetadataPropertiesKeyT&& key, CustomerMetadataPropertiesValueT&& value) {
127 m_customerMetadataPropertiesHasBeenSet = true;
128 m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key),
129 std::forward<CustomerMetadataPropertiesValueT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::Vector<Aws::String>& GetCustomerMetadataPropertiesToRemove() const { return m_customerMetadataPropertiesToRemove; }
140 inline bool CustomerMetadataPropertiesToRemoveHasBeenSet() const { return m_customerMetadataPropertiesToRemoveHasBeenSet; }
141 template <typename CustomerMetadataPropertiesToRemoveT = Aws::Vector<Aws::String>>
142 void SetCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT&& value) {
143 m_customerMetadataPropertiesToRemoveHasBeenSet = true;
144 m_customerMetadataPropertiesToRemove = std::forward<CustomerMetadataPropertiesToRemoveT>(value);
145 }
146 template <typename CustomerMetadataPropertiesToRemoveT = Aws::Vector<Aws::String>>
147 UpdateModelPackageRequest& WithCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT&& value) {
148 SetCustomerMetadataPropertiesToRemove(std::forward<CustomerMetadataPropertiesToRemoveT>(value));
149 return *this;
150 }
151 template <typename CustomerMetadataPropertiesToRemoveT = Aws::String>
152 UpdateModelPackageRequest& AddCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT&& value) {
153 m_customerMetadataPropertiesToRemoveHasBeenSet = true;
154 m_customerMetadataPropertiesToRemove.emplace_back(std::forward<CustomerMetadataPropertiesToRemoveT>(value));
155 return *this;
156 }
158
160
169 return m_additionalInferenceSpecificationsToAdd;
170 }
171 inline bool AdditionalInferenceSpecificationsToAddHasBeenSet() const { return m_additionalInferenceSpecificationsToAddHasBeenSet; }
172 template <typename AdditionalInferenceSpecificationsToAddT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
173 void SetAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT&& value) {
174 m_additionalInferenceSpecificationsToAddHasBeenSet = true;
175 m_additionalInferenceSpecificationsToAdd = std::forward<AdditionalInferenceSpecificationsToAddT>(value);
176 }
177 template <typename AdditionalInferenceSpecificationsToAddT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
178 UpdateModelPackageRequest& WithAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT&& value) {
179 SetAdditionalInferenceSpecificationsToAdd(std::forward<AdditionalInferenceSpecificationsToAddT>(value));
180 return *this;
181 }
182 template <typename AdditionalInferenceSpecificationsToAddT = AdditionalInferenceSpecificationDefinition>
183 UpdateModelPackageRequest& AddAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT&& value) {
184 m_additionalInferenceSpecificationsToAddHasBeenSet = true;
185 m_additionalInferenceSpecificationsToAdd.emplace_back(std::forward<AdditionalInferenceSpecificationsToAddT>(value));
186 return *this;
187 }
189
191
200 inline const InferenceSpecification& GetInferenceSpecification() const { return m_inferenceSpecification; }
201 inline bool InferenceSpecificationHasBeenSet() const { return m_inferenceSpecificationHasBeenSet; }
202 template <typename InferenceSpecificationT = InferenceSpecification>
203 void SetInferenceSpecification(InferenceSpecificationT&& value) {
204 m_inferenceSpecificationHasBeenSet = true;
205 m_inferenceSpecification = std::forward<InferenceSpecificationT>(value);
206 }
207 template <typename InferenceSpecificationT = InferenceSpecification>
208 UpdateModelPackageRequest& WithInferenceSpecification(InferenceSpecificationT&& value) {
209 SetInferenceSpecification(std::forward<InferenceSpecificationT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetSourceUri() const { return m_sourceUri; }
219 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
220 template <typename SourceUriT = Aws::String>
221 void SetSourceUri(SourceUriT&& value) {
222 m_sourceUriHasBeenSet = true;
223 m_sourceUri = std::forward<SourceUriT>(value);
224 }
225 template <typename SourceUriT = Aws::String>
227 SetSourceUri(std::forward<SourceUriT>(value));
228 return *this;
229 }
231
233
248 inline const ModelPackageModelCard& GetModelCard() const { return m_modelCard; }
249 inline bool ModelCardHasBeenSet() const { return m_modelCardHasBeenSet; }
250 template <typename ModelCardT = ModelPackageModelCard>
251 void SetModelCard(ModelCardT&& value) {
252 m_modelCardHasBeenSet = true;
253 m_modelCard = std::forward<ModelCardT>(value);
254 }
255 template <typename ModelCardT = ModelPackageModelCard>
257 SetModelCard(std::forward<ModelCardT>(value));
258 return *this;
259 }
261
263
267 inline const ModelLifeCycle& GetModelLifeCycle() const { return m_modelLifeCycle; }
268 inline bool ModelLifeCycleHasBeenSet() const { return m_modelLifeCycleHasBeenSet; }
269 template <typename ModelLifeCycleT = ModelLifeCycle>
270 void SetModelLifeCycle(ModelLifeCycleT&& value) {
271 m_modelLifeCycleHasBeenSet = true;
272 m_modelLifeCycle = std::forward<ModelLifeCycleT>(value);
273 }
274 template <typename ModelLifeCycleT = ModelLifeCycle>
276 SetModelLifeCycle(std::forward<ModelLifeCycleT>(value));
277 return *this;
278 }
280
282
285 inline const Aws::String& GetClientToken() const { return m_clientToken; }
286 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
287 template <typename ClientTokenT = Aws::String>
288 void SetClientToken(ClientTokenT&& value) {
289 m_clientTokenHasBeenSet = true;
290 m_clientToken = std::forward<ClientTokenT>(value);
291 }
292 template <typename ClientTokenT = Aws::String>
294 SetClientToken(std::forward<ClientTokenT>(value));
295 return *this;
296 }
298 private:
299 Aws::String m_modelPackageArn;
300
302
304
305 Aws::String m_approvalDescription;
306
307 Aws::Map<Aws::String, Aws::String> m_customerMetadataProperties;
308
309 Aws::Vector<Aws::String> m_customerMetadataPropertiesToRemove;
310
311 Aws::Vector<AdditionalInferenceSpecificationDefinition> m_additionalInferenceSpecificationsToAdd;
312
313 InferenceSpecification m_inferenceSpecification;
314
315 Aws::String m_sourceUri;
316
317 ModelPackageModelCard m_modelCard;
318
319 ModelLifeCycle m_modelLifeCycle;
320
321 Aws::String m_clientToken;
322 bool m_modelPackageArnHasBeenSet = false;
323 bool m_modelApprovalStatusHasBeenSet = false;
324 bool m_modelPackageRegistrationTypeHasBeenSet = false;
325 bool m_approvalDescriptionHasBeenSet = false;
326 bool m_customerMetadataPropertiesHasBeenSet = false;
327 bool m_customerMetadataPropertiesToRemoveHasBeenSet = false;
328 bool m_additionalInferenceSpecificationsToAddHasBeenSet = false;
329 bool m_inferenceSpecificationHasBeenSet = false;
330 bool m_sourceUriHasBeenSet = false;
331 bool m_modelCardHasBeenSet = false;
332 bool m_modelLifeCycleHasBeenSet = false;
333 bool m_clientTokenHasBeenSet = false;
334};
335
336} // namespace Model
337} // namespace SageMaker
338} // namespace Aws
void SetModelPackageRegistrationType(ModelPackageRegistrationType value)
void SetApprovalDescription(ApprovalDescriptionT &&value)
UpdateModelPackageRequest & AddAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateModelPackageRequest & AddCustomerMetadataProperties(CustomerMetadataPropertiesKeyT &&key, CustomerMetadataPropertiesValueT &&value)
const Aws::Vector< Aws::String > & GetCustomerMetadataPropertiesToRemove() const
UpdateModelPackageRequest & WithAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateModelPackageRequest & WithApprovalDescription(ApprovalDescriptionT &&value)
const Aws::Vector< AdditionalInferenceSpecificationDefinition > & GetAdditionalInferenceSpecificationsToAdd() const
ModelPackageRegistrationType GetModelPackageRegistrationType() const
const InferenceSpecification & GetInferenceSpecification() const
UpdateModelPackageRequest & WithModelPackageArn(ModelPackageArnT &&value)
AWS_SAGEMAKER_API UpdateModelPackageRequest()=default
UpdateModelPackageRequest & AddCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomerMetadataProperties() const
UpdateModelPackageRequest & WithModelApprovalStatus(ModelApprovalStatus value)
UpdateModelPackageRequest & WithModelPackageRegistrationType(ModelPackageRegistrationType value)
void SetCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT &&value)
UpdateModelPackageRequest & WithModelLifeCycle(ModelLifeCycleT &&value)
UpdateModelPackageRequest & WithClientToken(ClientTokenT &&value)
void SetInferenceSpecification(InferenceSpecificationT &&value)
UpdateModelPackageRequest & WithSourceUri(SourceUriT &&value)
void SetCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
UpdateModelPackageRequest & WithCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT &&value)
UpdateModelPackageRequest & WithCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
UpdateModelPackageRequest & WithModelCard(ModelCardT &&value)
void SetAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT &&value)
UpdateModelPackageRequest & WithInferenceSpecification(InferenceSpecificationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector