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

com.pulumi.azurenative.machinelearningservices.outputs.BuildContextResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.outputs;

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 BuildContextResponse {
    /**
     * @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" />
     * 
     */
    private String contextUri;
    /**
     * @return Path to the Dockerfile in the build context.
     * <seealso href="https://docs.docker.com/engine/reference/builder/" />
     * 
     */
    private @Nullable String dockerfilePath;

    private BuildContextResponse() {}
    /**
     * @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 String contextUri() {
        return this.contextUri;
    }
    /**
     * @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);
    }

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

    public static Builder builder(BuildContextResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String contextUri;
        private @Nullable String dockerfilePath;
        public Builder() {}
        public Builder(BuildContextResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.contextUri = defaults.contextUri;
    	      this.dockerfilePath = defaults.dockerfilePath;
        }

        @CustomType.Setter
        public Builder contextUri(String contextUri) {
            if (contextUri == null) {
              throw new MissingRequiredPropertyException("BuildContextResponse", "contextUri");
            }
            this.contextUri = contextUri;
            return this;
        }
        @CustomType.Setter
        public Builder dockerfilePath(@Nullable String dockerfilePath) {

            this.dockerfilePath = dockerfilePath;
            return this;
        }
        public BuildContextResponse build() {
            final var _resultValue = new BuildContextResponse();
            _resultValue.contextUri = contextUri;
            _resultValue.dockerfilePath = dockerfilePath;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy