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

com.pulumi.azurenative.machinelearningservices.inputs.BuildContextArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.azurenative.machinelearningservices.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Configuration settings for Docker build context
 * 
 */
public final class BuildContextArgs extends com.pulumi.resources.ResourceArgs {

    public static final BuildContextArgs Empty = new BuildContextArgs();

    /**
     * [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs.
     * <seealso href="https://docs.docker.com/engine/reference/commandline/build/#extended-description" />
     * 
     */
    @Import(name="contextUri", required=true)
    private Output contextUri;

    /**
     * @return [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs.
     * <seealso href="https://docs.docker.com/engine/reference/commandline/build/#extended-description" />
     * 
     */
    public Output contextUri() {
        return this.contextUri;
    }

    /**
     * Path to the Dockerfile in the build context.
     * <seealso href="https://docs.docker.com/engine/reference/builder/" />
     * 
     */
    @Import(name="dockerfilePath")
    private @Nullable Output dockerfilePath;

    /**
     * @return Path to the Dockerfile in the build context.
     * <seealso href="https://docs.docker.com/engine/reference/builder/" />
     * 
     */
    public Optional> dockerfilePath() {
        return Optional.ofNullable(this.dockerfilePath);
    }

    private BuildContextArgs() {}

    private BuildContextArgs(BuildContextArgs $) {
        this.contextUri = $.contextUri;
        this.dockerfilePath = $.dockerfilePath;
    }

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

    public static final class Builder {
        private BuildContextArgs $;

        public Builder() {
            $ = new BuildContextArgs();
        }

        public Builder(BuildContextArgs defaults) {
            $ = new BuildContextArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param contextUri [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs.
         * <seealso href="https://docs.docker.com/engine/reference/commandline/build/#extended-description" />
         * 
         * @return builder
         * 
         */
        public Builder contextUri(Output contextUri) {
            $.contextUri = contextUri;
            return this;
        }

        /**
         * @param contextUri [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs.
         * <seealso href="https://docs.docker.com/engine/reference/commandline/build/#extended-description" />
         * 
         * @return builder
         * 
         */
        public Builder contextUri(String contextUri) {
            return contextUri(Output.of(contextUri));
        }

        /**
         * @param dockerfilePath Path to the Dockerfile in the build context.
         * <seealso href="https://docs.docker.com/engine/reference/builder/" />
         * 
         * @return builder
         * 
         */
        public Builder dockerfilePath(@Nullable Output dockerfilePath) {
            $.dockerfilePath = dockerfilePath;
            return this;
        }

        /**
         * @param dockerfilePath Path to the Dockerfile in the build context.
         * <seealso href="https://docs.docker.com/engine/reference/builder/" />
         * 
         * @return builder
         * 
         */
        public Builder dockerfilePath(String dockerfilePath) {
            return dockerfilePath(Output.of(dockerfilePath));
        }

        public BuildContextArgs build() {
            if ($.contextUri == null) {
                throw new MissingRequiredPropertyException("BuildContextArgs", "contextUri");
            }
            $.dockerfilePath = Codegen.stringProp("dockerfilePath").output().arg($.dockerfilePath).def("Dockerfile").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy