Interface UpdateModelPackageRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<UpdateModelPackageRequest.Builder,,- UpdateModelPackageRequest> - SageMakerRequest.Builder,- SdkBuilder<UpdateModelPackageRequest.Builder,,- UpdateModelPackageRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- UpdateModelPackageRequest
- 
Method SummaryModifier and TypeMethodDescriptionadditionalInferenceSpecificationsToAdd(Collection<AdditionalInferenceSpecificationDefinition> additionalInferenceSpecificationsToAdd) An array of additional Inference Specification objects to be added to the existing array additional Inference Specification.additionalInferenceSpecificationsToAdd(Consumer<AdditionalInferenceSpecificationDefinition.Builder>... additionalInferenceSpecificationsToAdd) An array of additional Inference Specification objects to be added to the existing array additional Inference Specification.additionalInferenceSpecificationsToAdd(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecificationsToAdd) An array of additional Inference Specification objects to be added to the existing array additional Inference Specification.approvalDescription(String approvalDescription) A description for the approval status of the model.clientToken(String clientToken) A unique token that guarantees that the call to this API is idempotent.customerMetadataProperties(Map<String, String> customerMetadataProperties) The metadata properties associated with the model package versions.customerMetadataPropertiesToRemove(String... customerMetadataPropertiesToRemove) The metadata properties associated with the model package versions to remove.customerMetadataPropertiesToRemove(Collection<String> customerMetadataPropertiesToRemove) The metadata properties associated with the model package versions to remove.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:inferenceSpecification(InferenceSpecification inferenceSpecification) Specifies details about inference jobs that you can run with models based on this model package, including the following information:modelApprovalStatus(String modelApprovalStatus) The approval status of the model.modelApprovalStatus(ModelApprovalStatus modelApprovalStatus) The approval status of the model.modelCard(Consumer<ModelPackageModelCard.Builder> modelCard) The model card associated with the model package.modelCard(ModelPackageModelCard modelCard) The model card associated with the model package.modelLifeCycle(Consumer<ModelLifeCycle.Builder> modelLifeCycle) A structure describing the current state of the model in its life cycle.modelLifeCycle(ModelLifeCycle modelLifeCycle) A structure describing the current state of the model in its life cycle.modelPackageArn(String modelPackageArn) The Amazon Resource Name (ARN) of the model package.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The URI of the source for the model package.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
modelPackageArnThe 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.
 
- 
modelApprovalStatusThe 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:
 
- 
modelApprovalStatusThe 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:
 
- 
approvalDescriptionA 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.
 
- 
customerMetadataPropertiesUpdateModelPackageRequest.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.
 
- 
customerMetadataPropertiesToRemoveUpdateModelPackageRequest.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.
 
- 
customerMetadataPropertiesToRemoveUpdateModelPackageRequest.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.
 
- 
additionalInferenceSpecificationsToAddUpdateModelPackageRequest.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.
 
- 
additionalInferenceSpecificationsToAddUpdateModelPackageRequest.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.
 
- 
additionalInferenceSpecificationsToAddUpdateModelPackageRequest.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.Builderavoiding the need to create one manually viaAdditionalInferenceSpecificationDefinition.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadditionalInferenceSpecificationsToAdd(List<AdditionalInferenceSpecificationDefinition>).- Parameters:
- additionalInferenceSpecificationsToAdd- a consumer that will call methods on- AdditionalInferenceSpecificationDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
inferenceSpecificationUpdateModelPackageRequest.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.
 
- 
 
- 
inferenceSpecificationdefault 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.Builderavoiding the need to create one manually viaInferenceSpecification.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinferenceSpecification(InferenceSpecification).- Parameters:
- inferenceSpecification- a consumer that will call methods on- InferenceSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
 
- 
sourceUriThe 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.
 
- 
modelCardThe model card associated with the model package. Since ModelPackageModelCardis tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema ofModelCard. TheModelPackageModelCardschema does not includemodel_package_details, andmodel_overviewis composed of themodel_creatorandmodel_artifactproperties. 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. Since- ModelPackageModelCardis tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema of- ModelCard. The- ModelPackageModelCardschema does not include- model_package_details, and- model_overviewis composed of the- model_creatorand- model_artifactproperties. 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.
 
- 
modelCarddefault 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 theModelPackageModelCardis tied to a model package, it is a specific usage of a model card and its schema is simplified compared to the schema ofModelCard. TheModelPackageModelCardschema does not includemodel_package_details, andmodel_overviewis composed of themodel_creatorandmodel_artifactproperties. 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.Builderavoiding the need to create one manually viaModelPackageModelCard.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelCard(ModelPackageModelCard).- Parameters:
- modelCard- a consumer that will call methods on- ModelPackageModelCard.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
modelLifeCycleA structure describing the current state of the model in its life cycle. - Parameters:
- modelLifeCycle- A structure describing the current state of the model in its life cycle.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
modelLifeCycledefault UpdateModelPackageRequest.Builder modelLifeCycle(Consumer<ModelLifeCycle.Builder> modelLifeCycle) A structure describing the current state of the model in its life cycle. This is a convenience method that creates an instance of theModelLifeCycle.Builderavoiding the need to create one manually viaModelLifeCycle.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelLifeCycle(ModelLifeCycle).- Parameters:
- modelLifeCycle- a consumer that will call methods on- ModelLifeCycle.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
clientTokenA unique token that guarantees that the call to this API is idempotent. - Parameters:
- clientToken- A unique token that guarantees that the call to this API is idempotent.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
overrideConfigurationUpdateModelPackageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationUpdateModelPackageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-