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

com.pulumi.azurenative.containerregistry.inputs.DockerBuildStepArgs 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.azurenative.containerregistry.inputs;

import com.pulumi.azurenative.containerregistry.inputs.ArgumentArgs;
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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The Docker build step.
 * 
 */
public final class DockerBuildStepArgs extends com.pulumi.resources.ResourceArgs {

    public static final DockerBuildStepArgs Empty = new DockerBuildStepArgs();

    /**
     * The collection of override arguments to be used when executing this build step.
     * 
     */
    @Import(name="arguments")
    private @Nullable Output> arguments;

    /**
     * @return The collection of override arguments to be used when executing this build step.
     * 
     */
    public Optional>> arguments() {
        return Optional.ofNullable(this.arguments);
    }

    /**
     * The token (git PAT or SAS token of storage account blob) associated with the context for a step.
     * 
     */
    @Import(name="contextAccessToken")
    private @Nullable Output contextAccessToken;

    /**
     * @return The token (git PAT or SAS token of storage account blob) associated with the context for a step.
     * 
     */
    public Optional> contextAccessToken() {
        return Optional.ofNullable(this.contextAccessToken);
    }

    /**
     * The URL(absolute or relative) of the source context for the task step.
     * 
     */
    @Import(name="contextPath")
    private @Nullable Output contextPath;

    /**
     * @return The URL(absolute or relative) of the source context for the task step.
     * 
     */
    public Optional> contextPath() {
        return Optional.ofNullable(this.contextPath);
    }

    /**
     * The Docker file path relative to the source context.
     * 
     */
    @Import(name="dockerFilePath", required=true)
    private Output dockerFilePath;

    /**
     * @return The Docker file path relative to the source context.
     * 
     */
    public Output dockerFilePath() {
        return this.dockerFilePath;
    }

    /**
     * The fully qualified image names including the repository and tag.
     * 
     */
    @Import(name="imageNames")
    private @Nullable Output> imageNames;

    /**
     * @return The fully qualified image names including the repository and tag.
     * 
     */
    public Optional>> imageNames() {
        return Optional.ofNullable(this.imageNames);
    }

    /**
     * The value of this property indicates whether the image built should be pushed to the registry or not.
     * 
     */
    @Import(name="isPushEnabled")
    private @Nullable Output isPushEnabled;

    /**
     * @return The value of this property indicates whether the image built should be pushed to the registry or not.
     * 
     */
    public Optional> isPushEnabled() {
        return Optional.ofNullable(this.isPushEnabled);
    }

    /**
     * The value of this property indicates whether the image cache is enabled or not.
     * 
     */
    @Import(name="noCache")
    private @Nullable Output noCache;

    /**
     * @return The value of this property indicates whether the image cache is enabled or not.
     * 
     */
    public Optional> noCache() {
        return Optional.ofNullable(this.noCache);
    }

    /**
     * The name of the target build stage for the docker build.
     * 
     */
    @Import(name="target")
    private @Nullable Output target;

    /**
     * @return The name of the target build stage for the docker build.
     * 
     */
    public Optional> target() {
        return Optional.ofNullable(this.target);
    }

    /**
     * The type of the step.
     * Expected value is 'Docker'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of the step.
     * Expected value is 'Docker'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private DockerBuildStepArgs() {}

    private DockerBuildStepArgs(DockerBuildStepArgs $) {
        this.arguments = $.arguments;
        this.contextAccessToken = $.contextAccessToken;
        this.contextPath = $.contextPath;
        this.dockerFilePath = $.dockerFilePath;
        this.imageNames = $.imageNames;
        this.isPushEnabled = $.isPushEnabled;
        this.noCache = $.noCache;
        this.target = $.target;
        this.type = $.type;
    }

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

    public static final class Builder {
        private DockerBuildStepArgs $;

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

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

        /**
         * @param arguments The collection of override arguments to be used when executing this build step.
         * 
         * @return builder
         * 
         */
        public Builder arguments(@Nullable Output> arguments) {
            $.arguments = arguments;
            return this;
        }

        /**
         * @param arguments The collection of override arguments to be used when executing this build step.
         * 
         * @return builder
         * 
         */
        public Builder arguments(List arguments) {
            return arguments(Output.of(arguments));
        }

        /**
         * @param arguments The collection of override arguments to be used when executing this build step.
         * 
         * @return builder
         * 
         */
        public Builder arguments(ArgumentArgs... arguments) {
            return arguments(List.of(arguments));
        }

        /**
         * @param contextAccessToken The token (git PAT or SAS token of storage account blob) associated with the context for a step.
         * 
         * @return builder
         * 
         */
        public Builder contextAccessToken(@Nullable Output contextAccessToken) {
            $.contextAccessToken = contextAccessToken;
            return this;
        }

        /**
         * @param contextAccessToken The token (git PAT or SAS token of storage account blob) associated with the context for a step.
         * 
         * @return builder
         * 
         */
        public Builder contextAccessToken(String contextAccessToken) {
            return contextAccessToken(Output.of(contextAccessToken));
        }

        /**
         * @param contextPath The URL(absolute or relative) of the source context for the task step.
         * 
         * @return builder
         * 
         */
        public Builder contextPath(@Nullable Output contextPath) {
            $.contextPath = contextPath;
            return this;
        }

        /**
         * @param contextPath The URL(absolute or relative) of the source context for the task step.
         * 
         * @return builder
         * 
         */
        public Builder contextPath(String contextPath) {
            return contextPath(Output.of(contextPath));
        }

        /**
         * @param dockerFilePath The Docker file path relative to the source context.
         * 
         * @return builder
         * 
         */
        public Builder dockerFilePath(Output dockerFilePath) {
            $.dockerFilePath = dockerFilePath;
            return this;
        }

        /**
         * @param dockerFilePath The Docker file path relative to the source context.
         * 
         * @return builder
         * 
         */
        public Builder dockerFilePath(String dockerFilePath) {
            return dockerFilePath(Output.of(dockerFilePath));
        }

        /**
         * @param imageNames The fully qualified image names including the repository and tag.
         * 
         * @return builder
         * 
         */
        public Builder imageNames(@Nullable Output> imageNames) {
            $.imageNames = imageNames;
            return this;
        }

        /**
         * @param imageNames The fully qualified image names including the repository and tag.
         * 
         * @return builder
         * 
         */
        public Builder imageNames(List imageNames) {
            return imageNames(Output.of(imageNames));
        }

        /**
         * @param imageNames The fully qualified image names including the repository and tag.
         * 
         * @return builder
         * 
         */
        public Builder imageNames(String... imageNames) {
            return imageNames(List.of(imageNames));
        }

        /**
         * @param isPushEnabled The value of this property indicates whether the image built should be pushed to the registry or not.
         * 
         * @return builder
         * 
         */
        public Builder isPushEnabled(@Nullable Output isPushEnabled) {
            $.isPushEnabled = isPushEnabled;
            return this;
        }

        /**
         * @param isPushEnabled The value of this property indicates whether the image built should be pushed to the registry or not.
         * 
         * @return builder
         * 
         */
        public Builder isPushEnabled(Boolean isPushEnabled) {
            return isPushEnabled(Output.of(isPushEnabled));
        }

        /**
         * @param noCache The value of this property indicates whether the image cache is enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder noCache(@Nullable Output noCache) {
            $.noCache = noCache;
            return this;
        }

        /**
         * @param noCache The value of this property indicates whether the image cache is enabled or not.
         * 
         * @return builder
         * 
         */
        public Builder noCache(Boolean noCache) {
            return noCache(Output.of(noCache));
        }

        /**
         * @param target The name of the target build stage for the docker build.
         * 
         * @return builder
         * 
         */
        public Builder target(@Nullable Output target) {
            $.target = target;
            return this;
        }

        /**
         * @param target The name of the target build stage for the docker build.
         * 
         * @return builder
         * 
         */
        public Builder target(String target) {
            return target(Output.of(target));
        }

        /**
         * @param type The type of the step.
         * Expected value is 'Docker'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the step.
         * Expected value is 'Docker'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public DockerBuildStepArgs build() {
            if ($.dockerFilePath == null) {
                throw new MissingRequiredPropertyException("DockerBuildStepArgs", "dockerFilePath");
            }
            $.isPushEnabled = Codegen.booleanProp("isPushEnabled").output().arg($.isPushEnabled).def(true).getNullable();
            $.noCache = Codegen.booleanProp("noCache").output().arg($.noCache).def(false).getNullable();
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy