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

com.pulumi.aws.sagemaker.outputs.ModelPrimaryContainerModelDataSourceS3DataSource Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.sagemaker.outputs;

import com.pulumi.aws.sagemaker.outputs.ModelPrimaryContainerModelDataSourceS3DataSourceModelAccessConfig;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ModelPrimaryContainerModelDataSourceS3DataSource {
    /**
     * @return How the model data is prepared. Allowed values are: `None` and `Gzip`.
     * 
     */
    private String compressionType;
    /**
     * @return Specifies the access configuration file for the ML model. You can explicitly accept the model end-user license agreement (EULA) within the [`model_access_config` configuration block]. see Model Access Config.
     * 
     */
    private @Nullable ModelPrimaryContainerModelDataSourceS3DataSourceModelAccessConfig modelAccessConfig;
    /**
     * @return The type of model data to deploy. Allowed values are: `S3Object` and `S3Prefix`.
     * 
     */
    private String s3DataType;
    /**
     * @return The S3 path of model data to deploy.
     * 
     */
    private String s3Uri;

    private ModelPrimaryContainerModelDataSourceS3DataSource() {}
    /**
     * @return How the model data is prepared. Allowed values are: `None` and `Gzip`.
     * 
     */
    public String compressionType() {
        return this.compressionType;
    }
    /**
     * @return Specifies the access configuration file for the ML model. You can explicitly accept the model end-user license agreement (EULA) within the [`model_access_config` configuration block]. see Model Access Config.
     * 
     */
    public Optional modelAccessConfig() {
        return Optional.ofNullable(this.modelAccessConfig);
    }
    /**
     * @return The type of model data to deploy. Allowed values are: `S3Object` and `S3Prefix`.
     * 
     */
    public String s3DataType() {
        return this.s3DataType;
    }
    /**
     * @return The S3 path of model data to deploy.
     * 
     */
    public String s3Uri() {
        return this.s3Uri;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ModelPrimaryContainerModelDataSourceS3DataSource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String compressionType;
        private @Nullable ModelPrimaryContainerModelDataSourceS3DataSourceModelAccessConfig modelAccessConfig;
        private String s3DataType;
        private String s3Uri;
        public Builder() {}
        public Builder(ModelPrimaryContainerModelDataSourceS3DataSource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.compressionType = defaults.compressionType;
    	      this.modelAccessConfig = defaults.modelAccessConfig;
    	      this.s3DataType = defaults.s3DataType;
    	      this.s3Uri = defaults.s3Uri;
        }

        @CustomType.Setter
        public Builder compressionType(String compressionType) {
            if (compressionType == null) {
              throw new MissingRequiredPropertyException("ModelPrimaryContainerModelDataSourceS3DataSource", "compressionType");
            }
            this.compressionType = compressionType;
            return this;
        }
        @CustomType.Setter
        public Builder modelAccessConfig(@Nullable ModelPrimaryContainerModelDataSourceS3DataSourceModelAccessConfig modelAccessConfig) {

            this.modelAccessConfig = modelAccessConfig;
            return this;
        }
        @CustomType.Setter
        public Builder s3DataType(String s3DataType) {
            if (s3DataType == null) {
              throw new MissingRequiredPropertyException("ModelPrimaryContainerModelDataSourceS3DataSource", "s3DataType");
            }
            this.s3DataType = s3DataType;
            return this;
        }
        @CustomType.Setter
        public Builder s3Uri(String s3Uri) {
            if (s3Uri == null) {
              throw new MissingRequiredPropertyException("ModelPrimaryContainerModelDataSourceS3DataSource", "s3Uri");
            }
            this.s3Uri = s3Uri;
            return this;
        }
        public ModelPrimaryContainerModelDataSourceS3DataSource build() {
            final var _resultValue = new ModelPrimaryContainerModelDataSourceS3DataSource();
            _resultValue.compressionType = compressionType;
            _resultValue.modelAccessConfig = modelAccessConfig;
            _resultValue.s3DataType = s3DataType;
            _resultValue.s3Uri = s3Uri;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy