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>
47 template <
typename ModelPackageArnT = Aws::String>
49 m_modelPackageArnHasBeenSet =
true;
50 m_modelPackageArn = std::forward<ModelPackageArnT>(value);
52 template <
typename ModelPackageArnT = Aws::String>
66 m_modelApprovalStatusHasBeenSet =
true;
67 m_modelApprovalStatus = value;
82 m_modelPackageRegistrationTypeHasBeenSet =
true;
83 m_modelPackageRegistrationType = value;
97 template <
typename ApprovalDescriptionT = Aws::String>
99 m_approvalDescriptionHasBeenSet =
true;
100 m_approvalDescription = std::forward<ApprovalDescriptionT>(value);
102 template <
typename ApprovalDescriptionT = Aws::String>
115 template <
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
117 m_customerMetadataPropertiesHasBeenSet =
true;
118 m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value);
120 template <
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
125 template <
typename CustomerMetadataPropertiesKeyT = Aws::String,
typename CustomerMetadataPropertiesValueT = Aws::String>
127 m_customerMetadataPropertiesHasBeenSet =
true;
128 m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key),
129 std::forward<CustomerMetadataPropertiesValueT>(value));
141 template <
typename CustomerMetadataPropertiesToRemoveT = Aws::Vector<Aws::String>>
143 m_customerMetadataPropertiesToRemoveHasBeenSet =
true;
144 m_customerMetadataPropertiesToRemove = std::forward<CustomerMetadataPropertiesToRemoveT>(value);
146 template <
typename CustomerMetadataPropertiesToRemoveT = Aws::Vector<Aws::String>>
151 template <
typename CustomerMetadataPropertiesToRemoveT = Aws::String>
153 m_customerMetadataPropertiesToRemoveHasBeenSet =
true;
154 m_customerMetadataPropertiesToRemove.emplace_back(std::forward<CustomerMetadataPropertiesToRemoveT>(value));
169 return m_additionalInferenceSpecificationsToAdd;
172 template <
typename AdditionalInferenceSpecificationsToAddT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
174 m_additionalInferenceSpecificationsToAddHasBeenSet =
true;
175 m_additionalInferenceSpecificationsToAdd = std::forward<AdditionalInferenceSpecificationsToAddT>(value);
177 template <
typename AdditionalInferenceSpecificationsToAddT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
182 template <
typename AdditionalInferenceSpecificationsToAddT = AdditionalInferenceSpecificationDefinition>
184 m_additionalInferenceSpecificationsToAddHasBeenSet =
true;
185 m_additionalInferenceSpecificationsToAdd.emplace_back(std::forward<AdditionalInferenceSpecificationsToAddT>(value));
202 template <
typename InferenceSpecificationT = InferenceSpecification>
204 m_inferenceSpecificationHasBeenSet =
true;
205 m_inferenceSpecification = std::forward<InferenceSpecificationT>(value);
207 template <
typename InferenceSpecificationT = InferenceSpecification>
220 template <
typename SourceUriT = Aws::String>
222 m_sourceUriHasBeenSet =
true;
223 m_sourceUri = std::forward<SourceUriT>(value);
225 template <
typename SourceUriT = Aws::String>
250 template <
typename ModelCardT = ModelPackageModelCard>
252 m_modelCardHasBeenSet =
true;
253 m_modelCard = std::forward<ModelCardT>(value);
255 template <
typename ModelCardT = ModelPackageModelCard>
269 template <
typename ModelLifeCycleT = ModelLifeCycle>
271 m_modelLifeCycleHasBeenSet =
true;
272 m_modelLifeCycle = std::forward<ModelLifeCycleT>(value);
274 template <
typename ModelLifeCycleT = ModelLifeCycle>
287 template <
typename ClientTokenT = Aws::String>
289 m_clientTokenHasBeenSet =
true;
290 m_clientToken = std::forward<ClientTokenT>(value);
292 template <
typename ClientTokenT = Aws::String>
313 InferenceSpecification m_inferenceSpecification;
317 ModelPackageModelCard m_modelCard;
319 ModelLifeCycle m_modelLifeCycle;
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;
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
void SetModelCard(ModelCardT &&value)
bool ModelPackageArnHasBeenSet() const
UpdateModelPackageRequest & WithAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT &&value)
void SetModelApprovalStatus(ModelApprovalStatus value)
bool CustomerMetadataPropertiesToRemoveHasBeenSet() const
const ModelLifeCycle & GetModelLifeCycle() const
virtual const char * GetServiceRequestName() const override
bool CustomerMetadataPropertiesHasBeenSet() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateModelPackageRequest & WithApprovalDescription(ApprovalDescriptionT &&value)
const Aws::Vector< AdditionalInferenceSpecificationDefinition > & GetAdditionalInferenceSpecificationsToAdd() const
ModelApprovalStatus GetModelApprovalStatus() const
ModelPackageRegistrationType GetModelPackageRegistrationType() const
const Aws::String & GetClientToken() const
const Aws::String & GetSourceUri() const
bool AdditionalInferenceSpecificationsToAddHasBeenSet() const
const InferenceSpecification & GetInferenceSpecification() const
UpdateModelPackageRequest & WithModelPackageArn(ModelPackageArnT &&value)
AWS_SAGEMAKER_API UpdateModelPackageRequest()=default
bool ModelPackageRegistrationTypeHasBeenSet() const
bool ApprovalDescriptionHasBeenSet() const
bool ModelApprovalStatusHasBeenSet() const
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)
bool ClientTokenHasBeenSet() const
UpdateModelPackageRequest & WithClientToken(ClientTokenT &&value)
void SetModelLifeCycle(ModelLifeCycleT &&value)
void SetClientToken(ClientTokenT &&value)
void SetInferenceSpecification(InferenceSpecificationT &&value)
UpdateModelPackageRequest & WithSourceUri(SourceUriT &&value)
const Aws::String & GetApprovalDescription() const
void SetModelPackageArn(ModelPackageArnT &&value)
void SetSourceUri(SourceUriT &&value)
const ModelPackageModelCard & GetModelCard() const
void SetCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
bool InferenceSpecificationHasBeenSet() const
const Aws::String & GetModelPackageArn() const
UpdateModelPackageRequest & WithCustomerMetadataPropertiesToRemove(CustomerMetadataPropertiesToRemoveT &&value)
bool SourceUriHasBeenSet() const
UpdateModelPackageRequest & WithCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
bool ModelLifeCycleHasBeenSet() const
bool ModelCardHasBeenSet() const
UpdateModelPackageRequest & WithModelCard(ModelCardT &&value)
void SetAdditionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationsToAddT &&value)
UpdateModelPackageRequest & WithInferenceSpecification(InferenceSpecificationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
ModelPackageRegistrationType
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