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

com.pulumi.dockerbuild.inputs.BuilderConfigArgs Maven / Gradle / Ivy

Go to download

A Pulumi provider for building modern Docker images with buildx and BuildKit.

There is a newer version: 0.1.0-alpha.1729468870
Show newest version
// *** WARNING: this file was generated by pulumi. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.dockerbuild.inputs;

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


public final class BuilderConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final BuilderConfigArgs Empty = new BuilderConfigArgs();

    /**
     * Name of an existing buildx builder to use.
     * 
     * Only `docker-container`, `kubernetes`, or `remote` drivers are
     * supported. The legacy `docker` driver is not supported.
     * 
     * Equivalent to Docker's `--builder` flag.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of an existing buildx builder to use.
     * 
     * Only `docker-container`, `kubernetes`, or `remote` drivers are
     * supported. The legacy `docker` driver is not supported.
     * 
     * Equivalent to Docker's `--builder` flag.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private BuilderConfigArgs() {}

    private BuilderConfigArgs(BuilderConfigArgs $) {
        this.name = $.name;
    }

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

    public static final class Builder {
        private BuilderConfigArgs $;

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

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

        /**
         * @param name Name of an existing buildx builder to use.
         * 
         * Only `docker-container`, `kubernetes`, or `remote` drivers are
         * supported. The legacy `docker` driver is not supported.
         * 
         * Equivalent to Docker's `--builder` flag.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of an existing buildx builder to use.
         * 
         * Only `docker-container`, `kubernetes`, or `remote` drivers are
         * supported. The legacy `docker` driver is not supported.
         * 
         * Equivalent to Docker's `--builder` flag.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public BuilderConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy