public static interface CreateModelPackageRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<CreateModelPackageRequest.Builder,CreateModelPackageRequest>
Modifier and Type | Method and Description |
---|---|
CreateModelPackageRequest.Builder |
additionalInferenceSpecifications(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecifications)
An array of additional Inference Specification objects.
|
CreateModelPackageRequest.Builder |
additionalInferenceSpecifications(Collection<AdditionalInferenceSpecificationDefinition> additionalInferenceSpecifications)
An array of additional Inference Specification objects.
|
CreateModelPackageRequest.Builder |
additionalInferenceSpecifications(Consumer<AdditionalInferenceSpecificationDefinition.Builder>... additionalInferenceSpecifications)
An array of additional Inference Specification objects.
|
CreateModelPackageRequest.Builder |
certifyForMarketplace(Boolean certifyForMarketplace)
Whether to certify the model package for listing on Amazon Web Services Marketplace.
|
CreateModelPackageRequest.Builder |
clientToken(String clientToken)
A unique token that guarantees that the call to this API is idempotent.
|
CreateModelPackageRequest.Builder |
customerMetadataProperties(Map<String,String> customerMetadataProperties)
The metadata properties associated with the model package versions.
|
CreateModelPackageRequest.Builder |
domain(String domain)
The machine learning domain of your model package and its components.
|
default CreateModelPackageRequest.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.
|
CreateModelPackageRequest.Builder |
driftCheckBaselines(DriftCheckBaselines driftCheckBaselines)
Represents the drift check baselines that can be used when the model monitor is set using the model package.
|
default CreateModelPackageRequest.Builder |
inferenceSpecification(Consumer<InferenceSpecification.Builder> inferenceSpecification)
Specifies details about inference jobs that can be run with models based on this model package, including the
following:
|
CreateModelPackageRequest.Builder |
inferenceSpecification(InferenceSpecification inferenceSpecification)
Specifies details about inference jobs that can be run with models based on this model package, including the
following:
|
default CreateModelPackageRequest.Builder |
metadataProperties(Consumer<MetadataProperties.Builder> metadataProperties)
Sets the value of the MetadataProperties property for this object.
|
CreateModelPackageRequest.Builder |
metadataProperties(MetadataProperties metadataProperties)
Sets the value of the MetadataProperties property for this object.
|
CreateModelPackageRequest.Builder |
modelApprovalStatus(ModelApprovalStatus modelApprovalStatus)
Whether the model is approved for deployment.
|
CreateModelPackageRequest.Builder |
modelApprovalStatus(String modelApprovalStatus)
Whether the model is approved for deployment.
|
default CreateModelPackageRequest.Builder |
modelMetrics(Consumer<ModelMetrics.Builder> modelMetrics)
A structure that contains model metrics reports.
|
CreateModelPackageRequest.Builder |
modelMetrics(ModelMetrics modelMetrics)
A structure that contains model metrics reports.
|
CreateModelPackageRequest.Builder |
modelPackageDescription(String modelPackageDescription)
A description of the model package.
|
CreateModelPackageRequest.Builder |
modelPackageGroupName(String modelPackageGroupName)
The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to.
|
CreateModelPackageRequest.Builder |
modelPackageName(String modelPackageName)
The name of the model package.
|
CreateModelPackageRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateModelPackageRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateModelPackageRequest.Builder |
samplePayloadUrl(String samplePayloadUrl)
The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored.
|
default CreateModelPackageRequest.Builder |
sourceAlgorithmSpecification(Consumer<SourceAlgorithmSpecification.Builder> sourceAlgorithmSpecification)
Details about the algorithm that was used to create the model package.
|
CreateModelPackageRequest.Builder |
sourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification)
Details about the algorithm that was used to create the model package.
|
CreateModelPackageRequest.Builder |
tags(Collection<Tag> tags)
A list of key value pairs associated with the model.
|
CreateModelPackageRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of key value pairs associated with the model.
|
CreateModelPackageRequest.Builder |
tags(Tag... tags)
A list of key value pairs associated with the model.
|
CreateModelPackageRequest.Builder |
task(String task)
The machine learning task your model package accomplishes.
|
default CreateModelPackageRequest.Builder |
validationSpecification(Consumer<ModelPackageValidationSpecification.Builder> validationSpecification)
Specifies configurations for one or more transform jobs that SageMaker runs to test the model package.
|
CreateModelPackageRequest.Builder |
validationSpecification(ModelPackageValidationSpecification validationSpecification)
Specifies configurations for one or more transform jobs that SageMaker runs to test the model package.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateModelPackageRequest.Builder modelPackageName(String modelPackageName)
The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
modelPackageName
- The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z,
0-9, and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
CreateModelPackageRequest.Builder modelPackageGroupName(String modelPackageGroupName)
The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to.
This parameter is required for versioned models, and does not apply to unversioned models.
modelPackageGroupName
- The name or Amazon Resource Name (ARN) of the model package group that this model version belongs
to.
This parameter is required for versioned models, and does not apply to unversioned models.
CreateModelPackageRequest.Builder modelPackageDescription(String modelPackageDescription)
A description of the model package.
modelPackageDescription
- A description of the model package.CreateModelPackageRequest.Builder inferenceSpecification(InferenceSpecification inferenceSpecification)
Specifies details about inference jobs that can be run with models based on this model package, including the following:
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
- Specifies details about inference jobs that can be run with models based on this model package,
including the following:
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.
default CreateModelPackageRequest.Builder inferenceSpecification(Consumer<InferenceSpecification.Builder> inferenceSpecification)
Specifies details about inference jobs that can be run with models based on this model package, including the following:
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 via InferenceSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to inferenceSpecification(InferenceSpecification)
.
inferenceSpecification
- a consumer that will call methods on InferenceSpecification.Builder
inferenceSpecification(InferenceSpecification)
CreateModelPackageRequest.Builder validationSpecification(ModelPackageValidationSpecification validationSpecification)
Specifies configurations for one or more transform jobs that SageMaker runs to test the model package.
validationSpecification
- Specifies configurations for one or more transform jobs that SageMaker runs to test the model package.default CreateModelPackageRequest.Builder validationSpecification(Consumer<ModelPackageValidationSpecification.Builder> validationSpecification)
Specifies configurations for one or more transform jobs that SageMaker runs to test the model package.
This is a convenience method that creates an instance of theModelPackageValidationSpecification.Builder
avoiding the need to create one manually via
ModelPackageValidationSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to validationSpecification(ModelPackageValidationSpecification)
.
validationSpecification
- a consumer that will call methods on ModelPackageValidationSpecification.Builder
validationSpecification(ModelPackageValidationSpecification)
CreateModelPackageRequest.Builder sourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification)
Details about the algorithm that was used to create the model package.
sourceAlgorithmSpecification
- Details about the algorithm that was used to create the model package.default CreateModelPackageRequest.Builder sourceAlgorithmSpecification(Consumer<SourceAlgorithmSpecification.Builder> sourceAlgorithmSpecification)
Details about the algorithm that was used to create the model package.
This is a convenience method that creates an instance of theSourceAlgorithmSpecification.Builder
avoiding the need to create one manually via SourceAlgorithmSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to sourceAlgorithmSpecification(SourceAlgorithmSpecification)
.
sourceAlgorithmSpecification
- a consumer that will call methods on SourceAlgorithmSpecification.Builder
sourceAlgorithmSpecification(SourceAlgorithmSpecification)
CreateModelPackageRequest.Builder certifyForMarketplace(Boolean certifyForMarketplace)
Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
certifyForMarketplace
- Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
CreateModelPackageRequest.Builder tags(Collection<Tag> tags)
A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
tags
- A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services
resources in the Amazon Web Services General Reference Guide.CreateModelPackageRequest.Builder tags(Tag... tags)
A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
tags
- A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services
resources in the Amazon Web Services General Reference Guide.CreateModelPackageRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of key value pairs associated with the model. 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
via Tag.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to #tags(List
.
tags
- a consumer that will call methods on
Tag.Builder
#tags(java.util.Collection)
CreateModelPackageRequest.Builder modelApprovalStatus(String modelApprovalStatus)
Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the model.
modelApprovalStatus
- Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the
model.
ModelApprovalStatus
,
ModelApprovalStatus
CreateModelPackageRequest.Builder modelApprovalStatus(ModelApprovalStatus modelApprovalStatus)
Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the model.
modelApprovalStatus
- Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to Approved
to deploy the
model.
ModelApprovalStatus
,
ModelApprovalStatus
CreateModelPackageRequest.Builder metadataProperties(MetadataProperties metadataProperties)
metadataProperties
- The new value for the MetadataProperties property for this object.default CreateModelPackageRequest.Builder metadataProperties(Consumer<MetadataProperties.Builder> metadataProperties)
MetadataProperties.Builder
avoiding the
need to create one manually via MetadataProperties.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to metadataProperties(MetadataProperties)
.
metadataProperties
- a consumer that will call methods on MetadataProperties.Builder
metadataProperties(MetadataProperties)
CreateModelPackageRequest.Builder modelMetrics(ModelMetrics modelMetrics)
A structure that contains model metrics reports.
modelMetrics
- A structure that contains model metrics reports.default CreateModelPackageRequest.Builder modelMetrics(Consumer<ModelMetrics.Builder> modelMetrics)
A structure that contains model metrics reports.
This is a convenience method that creates an instance of theModelMetrics.Builder
avoiding the need
to create one manually via ModelMetrics.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to modelMetrics(ModelMetrics)
.
modelMetrics
- a consumer that will call methods on ModelMetrics.Builder
modelMetrics(ModelMetrics)
CreateModelPackageRequest.Builder clientToken(String clientToken)
A unique token that guarantees that the call to this API is idempotent.
clientToken
- A unique token that guarantees that the call to this API is idempotent.CreateModelPackageRequest.Builder customerMetadataProperties(Map<String,String> customerMetadataProperties)
The metadata properties associated with the model package versions.
customerMetadataProperties
- The metadata properties associated with the model package versions.CreateModelPackageRequest.Builder driftCheckBaselines(DriftCheckBaselines driftCheckBaselines)
Represents the drift check baselines that can be used when the model monitor is set using the model package. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer Guide.
driftCheckBaselines
- Represents the drift check baselines that can be used when the model monitor is set using the model
package. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker
Developer Guide.default CreateModelPackageRequest.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. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer Guide.
This is a convenience method that creates an instance of theDriftCheckBaselines.Builder
avoiding the
need to create one manually via DriftCheckBaselines.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to driftCheckBaselines(DriftCheckBaselines)
.
driftCheckBaselines
- a consumer that will call methods on DriftCheckBaselines.Builder
driftCheckBaselines(DriftCheckBaselines)
CreateModelPackageRequest.Builder domain(String domain)
The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.
domain
- The machine learning domain of your model package and its components. Common machine learning domains
include computer vision and natural language processing.CreateModelPackageRequest.Builder task(String task)
The machine learning task your model package accomplishes. Common machine learning tasks include object
detection and image classification. The following tasks are supported by Inference Recommender:
"IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|
"IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
"REGRESSION"
| "OTHER"
.
Specify "OTHER" if none of the tasks listed fit your use case.
task
- The machine learning task your model package accomplishes. Common machine learning tasks include
object detection and image classification. The following tasks are supported by Inference Recommender:
"IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
| "TEXT_GENERATION"
|"IMAGE_SEGMENTATION"
| "FILL_MASK"
| "CLASSIFICATION"
|
"REGRESSION"
| "OTHER"
.
Specify "OTHER" if none of the tasks listed fit your use case.
CreateModelPackageRequest.Builder samplePayloadUrl(String samplePayloadUrl)
The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files that are all equally used in the load test. Each file in the archive must satisfy the size constraints of the InvokeEndpoint call.
samplePayloadUrl
- The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must
point to a single gzip compressed tar archive (.tar.gz suffix). This archive can hold multiple files
that are all equally used in the load test. Each file in the archive must satisfy the size constraints
of the InvokeEndpoint call.CreateModelPackageRequest.Builder additionalInferenceSpecifications(Collection<AdditionalInferenceSpecificationDefinition> additionalInferenceSpecifications)
An array of additional Inference Specification objects. 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.
additionalInferenceSpecifications
- An array of additional Inference Specification objects. 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.CreateModelPackageRequest.Builder additionalInferenceSpecifications(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecifications)
An array of additional Inference Specification objects. 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.
additionalInferenceSpecifications
- An array of additional Inference Specification objects. 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.CreateModelPackageRequest.Builder additionalInferenceSpecifications(Consumer<AdditionalInferenceSpecificationDefinition.Builder>... additionalInferenceSpecifications)
An array of additional Inference Specification objects. 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 via
AdditionalInferenceSpecificationDefinition.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its result is passed to #additionalInferenceSpecifications(List
.
additionalInferenceSpecifications
- a consumer that will call methods on
AdditionalInferenceSpecificationDefinition.Builder
#additionalInferenceSpecifications(java.util.Collection)
CreateModelPackageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
CreateModelPackageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.