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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ModelPackage.Builder
additionalInferenceSpecifications(Collection<AdditionalInferenceSpecificationDefinition> additionalInferenceSpecifications)
An array of additional Inference Specification objects.ModelPackage.Builder
additionalInferenceSpecifications(Consumer<AdditionalInferenceSpecificationDefinition.Builder>... additionalInferenceSpecifications)
An array of additional Inference Specification objects.ModelPackage.Builder
additionalInferenceSpecifications(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecifications)
An array of additional Inference Specification objects.ModelPackage.Builder
approvalDescription(String approvalDescription)
A description provided when the model approval is set.ModelPackage.Builder
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.ModelPackage.Builder
createdBy(UserContext createdBy)
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.ModelPackage.Builder
creationTime(Instant creationTime)
The time that the model package was created.ModelPackage.Builder
customerMetadataProperties(Map<String,String> customerMetadataProperties)
The metadata properties for the model package.ModelPackage.Builder
domain(String domain)
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.ModelPackage.Builder
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.ModelPackage.Builder
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.ModelPackage.Builder
lastModifiedBy(UserContext lastModifiedBy)
Information about the user who created or modified an experiment, trial, trial component, lineage group, or project.ModelPackage.Builder
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.ModelPackage.Builder
metadataProperties(MetadataProperties metadataProperties)
Metadata properties of the tracking entity, trial, or trial component.ModelPackage.Builder
modelApprovalStatus(String modelApprovalStatus)
The approval status of the model.ModelPackage.Builder
modelApprovalStatus(ModelApprovalStatus modelApprovalStatus)
The approval status of the model.default ModelPackage.Builder
modelCard(Consumer<ModelPackageModelCard.Builder> modelCard)
Sets the value of the ModelCard property for this object.ModelPackage.Builder
modelCard(ModelPackageModelCard modelCard)
Sets the value of the ModelCard property for this object.default ModelPackage.Builder
modelMetrics(Consumer<ModelMetrics.Builder> modelMetrics)
Metrics for the model.ModelPackage.Builder
modelMetrics(ModelMetrics modelMetrics)
Metrics for the model.ModelPackage.Builder
modelPackageArn(String modelPackageArn)
The Amazon Resource Name (ARN) of the model package.ModelPackage.Builder
modelPackageDescription(String modelPackageDescription)
The description of the model package.ModelPackage.Builder
modelPackageGroupName(String modelPackageGroupName)
The model group to which the model belongs.ModelPackage.Builder
modelPackageName(String modelPackageName)
The name of the model.ModelPackage.Builder
modelPackageStatus(String modelPackageStatus)
The status of the model package.ModelPackage.Builder
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.ModelPackage.Builder
modelPackageStatusDetails(ModelPackageStatusDetails modelPackageStatusDetails)
Specifies the validation and image scan statuses of the model package.ModelPackage.Builder
modelPackageVersion(Integer modelPackageVersion)
The version number of a versioned model.ModelPackage.Builder
samplePayloadUrl(String samplePayloadUrl)
The Amazon Simple Storage Service path where the sample payload are stored.default ModelPackage.Builder
securityConfig(Consumer<ModelPackageSecurityConfig.Builder> securityConfig)
Sets the value of the SecurityConfig property for this object.ModelPackage.Builder
securityConfig(ModelPackageSecurityConfig securityConfig)
Sets the value of the SecurityConfig property for this object.ModelPackage.Builder
skipModelValidation(String skipModelValidation)
Indicates if you want to skip model validation.ModelPackage.Builder
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.ModelPackage.Builder
sourceAlgorithmSpecification(SourceAlgorithmSpecification sourceAlgorithmSpecification)
A list of algorithms that were used to create a model package.ModelPackage.Builder
sourceUri(String sourceUri)
The URI of the source for the model package.ModelPackage.Builder
tags(Collection<Tag> tags)
A list of the tags associated with the model package.ModelPackage.Builder
tags(Consumer<Tag.Builder>... tags)
A list of the tags associated with the model package.ModelPackage.Builder
tags(Tag... tags)
A list of the tags associated with the model package.ModelPackage.Builder
task(String task)
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.ModelPackage.Builder
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 Detail
-
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 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:
inferenceSpecification(InferenceSpecification)
-
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:
sourceAlgorithmSpecification(SourceAlgorithmSpecification)
-
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:
validationSpecification(ModelPackageValidationSpecification)
-
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
,ModelPackageStatus
-
-
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:
ModelPackageStatus
,ModelPackageStatus
-
-
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 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:
modelPackageStatusDetails(ModelPackageStatusDetails)
-
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
,ModelApprovalStatus
-
-
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:
ModelApprovalStatus
,ModelApprovalStatus
-
-
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 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:
createdBy(UserContext)
-
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 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:
metadataProperties(MetadataProperties)
-
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 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:
modelMetrics(ModelMetrics)
-
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 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:
lastModifiedBy(UserContext)
-
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
ModelPackage.Builder task(String 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 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#additionalInferenceSpecifications(List
.) - 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:
#additionalInferenceSpecifications(java.util.Collection
)
-
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.
-
securityConfig
ModelPackage.Builder securityConfig(ModelPackageSecurityConfig securityConfig)
Sets the value of the SecurityConfig property for this object.- Parameters:
securityConfig
- The new value for the SecurityConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityConfig
default ModelPackage.Builder securityConfig(Consumer<ModelPackageSecurityConfig.Builder> securityConfig)
Sets the value of the SecurityConfig property for this object. This is a convenience method that creates an instance of theModelPackageSecurityConfig.Builder
avoiding the need to create one manually viaModelPackageSecurityConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityConfig(ModelPackageSecurityConfig)
.- Parameters:
securityConfig
- a consumer that will call methods onModelPackageSecurityConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
securityConfig(ModelPackageSecurityConfig)
-
modelCard
ModelPackage.Builder modelCard(ModelPackageModelCard modelCard)
Sets the value of the ModelCard property for this object.- Parameters:
modelCard
- The new value for the ModelCard property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelCard
default ModelPackage.Builder modelCard(Consumer<ModelPackageModelCard.Builder> modelCard)
Sets the value of the ModelCard property for this object. This is a convenience method that creates an instance of theModelPackageModelCard.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)
-
tags
ModelPackage.Builder tags(Collection<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
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
ModelPackage.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
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 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:
driftCheckBaselines(DriftCheckBaselines)
-
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
,SkipModelValidation
-
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:
SkipModelValidation
,SkipModelValidation
-
-