Interface ModelPackage.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ModelPackage.Builder,
,ModelPackage> SdkBuilder<ModelPackage.Builder,
,ModelPackage> SdkPojo
- Enclosing class:
ModelPackage
-
Method Summary
Modifier and TypeMethodDescriptionadditionalInferenceSpecifications
(Collection<AdditionalInferenceSpecificationDefinition> additionalInferenceSpecifications) An array of additional Inference Specification objects.additionalInferenceSpecifications
(Consumer<AdditionalInferenceSpecificationDefinition.Builder>... additionalInferenceSpecifications) An array of additional Inference Specification objects.additionalInferenceSpecifications
(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecifications) An array of additional Inference Specification objects.approvalDescription
(String approvalDescription) A description provided when the model approval is set.certifyForMarketplace
(Boolean certifyForMarketplace) Whether the model package is to be certified to be listed on Amazon Web Services Marketplace.default ModelPackage.Builder
createdBy
(Consumer<UserContext.Builder> createdBy) Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.createdBy
(UserContext createdBy) Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.creationTime
(Instant creationTime) The time that the model package was created.customerMetadataProperties
(Map<String, String> customerMetadataProperties) The metadata properties for the model package.The machine learning domain of your model package and its components.default ModelPackage.Builder
driftCheckBaselines
(Consumer<DriftCheckBaselines.Builder> driftCheckBaselines) Represents the drift check baselines that can be used when the model monitor is set using the model package.driftCheckBaselines
(DriftCheckBaselines driftCheckBaselines) Represents the drift check baselines that can be used when the model monitor is set using the model package.default ModelPackage.Builder
inferenceSpecification
(Consumer<InferenceSpecification.Builder> inferenceSpecification) Defines how to perform inference generation after a training job is run.inferenceSpecification
(InferenceSpecification inferenceSpecification) Defines how to perform inference generation after a training job is run.default ModelPackage.Builder
lastModifiedBy
(Consumer<UserContext.Builder> lastModifiedBy) Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.lastModifiedBy
(UserContext lastModifiedBy) Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.lastModifiedTime
(Instant lastModifiedTime) The last time the model package was modified.default ModelPackage.Builder
metadataProperties
(Consumer<MetadataProperties.Builder> metadataProperties) Metadata properties of the tracking entity, trial, or trial component.metadataProperties
(MetadataProperties metadataProperties) Metadata properties of the tracking entity, trial, or trial component.modelApprovalStatus
(String modelApprovalStatus) The approval status of the model.modelApprovalStatus
(ModelApprovalStatus modelApprovalStatus) The approval status of the model.default ModelPackage.Builder
modelMetrics
(Consumer<ModelMetrics.Builder> modelMetrics) Metrics for the model.modelMetrics
(ModelMetrics modelMetrics) Metrics for the model.modelPackageArn
(String modelPackageArn) The Amazon Resource Name (ARN) of the model package.modelPackageDescription
(String modelPackageDescription) The description of the model package.modelPackageGroupName
(String modelPackageGroupName) The model group to which the model belongs.modelPackageName
(String modelPackageName) The name of the model.modelPackageStatus
(String modelPackageStatus) The status of the model package.modelPackageStatus
(ModelPackageStatus modelPackageStatus) The status of the model package.default ModelPackage.Builder
modelPackageStatusDetails
(Consumer<ModelPackageStatusDetails.Builder> modelPackageStatusDetails) Specifies the validation and image scan statuses of the model package.modelPackageStatusDetails
(ModelPackageStatusDetails modelPackageStatusDetails) Specifies the validation and image scan statuses of the model package.modelPackageVersion
(Integer modelPackageVersion) The version number of a versioned model.samplePayloadUrl
(String samplePayloadUrl) The Amazon Simple Storage Service path where the sample payload are stored.skipModelValidation
(String skipModelValidation) Indicates if you want to skip model validation.skipModelValidation
(SkipModelValidation skipModelValidation) Indicates if you want to skip model validation.default ModelPackage.Builder
sourceAlgorithmSpecification
(Consumer<SourceAlgorithmSpecification.Builder> sourceAlgorithmSpecification) A list of algorithms that were used to create a model package.sourceAlgorithmSpecification
(SourceAlgorithmSpecification sourceAlgorithmSpecification) A list of algorithms that were used to create a model package.The URI of the source for the model package.tags
(Collection<Tag> tags) A list of the tags associated with the model package.tags
(Consumer<Tag.Builder>... tags) A list of the tags associated with the model package.A list of the tags associated with the model package.The machine learning task your model package accomplishes.default ModelPackage.Builder
validationSpecification
(Consumer<ModelPackageValidationSpecification.Builder> validationSpecification) Specifies batch transform jobs that SageMaker runs to validate your model package.validationSpecification
(ModelPackageValidationSpecification validationSpecification) Specifies batch transform jobs that SageMaker runs to validate your model package.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
modelPackageName
The name of the model.
- Parameters:
modelPackageName
- The name of the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelPackageGroupName
The model group to which the model belongs.
- Parameters:
modelPackageGroupName
- The model group to which the model belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelPackageVersion
The version number of a versioned model.
- Parameters:
modelPackageVersion
- The version number of a versioned model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
modelPackageDescription
The description of the model package.
- Parameters:
modelPackageDescription
- The description of the model package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
The time that the model package was created.
- Parameters:
creationTime
- The time that the model package was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceSpecification
Defines how to perform inference generation after a training job is run.
- Parameters:
inferenceSpecification
- Defines how to perform inference generation after a training job is run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferenceSpecification
default ModelPackage.Builder inferenceSpecification(Consumer<InferenceSpecification.Builder> inferenceSpecification) Defines how to perform inference generation after a training job is run.
This is a convenience method that creates an instance of theInferenceSpecification.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:
-
sourceAlgorithmSpecification
ModelPackage.Builder sourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification) A list of algorithms that were used to create a model package.
- Parameters:
sourceAlgorithmSpecification
- A list of algorithms that were used to create a model package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceAlgorithmSpecification
default ModelPackage.Builder sourceAlgorithmSpecification(Consumer<SourceAlgorithmSpecification.Builder> sourceAlgorithmSpecification) A list of algorithms that were used to create a model package.
This is a convenience method that creates an instance of theSourceAlgorithmSpecification.Builder
avoiding the need to create one manually viaSourceAlgorithmSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceAlgorithmSpecification(SourceAlgorithmSpecification)
.- Parameters:
sourceAlgorithmSpecification
- a consumer that will call methods onSourceAlgorithmSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
validationSpecification
ModelPackage.Builder validationSpecification(ModelPackageValidationSpecification validationSpecification) Specifies batch transform jobs that SageMaker runs to validate your model package.
- Parameters:
validationSpecification
- Specifies batch transform jobs that SageMaker runs to validate your model package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
validationSpecification
default ModelPackage.Builder validationSpecification(Consumer<ModelPackageValidationSpecification.Builder> validationSpecification) Specifies batch transform jobs that SageMaker runs to validate your model package.
This is a convenience method that creates an instance of theModelPackageValidationSpecification.Builder
avoiding the need to create one manually viaModelPackageValidationSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovalidationSpecification(ModelPackageValidationSpecification)
.- Parameters:
validationSpecification
- a consumer that will call methods onModelPackageValidationSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelPackageStatus
The status of the model package. This can be one of the following values.
-
PENDING
- The model package is pending being created. -
IN_PROGRESS
- The model package is in the process of being created. -
COMPLETED
- The model package was successfully created. -
FAILED
- The model package failed. -
DELETING
- The model package is in the process of being deleted.
- Parameters:
modelPackageStatus
- The status of the model package. This can be one of the following values.-
PENDING
- The model package is pending being created. -
IN_PROGRESS
- The model package is in the process of being created. -
COMPLETED
- The model package was successfully created. -
FAILED
- The model package failed. -
DELETING
- The model package is in the process of being deleted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
modelPackageStatus
The status of the model package. This can be one of the following values.
-
PENDING
- The model package is pending being created. -
IN_PROGRESS
- The model package is in the process of being created. -
COMPLETED
- The model package was successfully created. -
FAILED
- The model package failed. -
DELETING
- The model package is in the process of being deleted.
- Parameters:
modelPackageStatus
- The status of the model package. This can be one of the following values.-
PENDING
- The model package is pending being created. -
IN_PROGRESS
- The model package is in the process of being created. -
COMPLETED
- The model package was successfully created. -
FAILED
- The model package failed. -
DELETING
- The model package is in the process of being deleted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
modelPackageStatusDetails
Specifies the validation and image scan statuses of the model package.
- Parameters:
modelPackageStatusDetails
- Specifies the validation and image scan statuses of the model package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelPackageStatusDetails
default ModelPackage.Builder modelPackageStatusDetails(Consumer<ModelPackageStatusDetails.Builder> modelPackageStatusDetails) Specifies the validation and image scan statuses of the model package.
This is a convenience method that creates an instance of theModelPackageStatusDetails.Builder
avoiding the need to create one manually viaModelPackageStatusDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelPackageStatusDetails(ModelPackageStatusDetails)
.- Parameters:
modelPackageStatusDetails
- a consumer that will call methods onModelPackageStatusDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
certifyForMarketplace
Whether the model package is to be certified to be listed on Amazon Web Services Marketplace. For information about listing model packages on Amazon Web Services Marketplace, see List Your Algorithm or Model Package on Amazon Web Services Marketplace.
- Parameters:
certifyForMarketplace
- Whether the model package is to be certified to be listed on Amazon Web Services Marketplace. For information about listing model packages on Amazon Web Services Marketplace, see List Your Algorithm or Model Package on Amazon Web Services Marketplace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelApprovalStatus
The approval status of the model. This can be one of the following values.
-
APPROVED
- The model is approved -
REJECTED
- The model is rejected. -
PENDING_MANUAL_APPROVAL
- The model is waiting for manual approval.
- Parameters:
modelApprovalStatus
- The approval status of the model. This can be one of the following values.-
APPROVED
- The model is approved -
REJECTED
- The model is rejected. -
PENDING_MANUAL_APPROVAL
- The model is waiting for manual approval.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
modelApprovalStatus
The approval status of the model. This can be one of the following values.
-
APPROVED
- The model is approved -
REJECTED
- The model is rejected. -
PENDING_MANUAL_APPROVAL
- The model is waiting for manual approval.
- Parameters:
modelApprovalStatus
- The approval status of the model. This can be one of the following values.-
APPROVED
- The model is approved -
REJECTED
- The model is rejected. -
PENDING_MANUAL_APPROVAL
- The model is waiting for manual approval.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
createdBy
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
- Parameters:
createdBy
- Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
This is a convenience method that creates an instance of theUserContext.Builder
avoiding the need to create one manually viaUserContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocreatedBy(UserContext)
.- Parameters:
createdBy
- a consumer that will call methods onUserContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadataProperties
Metadata properties of the tracking entity, trial, or trial component.
- Parameters:
metadataProperties
- Metadata properties of the tracking entity, trial, or trial component.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataProperties
default ModelPackage.Builder metadataProperties(Consumer<MetadataProperties.Builder> metadataProperties) Metadata properties of the tracking entity, trial, or trial component.
This is a convenience method that creates an instance of theMetadataProperties.Builder
avoiding the need to create one manually viaMetadataProperties.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadataProperties(MetadataProperties)
.- Parameters:
metadataProperties
- a consumer that will call methods onMetadataProperties.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelMetrics
Metrics for the model.
- Parameters:
modelMetrics
- Metrics for the model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelMetrics
Metrics for the model.
This is a convenience method that creates an instance of theModelMetrics.Builder
avoiding the need to create one manually viaModelMetrics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelMetrics(ModelMetrics)
.- Parameters:
modelMetrics
- a consumer that will call methods onModelMetrics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastModifiedTime
The last time the model package was modified.
- Parameters:
lastModifiedTime
- The last time the model package was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedBy
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
- Parameters:
lastModifiedBy
- Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedBy
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.
This is a convenience method that creates an instance of theUserContext.Builder
avoiding the need to create one manually viaUserContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolastModifiedBy(UserContext)
.- Parameters:
lastModifiedBy
- a consumer that will call methods onUserContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
approvalDescription
A description provided when the model approval is set.
- Parameters:
approvalDescription
- A description provided when the model approval is set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
domain
The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.
- Parameters:
domain
- The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
task
The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.
- Parameters:
task
- The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
samplePayloadUrl
The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
- Parameters:
samplePayloadUrl
- The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalInferenceSpecifications
ModelPackage.Builder additionalInferenceSpecifications(Collection<AdditionalInferenceSpecificationDefinition> additionalInferenceSpecifications) An array of additional Inference Specification objects.
- Parameters:
additionalInferenceSpecifications
- An array of additional Inference Specification objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalInferenceSpecifications
ModelPackage.Builder additionalInferenceSpecifications(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecifications) An array of additional Inference Specification objects.
- Parameters:
additionalInferenceSpecifications
- An array of additional Inference Specification objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalInferenceSpecifications
ModelPackage.Builder additionalInferenceSpecifications(Consumer<AdditionalInferenceSpecificationDefinition.Builder>... additionalInferenceSpecifications) An array of additional Inference Specification objects.
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 toadditionalInferenceSpecifications(List<AdditionalInferenceSpecificationDefinition>)
.- Parameters:
additionalInferenceSpecifications
- 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:
-
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.
-
tags
A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
- Parameters:
tags
- A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
- Parameters:
tags
- A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of the tags associated with the model package. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customerMetadataProperties
The metadata properties for the model package.
- Parameters:
customerMetadataProperties
- The metadata properties for the model package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
driftCheckBaselines
Represents the drift check baselines that can be used when the model monitor is set using the model package.
- Parameters:
driftCheckBaselines
- Represents the drift check baselines that can be used when the model monitor is set using the model package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
driftCheckBaselines
default ModelPackage.Builder driftCheckBaselines(Consumer<DriftCheckBaselines.Builder> driftCheckBaselines) Represents the drift check baselines that can be used when the model monitor is set using the model package.
This is a convenience method that creates an instance of theDriftCheckBaselines.Builder
avoiding the need to create one manually viaDriftCheckBaselines.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todriftCheckBaselines(DriftCheckBaselines)
.- Parameters:
driftCheckBaselines
- a consumer that will call methods onDriftCheckBaselines.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
skipModelValidation
Indicates if you want to skip model validation.
- Parameters:
skipModelValidation
- Indicates if you want to skip model validation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
skipModelValidation
Indicates if you want to skip model validation.
- Parameters:
skipModelValidation
- Indicates if you want to skip model validation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-