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

com.pulumi.dockerbuild.ProviderArgs 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;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.dockerbuild.inputs.RegistryArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ProviderArgs Empty = new ProviderArgs();

    /**
     * The build daemon's address.
     * 
     */
    @Import(name="host")
    private @Nullable Output host;

    /**
     * @return The build daemon's address.
     * 
     */
    public Optional> host() {
        return Optional.ofNullable(this.host);
    }

    @Import(name="registries", json=true)
    private @Nullable Output> registries;

    public Optional>> registries() {
        return Optional.ofNullable(this.registries);
    }

    private ProviderArgs() {}

    private ProviderArgs(ProviderArgs $) {
        this.host = $.host;
        this.registries = $.registries;
    }

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

    public static final class Builder {
        private ProviderArgs $;

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

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

        /**
         * @param host The build daemon's address.
         * 
         * @return builder
         * 
         */
        public Builder host(@Nullable Output host) {
            $.host = host;
            return this;
        }

        /**
         * @param host The build daemon's address.
         * 
         * @return builder
         * 
         */
        public Builder host(String host) {
            return host(Output.of(host));
        }

        public Builder registries(@Nullable Output> registries) {
            $.registries = registries;
            return this;
        }

        public Builder registries(List registries) {
            return registries(Output.of(registries));
        }

        public Builder registries(RegistryArgs... registries) {
            return registries(List.of(registries));
        }

        public ProviderArgs build() {
            $.host = Codegen.stringProp("host").output().arg($.host).env("DOCKER_HOST").def("").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy