All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.sagemaker.CfnModelPackageProps Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.sagemaker;

/**
 * Properties for defining a `CfnModelPackage`.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.sagemaker.*;
 * Object environment;
 * Object modelInput;
 * CfnModelPackageProps cfnModelPackageProps = CfnModelPackageProps.builder()
 *         .additionalInferenceSpecificationDefinition(AdditionalInferenceSpecificationDefinitionProperty.builder()
 *                 .containers(List.of(ModelPackageContainerDefinitionProperty.builder()
 *                         .image("image")
 *                         // the properties below are optional
 *                         .containerHostname("containerHostname")
 *                         .environment(environment)
 *                         .framework("framework")
 *                         .frameworkVersion("frameworkVersion")
 *                         .imageDigest("imageDigest")
 *                         .modelDataUrl("modelDataUrl")
 *                         .modelInput(modelInput)
 *                         .nearestModelName("nearestModelName")
 *                         .productId("productId")
 *                         .build()))
 *                 .name("name")
 *                 // the properties below are optional
 *                 .description("description")
 *                 .supportedContentTypes(List.of("supportedContentTypes"))
 *                 .supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
 *                 .supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
 *                 .supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
 *                 .build())
 *         .additionalInferenceSpecifications(List.of(AdditionalInferenceSpecificationDefinitionProperty.builder()
 *                 .containers(List.of(ModelPackageContainerDefinitionProperty.builder()
 *                         .image("image")
 *                         // the properties below are optional
 *                         .containerHostname("containerHostname")
 *                         .environment(environment)
 *                         .framework("framework")
 *                         .frameworkVersion("frameworkVersion")
 *                         .imageDigest("imageDigest")
 *                         .modelDataUrl("modelDataUrl")
 *                         .modelInput(modelInput)
 *                         .nearestModelName("nearestModelName")
 *                         .productId("productId")
 *                         .build()))
 *                 .name("name")
 *                 // the properties below are optional
 *                 .description("description")
 *                 .supportedContentTypes(List.of("supportedContentTypes"))
 *                 .supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
 *                 .supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
 *                 .supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
 *                 .build()))
 *         .additionalInferenceSpecificationsToAdd(List.of(AdditionalInferenceSpecificationDefinitionProperty.builder()
 *                 .containers(List.of(ModelPackageContainerDefinitionProperty.builder()
 *                         .image("image")
 *                         // the properties below are optional
 *                         .containerHostname("containerHostname")
 *                         .environment(environment)
 *                         .framework("framework")
 *                         .frameworkVersion("frameworkVersion")
 *                         .imageDigest("imageDigest")
 *                         .modelDataUrl("modelDataUrl")
 *                         .modelInput(modelInput)
 *                         .nearestModelName("nearestModelName")
 *                         .productId("productId")
 *                         .build()))
 *                 .name("name")
 *                 // the properties below are optional
 *                 .description("description")
 *                 .supportedContentTypes(List.of("supportedContentTypes"))
 *                 .supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
 *                 .supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
 *                 .supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
 *                 .build()))
 *         .approvalDescription("approvalDescription")
 *         .certifyForMarketplace(false)
 *         .clientToken("clientToken")
 *         .createdBy(UserContextProperty.builder()
 *                 .domainId("domainId")
 *                 .userProfileArn("userProfileArn")
 *                 .userProfileName("userProfileName")
 *                 .build())
 *         .customerMetadataProperties(Map.of(
 *                 "customerMetadataPropertiesKey", "customerMetadataProperties"))
 *         .domain("domain")
 *         .driftCheckBaselines(DriftCheckBaselinesProperty.builder()
 *                 .bias(DriftCheckBiasProperty.builder()
 *                         .configFile(FileSourceProperty.builder()
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .contentType("contentType")
 *                                 .build())
 *                         .postTrainingConstraints(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .preTrainingConstraints(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .build())
 *                 .explainability(DriftCheckExplainabilityProperty.builder()
 *                         .configFile(FileSourceProperty.builder()
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .contentType("contentType")
 *                                 .build())
 *                         .constraints(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .build())
 *                 .modelDataQuality(DriftCheckModelDataQualityProperty.builder()
 *                         .constraints(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .statistics(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .build())
 *                 .modelQuality(DriftCheckModelQualityProperty.builder()
 *                         .constraints(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .statistics(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .build())
 *                 .build())
 *         .environment(Map.of(
 *                 "environmentKey", "environment"))
 *         .inferenceSpecification(InferenceSpecificationProperty.builder()
 *                 .containers(List.of(ModelPackageContainerDefinitionProperty.builder()
 *                         .image("image")
 *                         // the properties below are optional
 *                         .containerHostname("containerHostname")
 *                         .environment(environment)
 *                         .framework("framework")
 *                         .frameworkVersion("frameworkVersion")
 *                         .imageDigest("imageDigest")
 *                         .modelDataUrl("modelDataUrl")
 *                         .modelInput(modelInput)
 *                         .nearestModelName("nearestModelName")
 *                         .productId("productId")
 *                         .build()))
 *                 .supportedContentTypes(List.of("supportedContentTypes"))
 *                 .supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
 *                 // the properties below are optional
 *                 .supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
 *                 .supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
 *                 .build())
 *         .lastModifiedBy(UserContextProperty.builder()
 *                 .domainId("domainId")
 *                 .userProfileArn("userProfileArn")
 *                 .userProfileName("userProfileName")
 *                 .build())
 *         .lastModifiedTime("lastModifiedTime")
 *         .metadataProperties(MetadataPropertiesProperty.builder()
 *                 .commitId("commitId")
 *                 .generatedBy("generatedBy")
 *                 .projectId("projectId")
 *                 .repository("repository")
 *                 .build())
 *         .modelApprovalStatus("modelApprovalStatus")
 *         .modelMetrics(ModelMetricsProperty.builder()
 *                 .bias(BiasProperty.builder()
 *                         .postTrainingReport(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .preTrainingReport(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .report(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .build())
 *                 .explainability(ExplainabilityProperty.builder()
 *                         .report(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .build())
 *                 .modelDataQuality(ModelDataQualityProperty.builder()
 *                         .constraints(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .statistics(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .build())
 *                 .modelQuality(ModelQualityProperty.builder()
 *                         .constraints(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .statistics(MetricsSourceProperty.builder()
 *                                 .contentType("contentType")
 *                                 .s3Uri("s3Uri")
 *                                 // the properties below are optional
 *                                 .contentDigest("contentDigest")
 *                                 .build())
 *                         .build())
 *                 .build())
 *         .modelPackageDescription("modelPackageDescription")
 *         .modelPackageGroupName("modelPackageGroupName")
 *         .modelPackageName("modelPackageName")
 *         .modelPackageStatusDetails(ModelPackageStatusDetailsProperty.builder()
 *                 .validationStatuses(List.of(ModelPackageStatusItemProperty.builder()
 *                         .name("name")
 *                         .status("status")
 *                         // the properties below are optional
 *                         .failureReason("failureReason")
 *                         .build()))
 *                 // the properties below are optional
 *                 .imageScanStatuses(List.of(ModelPackageStatusItemProperty.builder()
 *                         .name("name")
 *                         .status("status")
 *                         // the properties below are optional
 *                         .failureReason("failureReason")
 *                         .build()))
 *                 .build())
 *         .modelPackageStatusItem(ModelPackageStatusItemProperty.builder()
 *                 .name("name")
 *                 .status("status")
 *                 // the properties below are optional
 *                 .failureReason("failureReason")
 *                 .build())
 *         .modelPackageVersion(123)
 *         .samplePayloadUrl("samplePayloadUrl")
 *         .sourceAlgorithmSpecification(SourceAlgorithmSpecificationProperty.builder()
 *                 .sourceAlgorithms(List.of(SourceAlgorithmProperty.builder()
 *                         .algorithmName("algorithmName")
 *                         // the properties below are optional
 *                         .modelDataUrl("modelDataUrl")
 *                         .build()))
 *                 .build())
 *         .tags(List.of(CfnTag.builder()
 *                 .key("key")
 *                 .value("value")
 *                 .build()))
 *         .task("task")
 *         .validationSpecification(ValidationSpecificationProperty.builder()
 *                 .validationProfiles(List.of(ValidationProfileProperty.builder()
 *                         .profileName("profileName")
 *                         .transformJobDefinition(TransformJobDefinitionProperty.builder()
 *                                 .transformInput(TransformInputProperty.builder()
 *                                         .dataSource(DataSourceProperty.builder()
 *                                                 .s3DataSource(S3DataSourceProperty.builder()
 *                                                         .s3DataType("s3DataType")
 *                                                         .s3Uri("s3Uri")
 *                                                         .build())
 *                                                 .build())
 *                                         // the properties below are optional
 *                                         .compressionType("compressionType")
 *                                         .contentType("contentType")
 *                                         .splitType("splitType")
 *                                         .build())
 *                                 .transformOutput(TransformOutputProperty.builder()
 *                                         .s3OutputPath("s3OutputPath")
 *                                         // the properties below are optional
 *                                         .accept("accept")
 *                                         .assembleWith("assembleWith")
 *                                         .kmsKeyId("kmsKeyId")
 *                                         .build())
 *                                 .transformResources(TransformResourcesProperty.builder()
 *                                         .instanceCount(123)
 *                                         .instanceType("instanceType")
 *                                         // the properties below are optional
 *                                         .volumeKmsKeyId("volumeKmsKeyId")
 *                                         .build())
 *                                 // the properties below are optional
 *                                 .batchStrategy("batchStrategy")
 *                                 .environment(environment)
 *                                 .maxConcurrentTransforms(123)
 *                                 .maxPayloadInMb(123)
 *                                 .build())
 *                         .build()))
 *                 .validationRole("validationRole")
 *                 .build())
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.70.0 (build 03c2f6f)", date = "2022-11-01T13:16:28.607Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.sagemaker.$Module.class, fqn = "@aws-cdk/aws-sagemaker.CfnModelPackageProps") @software.amazon.jsii.Jsii.Proxy(CfnModelPackageProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface CfnModelPackageProps extends software.amazon.jsii.JsiiSerializable { /** * `AWS::SageMaker::ModelPackage.AdditionalInferenceSpecificationDefinition`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getAdditionalInferenceSpecificationDefinition() { return null; } /** * An array of additional Inference Specification objects. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getAdditionalInferenceSpecifications() { return null; } /** * `AWS::SageMaker::ModelPackage.AdditionalInferenceSpecificationsToAdd`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getAdditionalInferenceSpecificationsToAdd() { return null; } /** * A description provided when the model approval is set. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getApprovalDescription() { return null; } /** * Whether the model package is to be certified to be listed on AWS Marketplace. *

* For information about listing model packages on AWS Marketplace, see List Your Algorithm or Model Package on AWS Marketplace . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getCertifyForMarketplace() { return null; } /** * `AWS::SageMaker::ModelPackage.ClientToken`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getClientToken() { return null; } /** * `AWS::SageMaker::ModelPackage.CreatedBy`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getCreatedBy() { return null; } /** * The metadata properties for the model package. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getCustomerMetadataProperties() { return null; } /** * The machine learning domain of your model package and its components. *

* Common machine learning domains include computer vision and natural language processing. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getDomain() { return null; } /** * Represents the drift check baselines that can be used when the model monitor is set using the model package. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getDriftCheckBaselines() { return null; } /** * The environment variables to set in the Docker container. *

* Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getEnvironment() { return null; } /** * `AWS::SageMaker::ModelPackage.InferenceSpecification`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getInferenceSpecification() { return null; } /** * `AWS::SageMaker::ModelPackage.LastModifiedBy`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getLastModifiedBy() { return null; } /** * The last time the model package was modified. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getLastModifiedTime() { return null; } /** * `AWS::SageMaker::ModelPackage.MetadataProperties`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getMetadataProperties() { return null; } /** * 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.
  • *
*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getModelApprovalStatus() { return null; } /** * Metrics for the model. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getModelMetrics() { return null; } /** * The description of the model package. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getModelPackageDescription() { return null; } /** * The model group to which the model belongs. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getModelPackageGroupName() { return null; } /** * The name of the model. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getModelPackageName() { return null; } /** * `AWS::SageMaker::ModelPackage.ModelPackageStatusDetails`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getModelPackageStatusDetails() { return null; } /** * `AWS::SageMaker::ModelPackage.ModelPackageStatusItem`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getModelPackageStatusItem() { return null; } /** * The version number of a versioned model. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Number getModelPackageVersion() { return null; } /** * 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). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getSamplePayloadUrl() { return null; } /** * `AWS::SageMaker::ModelPackage.SourceAlgorithmSpecification`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getSourceAlgorithmSpecification() { return null; } /** * A list of the tags associated with the model package. *

* For more information, see Tagging AWS resources in the AWS General Reference Guide . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getTags() { return null; } /** * The machine learning task your model package accomplishes. *

* Common machine learning tasks include object detection and image classification. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getTask() { return null; } /** * `AWS::SageMaker::ModelPackage.ValidationSpecification`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getValidationSpecification() { return null; } /** * @return a {@link Builder} of {@link CfnModelPackageProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnModelPackageProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object additionalInferenceSpecificationDefinition; java.lang.Object additionalInferenceSpecifications; java.lang.Object additionalInferenceSpecificationsToAdd; java.lang.String approvalDescription; java.lang.Object certifyForMarketplace; java.lang.String clientToken; java.lang.Object createdBy; java.lang.Object customerMetadataProperties; java.lang.String domain; java.lang.Object driftCheckBaselines; java.lang.Object environment; java.lang.Object inferenceSpecification; java.lang.Object lastModifiedBy; java.lang.String lastModifiedTime; java.lang.Object metadataProperties; java.lang.String modelApprovalStatus; java.lang.Object modelMetrics; java.lang.String modelPackageDescription; java.lang.String modelPackageGroupName; java.lang.String modelPackageName; java.lang.Object modelPackageStatusDetails; java.lang.Object modelPackageStatusItem; java.lang.Number modelPackageVersion; java.lang.String samplePayloadUrl; java.lang.Object sourceAlgorithmSpecification; java.util.List tags; java.lang.String task; java.lang.Object validationSpecification; /** * Sets the value of {@link CfnModelPackageProps#getAdditionalInferenceSpecificationDefinition} * @param additionalInferenceSpecificationDefinition `AWS::SageMaker::ModelPackage.AdditionalInferenceSpecificationDefinition`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder additionalInferenceSpecificationDefinition(software.amazon.awscdk.core.IResolvable additionalInferenceSpecificationDefinition) { this.additionalInferenceSpecificationDefinition = additionalInferenceSpecificationDefinition; return this; } /** * Sets the value of {@link CfnModelPackageProps#getAdditionalInferenceSpecificationDefinition} * @param additionalInferenceSpecificationDefinition `AWS::SageMaker::ModelPackage.AdditionalInferenceSpecificationDefinition`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder additionalInferenceSpecificationDefinition(software.amazon.awscdk.services.sagemaker.CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty additionalInferenceSpecificationDefinition) { this.additionalInferenceSpecificationDefinition = additionalInferenceSpecificationDefinition; return this; } /** * Sets the value of {@link CfnModelPackageProps#getAdditionalInferenceSpecifications} * @param additionalInferenceSpecifications An array of additional Inference Specification objects. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder additionalInferenceSpecifications(software.amazon.awscdk.core.IResolvable additionalInferenceSpecifications) { this.additionalInferenceSpecifications = additionalInferenceSpecifications; return this; } /** * Sets the value of {@link CfnModelPackageProps#getAdditionalInferenceSpecifications} * @param additionalInferenceSpecifications An array of additional Inference Specification objects. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder additionalInferenceSpecifications(java.util.List additionalInferenceSpecifications) { this.additionalInferenceSpecifications = additionalInferenceSpecifications; return this; } /** * Sets the value of {@link CfnModelPackageProps#getAdditionalInferenceSpecificationsToAdd} * @param additionalInferenceSpecificationsToAdd `AWS::SageMaker::ModelPackage.AdditionalInferenceSpecificationsToAdd`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder additionalInferenceSpecificationsToAdd(software.amazon.awscdk.core.IResolvable additionalInferenceSpecificationsToAdd) { this.additionalInferenceSpecificationsToAdd = additionalInferenceSpecificationsToAdd; return this; } /** * Sets the value of {@link CfnModelPackageProps#getAdditionalInferenceSpecificationsToAdd} * @param additionalInferenceSpecificationsToAdd `AWS::SageMaker::ModelPackage.AdditionalInferenceSpecificationsToAdd`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder additionalInferenceSpecificationsToAdd(java.util.List additionalInferenceSpecificationsToAdd) { this.additionalInferenceSpecificationsToAdd = additionalInferenceSpecificationsToAdd; return this; } /** * Sets the value of {@link CfnModelPackageProps#getApprovalDescription} * @param approvalDescription A description provided when the model approval is set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder approvalDescription(java.lang.String approvalDescription) { this.approvalDescription = approvalDescription; return this; } /** * Sets the value of {@link CfnModelPackageProps#getCertifyForMarketplace} * @param certifyForMarketplace Whether the model package is to be certified to be listed on AWS Marketplace. * For information about listing model packages on AWS Marketplace, see List Your Algorithm or Model Package on AWS Marketplace . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder certifyForMarketplace(java.lang.Boolean certifyForMarketplace) { this.certifyForMarketplace = certifyForMarketplace; return this; } /** * Sets the value of {@link CfnModelPackageProps#getCertifyForMarketplace} * @param certifyForMarketplace Whether the model package is to be certified to be listed on AWS Marketplace. * For information about listing model packages on AWS Marketplace, see List Your Algorithm or Model Package on AWS Marketplace . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder certifyForMarketplace(software.amazon.awscdk.core.IResolvable certifyForMarketplace) { this.certifyForMarketplace = certifyForMarketplace; return this; } /** * Sets the value of {@link CfnModelPackageProps#getClientToken} * @param clientToken `AWS::SageMaker::ModelPackage.ClientToken`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder clientToken(java.lang.String clientToken) { this.clientToken = clientToken; return this; } /** * Sets the value of {@link CfnModelPackageProps#getCreatedBy} * @param createdBy `AWS::SageMaker::ModelPackage.CreatedBy`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder createdBy(software.amazon.awscdk.core.IResolvable createdBy) { this.createdBy = createdBy; return this; } /** * Sets the value of {@link CfnModelPackageProps#getCreatedBy} * @param createdBy `AWS::SageMaker::ModelPackage.CreatedBy`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder createdBy(software.amazon.awscdk.services.sagemaker.CfnModelPackage.UserContextProperty createdBy) { this.createdBy = createdBy; return this; } /** * Sets the value of {@link CfnModelPackageProps#getCustomerMetadataProperties} * @param customerMetadataProperties The metadata properties for the model package. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder customerMetadataProperties(software.amazon.awscdk.core.IResolvable customerMetadataProperties) { this.customerMetadataProperties = customerMetadataProperties; return this; } /** * Sets the value of {@link CfnModelPackageProps#getCustomerMetadataProperties} * @param customerMetadataProperties The metadata properties for the model package. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder customerMetadataProperties(java.util.Map customerMetadataProperties) { this.customerMetadataProperties = customerMetadataProperties; return this; } /** * Sets the value of {@link CfnModelPackageProps#getDomain} * @param domain The machine learning domain of your model package and its components. * Common machine learning domains include computer vision and natural language processing. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder domain(java.lang.String domain) { this.domain = domain; return this; } /** * Sets the value of {@link CfnModelPackageProps#getDriftCheckBaselines} * @param driftCheckBaselines Represents the drift check baselines that can be used when the model monitor is set using the model package. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder driftCheckBaselines(software.amazon.awscdk.core.IResolvable driftCheckBaselines) { this.driftCheckBaselines = driftCheckBaselines; return this; } /** * Sets the value of {@link CfnModelPackageProps#getDriftCheckBaselines} * @param driftCheckBaselines Represents the drift check baselines that can be used when the model monitor is set using the model package. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder driftCheckBaselines(software.amazon.awscdk.services.sagemaker.CfnModelPackage.DriftCheckBaselinesProperty driftCheckBaselines) { this.driftCheckBaselines = driftCheckBaselines; return this; } /** * Sets the value of {@link CfnModelPackageProps#getEnvironment} * @param environment The environment variables to set in the Docker container. * Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder environment(software.amazon.awscdk.core.IResolvable environment) { this.environment = environment; return this; } /** * Sets the value of {@link CfnModelPackageProps#getEnvironment} * @param environment The environment variables to set in the Docker container. * Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder environment(java.util.Map environment) { this.environment = environment; return this; } /** * Sets the value of {@link CfnModelPackageProps#getInferenceSpecification} * @param inferenceSpecification `AWS::SageMaker::ModelPackage.InferenceSpecification`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder inferenceSpecification(software.amazon.awscdk.core.IResolvable inferenceSpecification) { this.inferenceSpecification = inferenceSpecification; return this; } /** * Sets the value of {@link CfnModelPackageProps#getInferenceSpecification} * @param inferenceSpecification `AWS::SageMaker::ModelPackage.InferenceSpecification`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder inferenceSpecification(software.amazon.awscdk.services.sagemaker.CfnModelPackage.InferenceSpecificationProperty inferenceSpecification) { this.inferenceSpecification = inferenceSpecification; return this; } /** * Sets the value of {@link CfnModelPackageProps#getLastModifiedBy} * @param lastModifiedBy `AWS::SageMaker::ModelPackage.LastModifiedBy`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder lastModifiedBy(software.amazon.awscdk.core.IResolvable lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; return this; } /** * Sets the value of {@link CfnModelPackageProps#getLastModifiedBy} * @param lastModifiedBy `AWS::SageMaker::ModelPackage.LastModifiedBy`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder lastModifiedBy(software.amazon.awscdk.services.sagemaker.CfnModelPackage.UserContextProperty lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; return this; } /** * Sets the value of {@link CfnModelPackageProps#getLastModifiedTime} * @param lastModifiedTime The last time the model package was modified. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder lastModifiedTime(java.lang.String lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; return this; } /** * Sets the value of {@link CfnModelPackageProps#getMetadataProperties} * @param metadataProperties `AWS::SageMaker::ModelPackage.MetadataProperties`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder metadataProperties(software.amazon.awscdk.core.IResolvable metadataProperties) { this.metadataProperties = metadataProperties; return this; } /** * Sets the value of {@link CfnModelPackageProps#getMetadataProperties} * @param metadataProperties `AWS::SageMaker::ModelPackage.MetadataProperties`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder metadataProperties(software.amazon.awscdk.services.sagemaker.CfnModelPackage.MetadataPropertiesProperty metadataProperties) { this.metadataProperties = metadataProperties; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelApprovalStatus} * @param 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.
  • *
* @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelApprovalStatus(java.lang.String modelApprovalStatus) { this.modelApprovalStatus = modelApprovalStatus; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelMetrics} * @param modelMetrics Metrics for the model. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelMetrics(software.amazon.awscdk.core.IResolvable modelMetrics) { this.modelMetrics = modelMetrics; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelMetrics} * @param modelMetrics Metrics for the model. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelMetrics(software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelMetricsProperty modelMetrics) { this.modelMetrics = modelMetrics; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelPackageDescription} * @param modelPackageDescription The description of the model package. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelPackageDescription(java.lang.String modelPackageDescription) { this.modelPackageDescription = modelPackageDescription; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelPackageGroupName} * @param modelPackageGroupName The model group to which the model belongs. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelPackageGroupName(java.lang.String modelPackageGroupName) { this.modelPackageGroupName = modelPackageGroupName; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelPackageName} * @param modelPackageName The name of the model. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelPackageName(java.lang.String modelPackageName) { this.modelPackageName = modelPackageName; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelPackageStatusDetails} * @param modelPackageStatusDetails `AWS::SageMaker::ModelPackage.ModelPackageStatusDetails`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelPackageStatusDetails(software.amazon.awscdk.core.IResolvable modelPackageStatusDetails) { this.modelPackageStatusDetails = modelPackageStatusDetails; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelPackageStatusDetails} * @param modelPackageStatusDetails `AWS::SageMaker::ModelPackage.ModelPackageStatusDetails`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelPackageStatusDetails(software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelPackageStatusDetailsProperty modelPackageStatusDetails) { this.modelPackageStatusDetails = modelPackageStatusDetails; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelPackageStatusItem} * @param modelPackageStatusItem `AWS::SageMaker::ModelPackage.ModelPackageStatusItem`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelPackageStatusItem(software.amazon.awscdk.core.IResolvable modelPackageStatusItem) { this.modelPackageStatusItem = modelPackageStatusItem; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelPackageStatusItem} * @param modelPackageStatusItem `AWS::SageMaker::ModelPackage.ModelPackageStatusItem`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelPackageStatusItem(software.amazon.awscdk.services.sagemaker.CfnModelPackage.ModelPackageStatusItemProperty modelPackageStatusItem) { this.modelPackageStatusItem = modelPackageStatusItem; return this; } /** * Sets the value of {@link CfnModelPackageProps#getModelPackageVersion} * @param modelPackageVersion The version number of a versioned model. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder modelPackageVersion(java.lang.Number modelPackageVersion) { this.modelPackageVersion = modelPackageVersion; return this; } /** * Sets the value of {@link CfnModelPackageProps#getSamplePayloadUrl} * @param 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). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder samplePayloadUrl(java.lang.String samplePayloadUrl) { this.samplePayloadUrl = samplePayloadUrl; return this; } /** * Sets the value of {@link CfnModelPackageProps#getSourceAlgorithmSpecification} * @param sourceAlgorithmSpecification `AWS::SageMaker::ModelPackage.SourceAlgorithmSpecification`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder sourceAlgorithmSpecification(software.amazon.awscdk.core.IResolvable sourceAlgorithmSpecification) { this.sourceAlgorithmSpecification = sourceAlgorithmSpecification; return this; } /** * Sets the value of {@link CfnModelPackageProps#getSourceAlgorithmSpecification} * @param sourceAlgorithmSpecification `AWS::SageMaker::ModelPackage.SourceAlgorithmSpecification`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder sourceAlgorithmSpecification(software.amazon.awscdk.services.sagemaker.CfnModelPackage.SourceAlgorithmSpecificationProperty sourceAlgorithmSpecification) { this.sourceAlgorithmSpecification = sourceAlgorithmSpecification; return this; } /** * Sets the value of {@link CfnModelPackageProps#getTags} * @param tags A list of the tags associated with the model package. * For more information, see Tagging AWS resources in the AWS General Reference Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder tags(java.util.List tags) { this.tags = (java.util.List)tags; return this; } /** * Sets the value of {@link CfnModelPackageProps#getTask} * @param task The machine learning task your model package accomplishes. * Common machine learning tasks include object detection and image classification. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder task(java.lang.String task) { this.task = task; return this; } /** * Sets the value of {@link CfnModelPackageProps#getValidationSpecification} * @param validationSpecification `AWS::SageMaker::ModelPackage.ValidationSpecification`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder validationSpecification(software.amazon.awscdk.core.IResolvable validationSpecification) { this.validationSpecification = validationSpecification; return this; } /** * Sets the value of {@link CfnModelPackageProps#getValidationSpecification} * @param validationSpecification `AWS::SageMaker::ModelPackage.ValidationSpecification`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder validationSpecification(software.amazon.awscdk.services.sagemaker.CfnModelPackage.ValidationSpecificationProperty validationSpecification) { this.validationSpecification = validationSpecification; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnModelPackageProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnModelPackageProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CfnModelPackageProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnModelPackageProps { private final java.lang.Object additionalInferenceSpecificationDefinition; private final java.lang.Object additionalInferenceSpecifications; private final java.lang.Object additionalInferenceSpecificationsToAdd; private final java.lang.String approvalDescription; private final java.lang.Object certifyForMarketplace; private final java.lang.String clientToken; private final java.lang.Object createdBy; private final java.lang.Object customerMetadataProperties; private final java.lang.String domain; private final java.lang.Object driftCheckBaselines; private final java.lang.Object environment; private final java.lang.Object inferenceSpecification; private final java.lang.Object lastModifiedBy; private final java.lang.String lastModifiedTime; private final java.lang.Object metadataProperties; private final java.lang.String modelApprovalStatus; private final java.lang.Object modelMetrics; private final java.lang.String modelPackageDescription; private final java.lang.String modelPackageGroupName; private final java.lang.String modelPackageName; private final java.lang.Object modelPackageStatusDetails; private final java.lang.Object modelPackageStatusItem; private final java.lang.Number modelPackageVersion; private final java.lang.String samplePayloadUrl; private final java.lang.Object sourceAlgorithmSpecification; private final java.util.List tags; private final java.lang.String task; private final java.lang.Object validationSpecification; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.additionalInferenceSpecificationDefinition = software.amazon.jsii.Kernel.get(this, "additionalInferenceSpecificationDefinition", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.additionalInferenceSpecifications = software.amazon.jsii.Kernel.get(this, "additionalInferenceSpecifications", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.additionalInferenceSpecificationsToAdd = software.amazon.jsii.Kernel.get(this, "additionalInferenceSpecificationsToAdd", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.approvalDescription = software.amazon.jsii.Kernel.get(this, "approvalDescription", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.certifyForMarketplace = software.amazon.jsii.Kernel.get(this, "certifyForMarketplace", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.clientToken = software.amazon.jsii.Kernel.get(this, "clientToken", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.createdBy = software.amazon.jsii.Kernel.get(this, "createdBy", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.customerMetadataProperties = software.amazon.jsii.Kernel.get(this, "customerMetadataProperties", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.domain = software.amazon.jsii.Kernel.get(this, "domain", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.driftCheckBaselines = software.amazon.jsii.Kernel.get(this, "driftCheckBaselines", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.environment = software.amazon.jsii.Kernel.get(this, "environment", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.inferenceSpecification = software.amazon.jsii.Kernel.get(this, "inferenceSpecification", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.lastModifiedBy = software.amazon.jsii.Kernel.get(this, "lastModifiedBy", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.lastModifiedTime = software.amazon.jsii.Kernel.get(this, "lastModifiedTime", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.metadataProperties = software.amazon.jsii.Kernel.get(this, "metadataProperties", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.modelApprovalStatus = software.amazon.jsii.Kernel.get(this, "modelApprovalStatus", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.modelMetrics = software.amazon.jsii.Kernel.get(this, "modelMetrics", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.modelPackageDescription = software.amazon.jsii.Kernel.get(this, "modelPackageDescription", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.modelPackageGroupName = software.amazon.jsii.Kernel.get(this, "modelPackageGroupName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.modelPackageName = software.amazon.jsii.Kernel.get(this, "modelPackageName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.modelPackageStatusDetails = software.amazon.jsii.Kernel.get(this, "modelPackageStatusDetails", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.modelPackageStatusItem = software.amazon.jsii.Kernel.get(this, "modelPackageStatusItem", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.modelPackageVersion = software.amazon.jsii.Kernel.get(this, "modelPackageVersion", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.samplePayloadUrl = software.amazon.jsii.Kernel.get(this, "samplePayloadUrl", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.sourceAlgorithmSpecification = software.amazon.jsii.Kernel.get(this, "sourceAlgorithmSpecification", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.CfnTag.class))); this.task = software.amazon.jsii.Kernel.get(this, "task", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.validationSpecification = software.amazon.jsii.Kernel.get(this, "validationSpecification", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ @SuppressWarnings("unchecked") protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.additionalInferenceSpecificationDefinition = builder.additionalInferenceSpecificationDefinition; this.additionalInferenceSpecifications = builder.additionalInferenceSpecifications; this.additionalInferenceSpecificationsToAdd = builder.additionalInferenceSpecificationsToAdd; this.approvalDescription = builder.approvalDescription; this.certifyForMarketplace = builder.certifyForMarketplace; this.clientToken = builder.clientToken; this.createdBy = builder.createdBy; this.customerMetadataProperties = builder.customerMetadataProperties; this.domain = builder.domain; this.driftCheckBaselines = builder.driftCheckBaselines; this.environment = builder.environment; this.inferenceSpecification = builder.inferenceSpecification; this.lastModifiedBy = builder.lastModifiedBy; this.lastModifiedTime = builder.lastModifiedTime; this.metadataProperties = builder.metadataProperties; this.modelApprovalStatus = builder.modelApprovalStatus; this.modelMetrics = builder.modelMetrics; this.modelPackageDescription = builder.modelPackageDescription; this.modelPackageGroupName = builder.modelPackageGroupName; this.modelPackageName = builder.modelPackageName; this.modelPackageStatusDetails = builder.modelPackageStatusDetails; this.modelPackageStatusItem = builder.modelPackageStatusItem; this.modelPackageVersion = builder.modelPackageVersion; this.samplePayloadUrl = builder.samplePayloadUrl; this.sourceAlgorithmSpecification = builder.sourceAlgorithmSpecification; this.tags = (java.util.List)builder.tags; this.task = builder.task; this.validationSpecification = builder.validationSpecification; } @Override public final java.lang.Object getAdditionalInferenceSpecificationDefinition() { return this.additionalInferenceSpecificationDefinition; } @Override public final java.lang.Object getAdditionalInferenceSpecifications() { return this.additionalInferenceSpecifications; } @Override public final java.lang.Object getAdditionalInferenceSpecificationsToAdd() { return this.additionalInferenceSpecificationsToAdd; } @Override public final java.lang.String getApprovalDescription() { return this.approvalDescription; } @Override public final java.lang.Object getCertifyForMarketplace() { return this.certifyForMarketplace; } @Override public final java.lang.String getClientToken() { return this.clientToken; } @Override public final java.lang.Object getCreatedBy() { return this.createdBy; } @Override public final java.lang.Object getCustomerMetadataProperties() { return this.customerMetadataProperties; } @Override public final java.lang.String getDomain() { return this.domain; } @Override public final java.lang.Object getDriftCheckBaselines() { return this.driftCheckBaselines; } @Override public final java.lang.Object getEnvironment() { return this.environment; } @Override public final java.lang.Object getInferenceSpecification() { return this.inferenceSpecification; } @Override public final java.lang.Object getLastModifiedBy() { return this.lastModifiedBy; } @Override public final java.lang.String getLastModifiedTime() { return this.lastModifiedTime; } @Override public final java.lang.Object getMetadataProperties() { return this.metadataProperties; } @Override public final java.lang.String getModelApprovalStatus() { return this.modelApprovalStatus; } @Override public final java.lang.Object getModelMetrics() { return this.modelMetrics; } @Override public final java.lang.String getModelPackageDescription() { return this.modelPackageDescription; } @Override public final java.lang.String getModelPackageGroupName() { return this.modelPackageGroupName; } @Override public final java.lang.String getModelPackageName() { return this.modelPackageName; } @Override public final java.lang.Object getModelPackageStatusDetails() { return this.modelPackageStatusDetails; } @Override public final java.lang.Object getModelPackageStatusItem() { return this.modelPackageStatusItem; } @Override public final java.lang.Number getModelPackageVersion() { return this.modelPackageVersion; } @Override public final java.lang.String getSamplePayloadUrl() { return this.samplePayloadUrl; } @Override public final java.lang.Object getSourceAlgorithmSpecification() { return this.sourceAlgorithmSpecification; } @Override public final java.util.List getTags() { return this.tags; } @Override public final java.lang.String getTask() { return this.task; } @Override public final java.lang.Object getValidationSpecification() { return this.validationSpecification; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getAdditionalInferenceSpecificationDefinition() != null) { data.set("additionalInferenceSpecificationDefinition", om.valueToTree(this.getAdditionalInferenceSpecificationDefinition())); } if (this.getAdditionalInferenceSpecifications() != null) { data.set("additionalInferenceSpecifications", om.valueToTree(this.getAdditionalInferenceSpecifications())); } if (this.getAdditionalInferenceSpecificationsToAdd() != null) { data.set("additionalInferenceSpecificationsToAdd", om.valueToTree(this.getAdditionalInferenceSpecificationsToAdd())); } if (this.getApprovalDescription() != null) { data.set("approvalDescription", om.valueToTree(this.getApprovalDescription())); } if (this.getCertifyForMarketplace() != null) { data.set("certifyForMarketplace", om.valueToTree(this.getCertifyForMarketplace())); } if (this.getClientToken() != null) { data.set("clientToken", om.valueToTree(this.getClientToken())); } if (this.getCreatedBy() != null) { data.set("createdBy", om.valueToTree(this.getCreatedBy())); } if (this.getCustomerMetadataProperties() != null) { data.set("customerMetadataProperties", om.valueToTree(this.getCustomerMetadataProperties())); } if (this.getDomain() != null) { data.set("domain", om.valueToTree(this.getDomain())); } if (this.getDriftCheckBaselines() != null) { data.set("driftCheckBaselines", om.valueToTree(this.getDriftCheckBaselines())); } if (this.getEnvironment() != null) { data.set("environment", om.valueToTree(this.getEnvironment())); } if (this.getInferenceSpecification() != null) { data.set("inferenceSpecification", om.valueToTree(this.getInferenceSpecification())); } if (this.getLastModifiedBy() != null) { data.set("lastModifiedBy", om.valueToTree(this.getLastModifiedBy())); } if (this.getLastModifiedTime() != null) { data.set("lastModifiedTime", om.valueToTree(this.getLastModifiedTime())); } if (this.getMetadataProperties() != null) { data.set("metadataProperties", om.valueToTree(this.getMetadataProperties())); } if (this.getModelApprovalStatus() != null) { data.set("modelApprovalStatus", om.valueToTree(this.getModelApprovalStatus())); } if (this.getModelMetrics() != null) { data.set("modelMetrics", om.valueToTree(this.getModelMetrics())); } if (this.getModelPackageDescription() != null) { data.set("modelPackageDescription", om.valueToTree(this.getModelPackageDescription())); } if (this.getModelPackageGroupName() != null) { data.set("modelPackageGroupName", om.valueToTree(this.getModelPackageGroupName())); } if (this.getModelPackageName() != null) { data.set("modelPackageName", om.valueToTree(this.getModelPackageName())); } if (this.getModelPackageStatusDetails() != null) { data.set("modelPackageStatusDetails", om.valueToTree(this.getModelPackageStatusDetails())); } if (this.getModelPackageStatusItem() != null) { data.set("modelPackageStatusItem", om.valueToTree(this.getModelPackageStatusItem())); } if (this.getModelPackageVersion() != null) { data.set("modelPackageVersion", om.valueToTree(this.getModelPackageVersion())); } if (this.getSamplePayloadUrl() != null) { data.set("samplePayloadUrl", om.valueToTree(this.getSamplePayloadUrl())); } if (this.getSourceAlgorithmSpecification() != null) { data.set("sourceAlgorithmSpecification", om.valueToTree(this.getSourceAlgorithmSpecification())); } if (this.getTags() != null) { data.set("tags", om.valueToTree(this.getTags())); } if (this.getTask() != null) { data.set("task", om.valueToTree(this.getTask())); } if (this.getValidationSpecification() != null) { data.set("validationSpecification", om.valueToTree(this.getValidationSpecification())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-sagemaker.CfnModelPackageProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CfnModelPackageProps.Jsii$Proxy that = (CfnModelPackageProps.Jsii$Proxy) o; if (this.additionalInferenceSpecificationDefinition != null ? !this.additionalInferenceSpecificationDefinition.equals(that.additionalInferenceSpecificationDefinition) : that.additionalInferenceSpecificationDefinition != null) return false; if (this.additionalInferenceSpecifications != null ? !this.additionalInferenceSpecifications.equals(that.additionalInferenceSpecifications) : that.additionalInferenceSpecifications != null) return false; if (this.additionalInferenceSpecificationsToAdd != null ? !this.additionalInferenceSpecificationsToAdd.equals(that.additionalInferenceSpecificationsToAdd) : that.additionalInferenceSpecificationsToAdd != null) return false; if (this.approvalDescription != null ? !this.approvalDescription.equals(that.approvalDescription) : that.approvalDescription != null) return false; if (this.certifyForMarketplace != null ? !this.certifyForMarketplace.equals(that.certifyForMarketplace) : that.certifyForMarketplace != null) return false; if (this.clientToken != null ? !this.clientToken.equals(that.clientToken) : that.clientToken != null) return false; if (this.createdBy != null ? !this.createdBy.equals(that.createdBy) : that.createdBy != null) return false; if (this.customerMetadataProperties != null ? !this.customerMetadataProperties.equals(that.customerMetadataProperties) : that.customerMetadataProperties != null) return false; if (this.domain != null ? !this.domain.equals(that.domain) : that.domain != null) return false; if (this.driftCheckBaselines != null ? !this.driftCheckBaselines.equals(that.driftCheckBaselines) : that.driftCheckBaselines != null) return false; if (this.environment != null ? !this.environment.equals(that.environment) : that.environment != null) return false; if (this.inferenceSpecification != null ? !this.inferenceSpecification.equals(that.inferenceSpecification) : that.inferenceSpecification != null) return false; if (this.lastModifiedBy != null ? !this.lastModifiedBy.equals(that.lastModifiedBy) : that.lastModifiedBy != null) return false; if (this.lastModifiedTime != null ? !this.lastModifiedTime.equals(that.lastModifiedTime) : that.lastModifiedTime != null) return false; if (this.metadataProperties != null ? !this.metadataProperties.equals(that.metadataProperties) : that.metadataProperties != null) return false; if (this.modelApprovalStatus != null ? !this.modelApprovalStatus.equals(that.modelApprovalStatus) : that.modelApprovalStatus != null) return false; if (this.modelMetrics != null ? !this.modelMetrics.equals(that.modelMetrics) : that.modelMetrics != null) return false; if (this.modelPackageDescription != null ? !this.modelPackageDescription.equals(that.modelPackageDescription) : that.modelPackageDescription != null) return false; if (this.modelPackageGroupName != null ? !this.modelPackageGroupName.equals(that.modelPackageGroupName) : that.modelPackageGroupName != null) return false; if (this.modelPackageName != null ? !this.modelPackageName.equals(that.modelPackageName) : that.modelPackageName != null) return false; if (this.modelPackageStatusDetails != null ? !this.modelPackageStatusDetails.equals(that.modelPackageStatusDetails) : that.modelPackageStatusDetails != null) return false; if (this.modelPackageStatusItem != null ? !this.modelPackageStatusItem.equals(that.modelPackageStatusItem) : that.modelPackageStatusItem != null) return false; if (this.modelPackageVersion != null ? !this.modelPackageVersion.equals(that.modelPackageVersion) : that.modelPackageVersion != null) return false; if (this.samplePayloadUrl != null ? !this.samplePayloadUrl.equals(that.samplePayloadUrl) : that.samplePayloadUrl != null) return false; if (this.sourceAlgorithmSpecification != null ? !this.sourceAlgorithmSpecification.equals(that.sourceAlgorithmSpecification) : that.sourceAlgorithmSpecification != null) return false; if (this.tags != null ? !this.tags.equals(that.tags) : that.tags != null) return false; if (this.task != null ? !this.task.equals(that.task) : that.task != null) return false; return this.validationSpecification != null ? this.validationSpecification.equals(that.validationSpecification) : that.validationSpecification == null; } @Override public final int hashCode() { int result = this.additionalInferenceSpecificationDefinition != null ? this.additionalInferenceSpecificationDefinition.hashCode() : 0; result = 31 * result + (this.additionalInferenceSpecifications != null ? this.additionalInferenceSpecifications.hashCode() : 0); result = 31 * result + (this.additionalInferenceSpecificationsToAdd != null ? this.additionalInferenceSpecificationsToAdd.hashCode() : 0); result = 31 * result + (this.approvalDescription != null ? this.approvalDescription.hashCode() : 0); result = 31 * result + (this.certifyForMarketplace != null ? this.certifyForMarketplace.hashCode() : 0); result = 31 * result + (this.clientToken != null ? this.clientToken.hashCode() : 0); result = 31 * result + (this.createdBy != null ? this.createdBy.hashCode() : 0); result = 31 * result + (this.customerMetadataProperties != null ? this.customerMetadataProperties.hashCode() : 0); result = 31 * result + (this.domain != null ? this.domain.hashCode() : 0); result = 31 * result + (this.driftCheckBaselines != null ? this.driftCheckBaselines.hashCode() : 0); result = 31 * result + (this.environment != null ? this.environment.hashCode() : 0); result = 31 * result + (this.inferenceSpecification != null ? this.inferenceSpecification.hashCode() : 0); result = 31 * result + (this.lastModifiedBy != null ? this.lastModifiedBy.hashCode() : 0); result = 31 * result + (this.lastModifiedTime != null ? this.lastModifiedTime.hashCode() : 0); result = 31 * result + (this.metadataProperties != null ? this.metadataProperties.hashCode() : 0); result = 31 * result + (this.modelApprovalStatus != null ? this.modelApprovalStatus.hashCode() : 0); result = 31 * result + (this.modelMetrics != null ? this.modelMetrics.hashCode() : 0); result = 31 * result + (this.modelPackageDescription != null ? this.modelPackageDescription.hashCode() : 0); result = 31 * result + (this.modelPackageGroupName != null ? this.modelPackageGroupName.hashCode() : 0); result = 31 * result + (this.modelPackageName != null ? this.modelPackageName.hashCode() : 0); result = 31 * result + (this.modelPackageStatusDetails != null ? this.modelPackageStatusDetails.hashCode() : 0); result = 31 * result + (this.modelPackageStatusItem != null ? this.modelPackageStatusItem.hashCode() : 0); result = 31 * result + (this.modelPackageVersion != null ? this.modelPackageVersion.hashCode() : 0); result = 31 * result + (this.samplePayloadUrl != null ? this.samplePayloadUrl.hashCode() : 0); result = 31 * result + (this.sourceAlgorithmSpecification != null ? this.sourceAlgorithmSpecification.hashCode() : 0); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); result = 31 * result + (this.task != null ? this.task.hashCode() : 0); result = 31 * result + (this.validationSpecification != null ? this.validationSpecification.hashCode() : 0); return result; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy