AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateModelPackageRequest.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/ModelApprovalStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/InferenceSpecification.h>
14#include <aws/sagemaker/model/ModelPackageModelCard.h>
15#include <aws/sagemaker/model/ModelLifeCycle.h>
16#include <aws/sagemaker/model/AdditionalInferenceSpecificationDefinition.h>
17#include <utility>
18
19namespace Aws
20{
21namespace SageMaker
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_SAGEMAKER_API UpdateModelPackageRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateModelPackage"; }
38
39 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetModelPackageArn() const{ return m_modelPackageArn; }
49 inline bool ModelPackageArnHasBeenSet() const { return m_modelPackageArnHasBeenSet; }
50 inline void SetModelPackageArn(const Aws::String& value) { m_modelPackageArnHasBeenSet = true; m_modelPackageArn = value; }
51 inline void SetModelPackageArn(Aws::String&& value) { m_modelPackageArnHasBeenSet = true; m_modelPackageArn = std::move(value); }
52 inline void SetModelPackageArn(const char* value) { m_modelPackageArnHasBeenSet = true; m_modelPackageArn.assign(value); }
53 inline UpdateModelPackageRequest& WithModelPackageArn(const Aws::String& value) { SetModelPackageArn(value); return *this;}
54 inline UpdateModelPackageRequest& WithModelPackageArn(Aws::String&& value) { SetModelPackageArn(std::move(value)); return *this;}
55 inline UpdateModelPackageRequest& WithModelPackageArn(const char* value) { SetModelPackageArn(value); return *this;}
57
59
62 inline const ModelApprovalStatus& GetModelApprovalStatus() const{ return m_modelApprovalStatus; }
63 inline bool ModelApprovalStatusHasBeenSet() const { return m_modelApprovalStatusHasBeenSet; }
64 inline void SetModelApprovalStatus(const ModelApprovalStatus& value) { m_modelApprovalStatusHasBeenSet = true; m_modelApprovalStatus = value; }
65 inline void SetModelApprovalStatus(ModelApprovalStatus&& value) { m_modelApprovalStatusHasBeenSet = true; m_modelApprovalStatus = std::move(value); }
69
71
74 inline const Aws::String& GetApprovalDescription() const{ return m_approvalDescription; }
75 inline bool ApprovalDescriptionHasBeenSet() const { return m_approvalDescriptionHasBeenSet; }
76 inline void SetApprovalDescription(const Aws::String& value) { m_approvalDescriptionHasBeenSet = true; m_approvalDescription = value; }
77 inline void SetApprovalDescription(Aws::String&& value) { m_approvalDescriptionHasBeenSet = true; m_approvalDescription = std::move(value); }
78 inline void SetApprovalDescription(const char* value) { m_approvalDescriptionHasBeenSet = true; m_approvalDescription.assign(value); }
80 inline UpdateModelPackageRequest& WithApprovalDescription(Aws::String&& value) { SetApprovalDescription(std::move(value)); return *this;}
81 inline UpdateModelPackageRequest& WithApprovalDescription(const char* value) { SetApprovalDescription(value); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetCustomerMetadataProperties() const{ return m_customerMetadataProperties; }
89 inline bool CustomerMetadataPropertiesHasBeenSet() const { return m_customerMetadataPropertiesHasBeenSet; }
90 inline void SetCustomerMetadataProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties = value; }
91 inline void SetCustomerMetadataProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties = std::move(value); }
94 inline UpdateModelPackageRequest& AddCustomerMetadataProperties(const Aws::String& key, const Aws::String& value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties.emplace(key, value); return *this; }
95 inline UpdateModelPackageRequest& AddCustomerMetadataProperties(Aws::String&& key, const Aws::String& value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties.emplace(std::move(key), value); return *this; }
96 inline UpdateModelPackageRequest& AddCustomerMetadataProperties(const Aws::String& key, Aws::String&& value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties.emplace(key, std::move(value)); return *this; }
97 inline UpdateModelPackageRequest& AddCustomerMetadataProperties(Aws::String&& key, Aws::String&& value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties.emplace(std::move(key), std::move(value)); return *this; }
98 inline UpdateModelPackageRequest& AddCustomerMetadataProperties(const char* key, Aws::String&& value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties.emplace(key, std::move(value)); return *this; }
99 inline UpdateModelPackageRequest& AddCustomerMetadataProperties(Aws::String&& key, const char* value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties.emplace(std::move(key), value); return *this; }
100 inline UpdateModelPackageRequest& AddCustomerMetadataProperties(const char* key, const char* value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties.emplace(key, value); return *this; }
102
104
108 inline const Aws::Vector<Aws::String>& GetCustomerMetadataPropertiesToRemove() const{ return m_customerMetadataPropertiesToRemove; }
109 inline bool CustomerMetadataPropertiesToRemoveHasBeenSet() const { return m_customerMetadataPropertiesToRemoveHasBeenSet; }
110 inline void SetCustomerMetadataPropertiesToRemove(const Aws::Vector<Aws::String>& value) { m_customerMetadataPropertiesToRemoveHasBeenSet = true; m_customerMetadataPropertiesToRemove = value; }
111 inline void SetCustomerMetadataPropertiesToRemove(Aws::Vector<Aws::String>&& value) { m_customerMetadataPropertiesToRemoveHasBeenSet = true; m_customerMetadataPropertiesToRemove = std::move(value); }
114 inline UpdateModelPackageRequest& AddCustomerMetadataPropertiesToRemove(const Aws::String& value) { m_customerMetadataPropertiesToRemoveHasBeenSet = true; m_customerMetadataPropertiesToRemove.push_back(value); return *this; }
115 inline UpdateModelPackageRequest& AddCustomerMetadataPropertiesToRemove(Aws::String&& value) { m_customerMetadataPropertiesToRemoveHasBeenSet = true; m_customerMetadataPropertiesToRemove.push_back(std::move(value)); return *this; }
116 inline UpdateModelPackageRequest& AddCustomerMetadataPropertiesToRemove(const char* value) { m_customerMetadataPropertiesToRemoveHasBeenSet = true; m_customerMetadataPropertiesToRemove.push_back(value); return *this; }
118
120
128 inline const Aws::Vector<AdditionalInferenceSpecificationDefinition>& GetAdditionalInferenceSpecificationsToAdd() const{ return m_additionalInferenceSpecificationsToAdd; }
129 inline bool AdditionalInferenceSpecificationsToAddHasBeenSet() const { return m_additionalInferenceSpecificationsToAddHasBeenSet; }
130 inline void SetAdditionalInferenceSpecificationsToAdd(const Aws::Vector<AdditionalInferenceSpecificationDefinition>& value) { m_additionalInferenceSpecificationsToAddHasBeenSet = true; m_additionalInferenceSpecificationsToAdd = value; }
131 inline void SetAdditionalInferenceSpecificationsToAdd(Aws::Vector<AdditionalInferenceSpecificationDefinition>&& value) { m_additionalInferenceSpecificationsToAddHasBeenSet = true; m_additionalInferenceSpecificationsToAdd = std::move(value); }
134 inline UpdateModelPackageRequest& AddAdditionalInferenceSpecificationsToAdd(const AdditionalInferenceSpecificationDefinition& value) { m_additionalInferenceSpecificationsToAddHasBeenSet = true; m_additionalInferenceSpecificationsToAdd.push_back(value); return *this; }
135 inline UpdateModelPackageRequest& AddAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationDefinition&& value) { m_additionalInferenceSpecificationsToAddHasBeenSet = true; m_additionalInferenceSpecificationsToAdd.push_back(std::move(value)); return *this; }
137
139
148 inline const InferenceSpecification& GetInferenceSpecification() const{ return m_inferenceSpecification; }
149 inline bool InferenceSpecificationHasBeenSet() const { return m_inferenceSpecificationHasBeenSet; }
150 inline void SetInferenceSpecification(const InferenceSpecification& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = value; }
151 inline void SetInferenceSpecification(InferenceSpecification&& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = std::move(value); }
155
157
160 inline const Aws::String& GetSourceUri() const{ return m_sourceUri; }
161 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
162 inline void SetSourceUri(const Aws::String& value) { m_sourceUriHasBeenSet = true; m_sourceUri = value; }
163 inline void SetSourceUri(Aws::String&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::move(value); }
164 inline void SetSourceUri(const char* value) { m_sourceUriHasBeenSet = true; m_sourceUri.assign(value); }
165 inline UpdateModelPackageRequest& WithSourceUri(const Aws::String& value) { SetSourceUri(value); return *this;}
166 inline UpdateModelPackageRequest& WithSourceUri(Aws::String&& value) { SetSourceUri(std::move(value)); return *this;}
167 inline UpdateModelPackageRequest& WithSourceUri(const char* value) { SetSourceUri(value); return *this;}
169
171
186 inline const ModelPackageModelCard& GetModelCard() const{ return m_modelCard; }
187 inline bool ModelCardHasBeenSet() const { return m_modelCardHasBeenSet; }
188 inline void SetModelCard(const ModelPackageModelCard& value) { m_modelCardHasBeenSet = true; m_modelCard = value; }
189 inline void SetModelCard(ModelPackageModelCard&& value) { m_modelCardHasBeenSet = true; m_modelCard = std::move(value); }
190 inline UpdateModelPackageRequest& WithModelCard(const ModelPackageModelCard& value) { SetModelCard(value); return *this;}
191 inline UpdateModelPackageRequest& WithModelCard(ModelPackageModelCard&& value) { SetModelCard(std::move(value)); return *this;}
193
195
199 inline const ModelLifeCycle& GetModelLifeCycle() const{ return m_modelLifeCycle; }
200 inline bool ModelLifeCycleHasBeenSet() const { return m_modelLifeCycleHasBeenSet; }
201 inline void SetModelLifeCycle(const ModelLifeCycle& value) { m_modelLifeCycleHasBeenSet = true; m_modelLifeCycle = value; }
202 inline void SetModelLifeCycle(ModelLifeCycle&& value) { m_modelLifeCycleHasBeenSet = true; m_modelLifeCycle = std::move(value); }
204 inline UpdateModelPackageRequest& WithModelLifeCycle(ModelLifeCycle&& value) { SetModelLifeCycle(std::move(value)); return *this;}
206
208
211 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
212 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
213 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
214 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
215 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
216 inline UpdateModelPackageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
217 inline UpdateModelPackageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
218 inline UpdateModelPackageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
220 private:
221
222 Aws::String m_modelPackageArn;
223 bool m_modelPackageArnHasBeenSet = false;
224
225 ModelApprovalStatus m_modelApprovalStatus;
226 bool m_modelApprovalStatusHasBeenSet = false;
227
228 Aws::String m_approvalDescription;
229 bool m_approvalDescriptionHasBeenSet = false;
230
231 Aws::Map<Aws::String, Aws::String> m_customerMetadataProperties;
232 bool m_customerMetadataPropertiesHasBeenSet = false;
233
234 Aws::Vector<Aws::String> m_customerMetadataPropertiesToRemove;
235 bool m_customerMetadataPropertiesToRemoveHasBeenSet = false;
236
237 Aws::Vector<AdditionalInferenceSpecificationDefinition> m_additionalInferenceSpecificationsToAdd;
238 bool m_additionalInferenceSpecificationsToAddHasBeenSet = false;
239
240 InferenceSpecification m_inferenceSpecification;
241 bool m_inferenceSpecificationHasBeenSet = false;
242
243 Aws::String m_sourceUri;
244 bool m_sourceUriHasBeenSet = false;
245
246 ModelPackageModelCard m_modelCard;
247 bool m_modelCardHasBeenSet = false;
248
249 ModelLifeCycle m_modelLifeCycle;
250 bool m_modelLifeCycleHasBeenSet = false;
251
252 Aws::String m_clientToken;
253 bool m_clientTokenHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace SageMaker
258} // namespace Aws
UpdateModelPackageRequest & WithApprovalDescription(const char *value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateModelPackageRequest & WithAdditionalInferenceSpecificationsToAdd(Aws::Vector< AdditionalInferenceSpecificationDefinition > &&value)
UpdateModelPackageRequest & WithInferenceSpecification(InferenceSpecification &&value)
const Aws::Vector< Aws::String > & GetCustomerMetadataPropertiesToRemove() const
void SetCustomerMetadataProperties(Aws::Map< Aws::String, Aws::String > &&value)
void SetAdditionalInferenceSpecificationsToAdd(const Aws::Vector< AdditionalInferenceSpecificationDefinition > &value)
UpdateModelPackageRequest & WithModelPackageArn(const Aws::String &value)
UpdateModelPackageRequest & WithCustomerMetadataProperties(const Aws::Map< Aws::String, Aws::String > &value)
UpdateModelPackageRequest & AddCustomerMetadataProperties(Aws::String &&key, const Aws::String &value)
UpdateModelPackageRequest & WithModelPackageArn(const char *value)
UpdateModelPackageRequest & AddCustomerMetadataProperties(const Aws::String &key, const Aws::String &value)
UpdateModelPackageRequest & WithClientToken(const char *value)
void SetAdditionalInferenceSpecificationsToAdd(Aws::Vector< AdditionalInferenceSpecificationDefinition > &&value)
UpdateModelPackageRequest & WithApprovalDescription(Aws::String &&value)
UpdateModelPackageRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateModelPackageRequest & AddAdditionalInferenceSpecificationsToAdd(const AdditionalInferenceSpecificationDefinition &value)
const Aws::Vector< AdditionalInferenceSpecificationDefinition > & GetAdditionalInferenceSpecificationsToAdd() const
UpdateModelPackageRequest & AddCustomerMetadataPropertiesToRemove(const char *value)
void SetCustomerMetadataProperties(const Aws::Map< Aws::String, Aws::String > &value)
UpdateModelPackageRequest & WithSourceUri(const Aws::String &value)
void SetModelCard(const ModelPackageModelCard &value)
UpdateModelPackageRequest & AddAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationDefinition &&value)
UpdateModelPackageRequest & AddCustomerMetadataProperties(const char *key, Aws::String &&value)
UpdateModelPackageRequest & WithModelApprovalStatus(const ModelApprovalStatus &value)
const InferenceSpecification & GetInferenceSpecification() const
UpdateModelPackageRequest & AddCustomerMetadataProperties(const Aws::String &key, Aws::String &&value)
UpdateModelPackageRequest & WithModelLifeCycle(const ModelLifeCycle &value)
UpdateModelPackageRequest & WithInferenceSpecification(const InferenceSpecification &value)
void SetCustomerMetadataPropertiesToRemove(Aws::Vector< Aws::String > &&value)
UpdateModelPackageRequest & WithCustomerMetadataProperties(Aws::Map< Aws::String, Aws::String > &&value)
UpdateModelPackageRequest & AddCustomerMetadataProperties(const char *key, const char *value)
UpdateModelPackageRequest & AddCustomerMetadataPropertiesToRemove(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomerMetadataProperties() const
void SetInferenceSpecification(InferenceSpecification &&value)
UpdateModelPackageRequest & AddCustomerMetadataProperties(Aws::String &&key, const char *value)
const ModelApprovalStatus & GetModelApprovalStatus() const
UpdateModelPackageRequest & WithSourceUri(const char *value)
UpdateModelPackageRequest & WithSourceUri(Aws::String &&value)
void SetCustomerMetadataPropertiesToRemove(const Aws::Vector< Aws::String > &value)
UpdateModelPackageRequest & WithModelCard(const ModelPackageModelCard &value)
UpdateModelPackageRequest & WithCustomerMetadataPropertiesToRemove(Aws::Vector< Aws::String > &&value)
void SetInferenceSpecification(const InferenceSpecification &value)
UpdateModelPackageRequest & WithModelPackageArn(Aws::String &&value)
UpdateModelPackageRequest & WithCustomerMetadataPropertiesToRemove(const Aws::Vector< Aws::String > &value)
void SetModelApprovalStatus(const ModelApprovalStatus &value)
UpdateModelPackageRequest & WithModelApprovalStatus(ModelApprovalStatus &&value)
UpdateModelPackageRequest & WithModelCard(ModelPackageModelCard &&value)
UpdateModelPackageRequest & AddCustomerMetadataPropertiesToRemove(const Aws::String &value)
UpdateModelPackageRequest & WithAdditionalInferenceSpecificationsToAdd(const Aws::Vector< AdditionalInferenceSpecificationDefinition > &value)
UpdateModelPackageRequest & WithModelLifeCycle(ModelLifeCycle &&value)
UpdateModelPackageRequest & WithClientToken(Aws::String &&value)
UpdateModelPackageRequest & AddCustomerMetadataProperties(Aws::String &&key, Aws::String &&value)
UpdateModelPackageRequest & WithApprovalDescription(const Aws::String &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