Interface ModelPackage.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ModelPackage.Builder,ModelPackage>, SdkBuilder<ModelPackage.Builder,ModelPackage>, SdkPojo
Enclosing class:
ModelPackage

public static interface ModelPackage.Builder extends SdkPojo, CopyableBuilder<ModelPackage.Builder,ModelPackage>
  • Method Details

    • modelPackageName

      ModelPackage.Builder modelPackageName(String 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

      ModelPackage.Builder modelPackageGroupName(String 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

      ModelPackage.Builder modelPackageVersion(Integer 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

      ModelPackage.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.
    • modelPackageDescription

      ModelPackage.Builder modelPackageDescription(String 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

      ModelPackage.Builder creationTime(Instant 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

      ModelPackage.Builder inferenceSpecification(InferenceSpecification 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 the 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).

      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:
    • 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 the SourceAlgorithmSpecification.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).

      Parameters:
      sourceAlgorithmSpecification - a consumer that will call methods on SourceAlgorithmSpecification.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 the ModelPackageValidationSpecification.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).

      Parameters:
      validationSpecification - a consumer that will call methods on ModelPackageValidationSpecification.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • modelPackageStatus

      ModelPackage.Builder modelPackageStatus(String 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

      ModelPackage.Builder modelPackageStatus(ModelPackageStatus 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

      ModelPackage.Builder modelPackageStatusDetails(ModelPackageStatusDetails 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 the ModelPackageStatusDetails.Builder avoiding the need to create one manually via ModelPackageStatusDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to modelPackageStatusDetails(ModelPackageStatusDetails).

      Parameters:
      modelPackageStatusDetails - a consumer that will call methods on ModelPackageStatusDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • certifyForMarketplace

      ModelPackage.Builder certifyForMarketplace(Boolean 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

      ModelPackage.Builder modelApprovalStatus(String 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

      ModelPackage.Builder modelApprovalStatus(ModelApprovalStatus 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

      ModelPackage.Builder createdBy(UserContext 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

      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.

      This is a convenience method that creates an instance of the UserContext.Builder avoiding the need to create one manually via UserContext.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to createdBy(UserContext).

      Parameters:
      createdBy - a consumer that will call methods on UserContext.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metadataProperties

      ModelPackage.Builder metadataProperties(MetadataProperties 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 the 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).

      Parameters:
      metadataProperties - a consumer that will call methods on MetadataProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • modelMetrics

      ModelPackage.Builder modelMetrics(ModelMetrics 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

      default ModelPackage.Builder modelMetrics(Consumer<ModelMetrics.Builder> modelMetrics)

      Metrics for the model.

      This is a convenience method that creates an instance of the ModelMetrics.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).

      Parameters:
      modelMetrics - a consumer that will call methods on ModelMetrics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastModifiedTime

      ModelPackage.Builder lastModifiedTime(Instant 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

      ModelPackage.Builder lastModifiedBy(UserContext 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

      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.

      This is a convenience method that creates an instance of the UserContext.Builder avoiding the need to create one manually via UserContext.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lastModifiedBy(UserContext).

      Parameters:
      lastModifiedBy - a consumer that will call methods on UserContext.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • approvalDescription

      ModelPackage.Builder approvalDescription(String 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

      ModelPackage.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.

      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

      ModelPackage.Builder samplePayloadUrl(String 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 the AdditionalInferenceSpecificationDefinition.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<AdditionalInferenceSpecificationDefinition>).

      Parameters:
      additionalInferenceSpecifications - 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:
    • sourceUri

      ModelPackage.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.
    • 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

      ModelPackage.Builder tags(Tag... 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 the Tag.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<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • customerMetadataProperties

      ModelPackage.Builder customerMetadataProperties(Map<String,String> 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

      ModelPackage.Builder driftCheckBaselines(DriftCheckBaselines 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 the DriftCheckBaselines.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).

      Parameters:
      driftCheckBaselines - a consumer that will call methods on DriftCheckBaselines.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • skipModelValidation

      ModelPackage.Builder skipModelValidation(String 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

      ModelPackage.Builder skipModelValidation(SkipModelValidation 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: