AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ModelPackageArnT = Aws::String>
51 void SetModelPackageArn(ModelPackageArnT&& value) { m_modelPackageArnHasBeenSet = true; m_modelPackageArn = std::forward<ModelPackageArnT>(value); }
52 template<typename ModelPackageArnT = Aws::String>
53 UpdateModelPackageRequest& WithModelPackageArn(ModelPackageArnT&& value) { SetModelPackageArn(std::forward<ModelPackageArnT>(value)); return *this;}
55
57
60 inline ModelApprovalStatus GetModelApprovalStatus() const { return m_modelApprovalStatus; }
61 inline bool ModelApprovalStatusHasBeenSet() const { return m_modelApprovalStatusHasBeenSet; }
62 inline void SetModelApprovalStatus(ModelApprovalStatus value) { m_modelApprovalStatusHasBeenSet = true; m_modelApprovalStatus = value; }
65
67
70 inline const Aws::String& GetApprovalDescription() const { return m_approvalDescription; }
71 inline bool ApprovalDescriptionHasBeenSet() const { return m_approvalDescriptionHasBeenSet; }
72 template<typename ApprovalDescriptionT = Aws::String>
73 void SetApprovalDescription(ApprovalDescriptionT&& value) { m_approvalDescriptionHasBeenSet = true; m_approvalDescription = std::forward<ApprovalDescriptionT>(value); }
74 template<typename ApprovalDescriptionT = Aws::String>
75 UpdateModelPackageRequest& WithApprovalDescription(ApprovalDescriptionT&& value) { SetApprovalDescription(std::forward<ApprovalDescriptionT>(value)); return *this;}
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetCustomerMetadataProperties() const { return m_customerMetadataProperties; }
83 inline bool CustomerMetadataPropertiesHasBeenSet() const { return m_customerMetadataPropertiesHasBeenSet; }
84 template<typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
85 void SetCustomerMetadataProperties(CustomerMetadataPropertiesT&& value) { m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value); }
86 template<typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
87 UpdateModelPackageRequest& WithCustomerMetadataProperties(CustomerMetadataPropertiesT&& value) { SetCustomerMetadataProperties(std::forward<CustomerMetadataPropertiesT>(value)); return *this;}
88 template<typename CustomerMetadataPropertiesKeyT = Aws::String, typename CustomerMetadataPropertiesValueT = Aws::String>
89 UpdateModelPackageRequest& AddCustomerMetadataProperties(CustomerMetadataPropertiesKeyT&& key, CustomerMetadataPropertiesValueT&& value) {
90 m_customerMetadataPropertiesHasBeenSet = true; m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key), std::forward<CustomerMetadataPropertiesValueT>(value)); return *this;
91 }
93
95
99 inline const Aws::Vector<Aws::String>& GetCustomerMetadataPropertiesToRemove() const { return m_customerMetadataPropertiesToRemove; }
100 inline bool CustomerMetadataPropertiesToRemoveHasBeenSet() const { return m_customerMetadataPropertiesToRemoveHasBeenSet; }
101 template<typename CustomerMetadataPropertiesToRemoveT = Aws::Vector<Aws::String>>
102 void SetCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT&& value) { m_customerMetadataPropertiesToRemoveHasBeenSet = true; m_customerMetadataPropertiesToRemove = std::forward<CustomerMetadataPropertiesToRemoveT>(value); }
103 template<typename CustomerMetadataPropertiesToRemoveT = Aws::Vector<Aws::String>>
104 UpdateModelPackageRequest& WithCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT&& value) { SetCustomerMetadataPropertiesToRemove(std::forward<CustomerMetadataPropertiesToRemoveT>(value)); return *this;}
105 template<typename CustomerMetadataPropertiesToRemoveT = Aws::String>
106 UpdateModelPackageRequest& AddCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT&& value) { m_customerMetadataPropertiesToRemoveHasBeenSet = true; m_customerMetadataPropertiesToRemove.emplace_back(std::forward<CustomerMetadataPropertiesToRemoveT>(value)); return *this; }
108
110
118 inline const Aws::Vector<AdditionalInferenceSpecificationDefinition>& GetAdditionalInferenceSpecificationsToAdd() const { return m_additionalInferenceSpecificationsToAdd; }
119 inline bool AdditionalInferenceSpecificationsToAddHasBeenSet() const { return m_additionalInferenceSpecificationsToAddHasBeenSet; }
120 template<typename AdditionalInferenceSpecificationsToAddT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
121 void SetAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT&& value) { m_additionalInferenceSpecificationsToAddHasBeenSet = true; m_additionalInferenceSpecificationsToAdd = std::forward<AdditionalInferenceSpecificationsToAddT>(value); }
122 template<typename AdditionalInferenceSpecificationsToAddT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
123 UpdateModelPackageRequest& WithAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT&& value) { SetAdditionalInferenceSpecificationsToAdd(std::forward<AdditionalInferenceSpecificationsToAddT>(value)); return *this;}
124 template<typename AdditionalInferenceSpecificationsToAddT = AdditionalInferenceSpecificationDefinition>
125 UpdateModelPackageRequest& AddAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT&& value) { m_additionalInferenceSpecificationsToAddHasBeenSet = true; m_additionalInferenceSpecificationsToAdd.emplace_back(std::forward<AdditionalInferenceSpecificationsToAddT>(value)); return *this; }
127
129
138 inline const InferenceSpecification& GetInferenceSpecification() const { return m_inferenceSpecification; }
139 inline bool InferenceSpecificationHasBeenSet() const { return m_inferenceSpecificationHasBeenSet; }
140 template<typename InferenceSpecificationT = InferenceSpecification>
141 void SetInferenceSpecification(InferenceSpecificationT&& value) { m_inferenceSpecificationHasBeenSet = true; m_inferenceSpecification = std::forward<InferenceSpecificationT>(value); }
142 template<typename InferenceSpecificationT = InferenceSpecification>
143 UpdateModelPackageRequest& WithInferenceSpecification(InferenceSpecificationT&& value) { SetInferenceSpecification(std::forward<InferenceSpecificationT>(value)); return *this;}
145
147
150 inline const Aws::String& GetSourceUri() const { return m_sourceUri; }
151 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
152 template<typename SourceUriT = Aws::String>
153 void SetSourceUri(SourceUriT&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::forward<SourceUriT>(value); }
154 template<typename SourceUriT = Aws::String>
155 UpdateModelPackageRequest& WithSourceUri(SourceUriT&& value) { SetSourceUri(std::forward<SourceUriT>(value)); return *this;}
157
159
174 inline const ModelPackageModelCard& GetModelCard() const { return m_modelCard; }
175 inline bool ModelCardHasBeenSet() const { return m_modelCardHasBeenSet; }
176 template<typename ModelCardT = ModelPackageModelCard>
177 void SetModelCard(ModelCardT&& value) { m_modelCardHasBeenSet = true; m_modelCard = std::forward<ModelCardT>(value); }
178 template<typename ModelCardT = ModelPackageModelCard>
179 UpdateModelPackageRequest& WithModelCard(ModelCardT&& value) { SetModelCard(std::forward<ModelCardT>(value)); return *this;}
181
183
187 inline const ModelLifeCycle& GetModelLifeCycle() const { return m_modelLifeCycle; }
188 inline bool ModelLifeCycleHasBeenSet() const { return m_modelLifeCycleHasBeenSet; }
189 template<typename ModelLifeCycleT = ModelLifeCycle>
190 void SetModelLifeCycle(ModelLifeCycleT&& value) { m_modelLifeCycleHasBeenSet = true; m_modelLifeCycle = std::forward<ModelLifeCycleT>(value); }
191 template<typename ModelLifeCycleT = ModelLifeCycle>
192 UpdateModelPackageRequest& WithModelLifeCycle(ModelLifeCycleT&& value) { SetModelLifeCycle(std::forward<ModelLifeCycleT>(value)); return *this;}
194
196
199 inline const Aws::String& GetClientToken() const { return m_clientToken; }
200 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
201 template<typename ClientTokenT = Aws::String>
202 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
203 template<typename ClientTokenT = Aws::String>
204 UpdateModelPackageRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
206 private:
207
208 Aws::String m_modelPackageArn;
209 bool m_modelPackageArnHasBeenSet = false;
210
212 bool m_modelApprovalStatusHasBeenSet = false;
213
214 Aws::String m_approvalDescription;
215 bool m_approvalDescriptionHasBeenSet = false;
216
217 Aws::Map<Aws::String, Aws::String> m_customerMetadataProperties;
218 bool m_customerMetadataPropertiesHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_customerMetadataPropertiesToRemove;
221 bool m_customerMetadataPropertiesToRemoveHasBeenSet = false;
222
223 Aws::Vector<AdditionalInferenceSpecificationDefinition> m_additionalInferenceSpecificationsToAdd;
224 bool m_additionalInferenceSpecificationsToAddHasBeenSet = false;
225
226 InferenceSpecification m_inferenceSpecification;
227 bool m_inferenceSpecificationHasBeenSet = false;
228
229 Aws::String m_sourceUri;
230 bool m_sourceUriHasBeenSet = false;
231
232 ModelPackageModelCard m_modelCard;
233 bool m_modelCardHasBeenSet = false;
234
235 ModelLifeCycle m_modelLifeCycle;
236 bool m_modelLifeCycleHasBeenSet = false;
237
238 Aws::String m_clientToken;
239 bool m_clientTokenHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace SageMaker
244} // namespace Aws
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
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)
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