// *** 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.ModelPrimaryContainerImageConfig;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ModelPrimaryContainer {
    /**
     * @return The DNS host name for the container.
     * 
     */
    private @Nullable String containerHostname;
    /**
     * @return Environment variables for the Docker container.
     * A list of key value pairs.
     * 
     */
    private @Nullable Map<String,String> environment;
    /**
     * @return The registry path where the inference code image is stored in Amazon ECR.
     * 
     */
    private String image;
    /**
     * @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see [Using a Private Docker Registry for Real-Time Inference Containers](https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-containers-inference-private.html). see Image Config.
     * 
     */
    private @Nullable ModelPrimaryContainerImageConfig imageConfig;
    /**
     * @return The container hosts value `SingleModel/MultiModel`. The default value is `SingleModel`.
     * 
     */
    private @Nullable String mode;
    /**
     * @return The URL for the S3 location where model artifacts are stored.
     * 
     */
    private @Nullable String modelDataUrl;

    private ModelPrimaryContainer() {}
    /**
     * @return The DNS host name for the container.
     * 
     */
    public Optional<String> containerHostname() {
        return Optional.ofNullable(this.containerHostname);
    }
    /**
     * @return Environment variables for the Docker container.
     * A list of key value pairs.
     * 
     */
    public Map<String,String> environment() {
        return this.environment == null ? Map.of() : this.environment;
    }
    /**
     * @return The registry path where the inference code image is stored in Amazon ECR.
     * 
     */
    public String image() {
        return this.image;
    }
    /**
     * @return Specifies whether the model container is in Amazon ECR or a private Docker registry accessible from your Amazon Virtual Private Cloud (VPC). For more information see [Using a Private Docker Registry for Real-Time Inference Containers](https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-containers-inference-private.html). see Image Config.
     * 
     */
    public Optional<ModelPrimaryContainerImageConfig> imageConfig() {
        return Optional.ofNullable(this.imageConfig);
    }
    /**
     * @return The container hosts value `SingleModel/MultiModel`. The default value is `SingleModel`.
     * 
     */
    public Optional<String> mode() {
        return Optional.ofNullable(this.mode);
    }
    /**
     * @return The URL for the S3 location where model artifacts are stored.
     * 
     */
    public Optional<String> modelDataUrl() {
        return Optional.ofNullable(this.modelDataUrl);
    }

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

    public static Builder builder(ModelPrimaryContainer defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String containerHostname;
        private @Nullable Map<String,String> environment;
        private String image;
        private @Nullable ModelPrimaryContainerImageConfig imageConfig;
        private @Nullable String mode;
        private @Nullable String modelDataUrl;
        public Builder() {}
        public Builder(ModelPrimaryContainer defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.containerHostname = defaults.containerHostname;
    	      this.environment = defaults.environment;
    	      this.image = defaults.image;
    	      this.imageConfig = defaults.imageConfig;
    	      this.mode = defaults.mode;
    	      this.modelDataUrl = defaults.modelDataUrl;
        }

        @CustomType.Setter
        public Builder containerHostname(@Nullable String containerHostname) {
            this.containerHostname = containerHostname;
            return this;
        }
        @CustomType.Setter
        public Builder environment(@Nullable Map<String,String> environment) {
            this.environment = environment;
            return this;
        }
        @CustomType.Setter
        public Builder image(String image) {
            this.image = Objects.requireNonNull(image);
            return this;
        }
        @CustomType.Setter
        public Builder imageConfig(@Nullable ModelPrimaryContainerImageConfig imageConfig) {
            this.imageConfig = imageConfig;
            return this;
        }
        @CustomType.Setter
        public Builder mode(@Nullable String mode) {
            this.mode = mode;
            return this;
        }
        @CustomType.Setter
        public Builder modelDataUrl(@Nullable String modelDataUrl) {
            this.modelDataUrl = modelDataUrl;
            return this;
        }
        public ModelPrimaryContainer build() {
            final var o = new ModelPrimaryContainer();
            o.containerHostname = containerHostname;
            o.environment = environment;
            o.image = image;
            o.imageConfig = imageConfig;
            o.mode = mode;
            o.modelDataUrl = modelDataUrl;
            return o;
        }
    }
}
