Interface UpdateModelPackageRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateModelPackageRequest.Builder,UpdateModelPackageRequest>
,SageMakerRequest.Builder
,SdkBuilder<UpdateModelPackageRequest.Builder,UpdateModelPackageRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- UpdateModelPackageRequest
public static interface UpdateModelPackageRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<UpdateModelPackageRequest.Builder,UpdateModelPackageRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateModelPackageRequest.Builder
additionalInferenceSpecificationsToAdd(Collection<AdditionalInferenceSpecificationDefinition> additionalInferenceSpecificationsToAdd)
An array of additional Inference Specification objects to be added to the existing array additional Inference Specification.UpdateModelPackageRequest.Builder
additionalInferenceSpecificationsToAdd(Consumer<AdditionalInferenceSpecificationDefinition.Builder>... additionalInferenceSpecificationsToAdd)
An array of additional Inference Specification objects to be added to the existing array additional Inference Specification.UpdateModelPackageRequest.Builder
additionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecificationsToAdd)
An array of additional Inference Specification objects to be added to the existing array additional Inference Specification.UpdateModelPackageRequest.Builder
approvalDescription(String approvalDescription)
A description for the approval status of the model.UpdateModelPackageRequest.Builder
customerMetadataProperties(Map<String,String> customerMetadataProperties)
The metadata properties associated with the model package versions.UpdateModelPackageRequest.Builder
customerMetadataPropertiesToRemove(String... customerMetadataPropertiesToRemove)
The metadata properties associated with the model package versions to remove.UpdateModelPackageRequest.Builder
customerMetadataPropertiesToRemove(Collection<String> customerMetadataPropertiesToRemove)
The metadata properties associated with the model package versions to remove.default UpdateModelPackageRequest.Builder
inferenceSpecification(Consumer<InferenceSpecification.Builder> inferenceSpecification)
Specifies details about inference jobs that you can run with models based on this model package, including the following information:UpdateModelPackageRequest.Builder
inferenceSpecification(InferenceSpecification inferenceSpecification)
Specifies details about inference jobs that you can run with models based on this model package, including the following information:UpdateModelPackageRequest.Builder
modelApprovalStatus(String modelApprovalStatus)
The approval status of the model.UpdateModelPackageRequest.Builder
modelApprovalStatus(ModelApprovalStatus modelApprovalStatus)
The approval status of the model.default UpdateModelPackageRequest.Builder
modelCard(Consumer<ModelPackageModelCard.Builder> modelCard)
The model card associated with the model package.UpdateModelPackageRequest.Builder
modelCard(ModelPackageModelCard modelCard)
The model card associated with the model package.UpdateModelPackageRequest.Builder
modelPackageArn(String modelPackageArn)
The Amazon Resource Name (ARN) of the model package.UpdateModelPackageRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
UpdateModelPackageRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
UpdateModelPackageRequest.Builder
sourceUri(String sourceUri)
The URI of the source for the model package.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
modelPackageArn
UpdateModelPackageRequest.Builder modelPackageArn(String modelPackageArn)
The Amazon Resource Name (ARN) of the model package.
- Parameters:
modelPackageArn
- The Amazon Resource Name (ARN) of the model package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelApprovalStatus
UpdateModelPackageRequest.Builder modelApprovalStatus(String modelApprovalStatus)
The approval status of the model.
- Parameters:
modelApprovalStatus
- The approval status of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ModelApprovalStatus
,ModelApprovalStatus
-
modelApprovalStatus
UpdateModelPackageRequest.Builder modelApprovalStatus(ModelApprovalStatus modelApprovalStatus)
The approval status of the model.
- Parameters:
modelApprovalStatus
- The approval status of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ModelApprovalStatus
,ModelApprovalStatus
-
approvalDescription
UpdateModelPackageRequest.Builder approvalDescription(String approvalDescription)
A description for the approval status of the model.
- Parameters:
approvalDescription
- A description for the approval status of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerMetadataProperties
UpdateModelPackageRequest.Builder customerMetadataProperties(Map<String,String> customerMetadataProperties)
The metadata properties associated with the model package versions.
- Parameters:
customerMetadataProperties
- The metadata properties associated with the model package versions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerMetadataPropertiesToRemove
UpdateModelPackageRequest.Builder customerMetadataPropertiesToRemove(Collection<String> customerMetadataPropertiesToRemove)
The metadata properties associated with the model package versions to remove.
- Parameters:
customerMetadataPropertiesToRemove
- The metadata properties associated with the model package versions to remove.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customerMetadataPropertiesToRemove
UpdateModelPackageRequest.Builder customerMetadataPropertiesToRemove(String... customerMetadataPropertiesToRemove)
The metadata properties associated with the model package versions to remove.
- Parameters:
customerMetadataPropertiesToRemove
- The metadata properties associated with the model package versions to remove.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalInferenceSpecificationsToAdd
UpdateModelPackageRequest.Builder additionalInferenceSpecificationsToAdd(Collection<AdditionalInferenceSpecificationDefinition> additionalInferenceSpecificationsToAdd)
An array of additional Inference Specification objects to be added to the existing array additional Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
- Parameters:
additionalInferenceSpecificationsToAdd
- An array of additional Inference Specification objects to be added to the existing array additional Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalInferenceSpecificationsToAdd
UpdateModelPackageRequest.Builder additionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecificationsToAdd)
An array of additional Inference Specification objects to be added to the existing array additional Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
- Parameters:
additionalInferenceSpecificationsToAdd
- An array of additional Inference Specification objects to be added to the existing array additional Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalInferenceSpecificationsToAdd
UpdateModelPackageRequest.Builder additionalInferenceSpecificationsToAdd(Consumer<AdditionalInferenceSpecificationDefinition.Builder>... additionalInferenceSpecificationsToAdd)
An array of additional Inference Specification objects to be added to the existing array additional Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
This is a convenience method that creates an instance of theAdditionalInferenceSpecificationDefinition.Builder
avoiding the need to create one manually viaAdditionalInferenceSpecificationDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#additionalInferenceSpecificationsToAdd(List
.) - Parameters:
additionalInferenceSpecificationsToAdd
- a consumer that will call methods onAdditionalInferenceSpecificationDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#additionalInferenceSpecificationsToAdd(java.util.Collection
)
-
inferenceSpecification
UpdateModelPackageRequest.Builder inferenceSpecification(InferenceSpecification inferenceSpecification)
Specifies details about inference jobs that you can run with models based on this model package, including the following information:
-
The Amazon ECR paths of containers that contain the inference code and model artifacts.
-
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
-
The input and output content formats that the model package supports for inference.
- Parameters:
inferenceSpecification
- Specifies details about inference jobs that you can run with models based on this model package, including the following information:-
The Amazon ECR paths of containers that contain the inference code and model artifacts.
-
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
-
The input and output content formats that the model package supports for inference.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
inferenceSpecification
default UpdateModelPackageRequest.Builder inferenceSpecification(Consumer<InferenceSpecification.Builder> inferenceSpecification)
Specifies details about inference jobs that you can run with models based on this model package, including the following information:
-
The Amazon ECR paths of containers that contain the inference code and model artifacts.
-
The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
-
The input and output content formats that the model package supports for inference.
InferenceSpecification.Builder
avoiding the need to create one manually viaInferenceSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinferenceSpecification(InferenceSpecification)
.- Parameters:
inferenceSpecification
- a consumer that will call methods onInferenceSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inferenceSpecification(InferenceSpecification)
-
-
sourceUri
UpdateModelPackageRequest.Builder sourceUri(String sourceUri)
The URI of the source for the model package.
- Parameters:
sourceUri
- The URI of the source for the model package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelCard
UpdateModelPackageRequest.Builder modelCard(ModelPackageModelCard modelCard)
The model card associated with the model package. Since
ModelPackageModelCard
is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema ofModelCard
. TheModelPackageModelCard
schema does not includemodel_package_details
, andmodel_overview
is composed of themodel_creator
andmodel_artifact
properties. For more information about the model package model card schema, see Model package model card schema. For more information about the model card associated with the model package, see View the Details of a Model Version.- Parameters:
modelCard
- The model card associated with the model package. SinceModelPackageModelCard
is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema ofModelCard
. TheModelPackageModelCard
schema does not includemodel_package_details
, andmodel_overview
is composed of themodel_creator
andmodel_artifact
properties. For more information about the model package model card schema, see Model package model card schema. For more information about the model card associated with the model package, see View the Details of a Model Version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelCard
default UpdateModelPackageRequest.Builder modelCard(Consumer<ModelPackageModelCard.Builder> modelCard)
The model card associated with the model package. Since
This is a convenience method that creates an instance of theModelPackageModelCard
is tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema ofModelCard
. TheModelPackageModelCard
schema does not includemodel_package_details
, andmodel_overview
is composed of themodel_creator
andmodel_artifact
properties. For more information about the model package model card schema, see Model package model card schema. For more information about the model card associated with the model package, see View the Details of a Model Version.ModelPackageModelCard.Builder
avoiding the need to create one manually viaModelPackageModelCard.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelCard(ModelPackageModelCard)
.- Parameters:
modelCard
- a consumer that will call methods onModelPackageModelCard.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
modelCard(ModelPackageModelCard)
-
overrideConfiguration
UpdateModelPackageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateModelPackageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-