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

com.pulumi.dockerbuild.inputs.ExportDockerArgs 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 com.pulumi.core.internal.Codegen;
import com.pulumi.dockerbuild.enums.CompressionType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ExportDockerArgs Empty = new ExportDockerArgs();

    /**
     * Attach an arbitrary key/value annotation to the image.
     * 
     */
    @Import(name="annotations")
    private @Nullable Output> annotations;

    /**
     * @return Attach an arbitrary key/value annotation to the image.
     * 
     */
    public Optional>> annotations() {
        return Optional.ofNullable(this.annotations);
    }

    /**
     * The compression type to use.
     * 
     */
    @Import(name="compression")
    private @Nullable Output compression;

    /**
     * @return The compression type to use.
     * 
     */
    public Optional> compression() {
        return Optional.ofNullable(this.compression);
    }

    /**
     * Compression level from 0 to 22.
     * 
     */
    @Import(name="compressionLevel")
    private @Nullable Output compressionLevel;

    /**
     * @return Compression level from 0 to 22.
     * 
     */
    public Optional> compressionLevel() {
        return Optional.ofNullable(this.compressionLevel);
    }

    /**
     * The local export path.
     * 
     */
    @Import(name="dest")
    private @Nullable Output dest;

    /**
     * @return The local export path.
     * 
     */
    public Optional> dest() {
        return Optional.ofNullable(this.dest);
    }

    /**
     * Forcefully apply compression.
     * 
     */
    @Import(name="forceCompression")
    private @Nullable Output forceCompression;

    /**
     * @return Forcefully apply compression.
     * 
     */
    public Optional> forceCompression() {
        return Optional.ofNullable(this.forceCompression);
    }

    /**
     * Specify images names to export. This is overridden if tags are already specified.
     * 
     */
    @Import(name="names")
    private @Nullable Output> names;

    /**
     * @return Specify images names to export. This is overridden if tags are already specified.
     * 
     */
    public Optional>> names() {
        return Optional.ofNullable(this.names);
    }

    /**
     * Use OCI media types in exporter manifests.
     * 
     */
    @Import(name="ociMediaTypes")
    private @Nullable Output ociMediaTypes;

    /**
     * @return Use OCI media types in exporter manifests.
     * 
     */
    public Optional> ociMediaTypes() {
        return Optional.ofNullable(this.ociMediaTypes);
    }

    /**
     * Bundle the output into a tarball layout.
     * 
     */
    @Import(name="tar")
    private @Nullable Output tar;

    /**
     * @return Bundle the output into a tarball layout.
     * 
     */
    public Optional> tar() {
        return Optional.ofNullable(this.tar);
    }

    private ExportDockerArgs() {}

    private ExportDockerArgs(ExportDockerArgs $) {
        this.annotations = $.annotations;
        this.compression = $.compression;
        this.compressionLevel = $.compressionLevel;
        this.dest = $.dest;
        this.forceCompression = $.forceCompression;
        this.names = $.names;
        this.ociMediaTypes = $.ociMediaTypes;
        this.tar = $.tar;
    }

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

    public static final class Builder {
        private ExportDockerArgs $;

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

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

        /**
         * @param annotations Attach an arbitrary key/value annotation to the image.
         * 
         * @return builder
         * 
         */
        public Builder annotations(@Nullable Output> annotations) {
            $.annotations = annotations;
            return this;
        }

        /**
         * @param annotations Attach an arbitrary key/value annotation to the image.
         * 
         * @return builder
         * 
         */
        public Builder annotations(Map annotations) {
            return annotations(Output.of(annotations));
        }

        /**
         * @param compression The compression type to use.
         * 
         * @return builder
         * 
         */
        public Builder compression(@Nullable Output compression) {
            $.compression = compression;
            return this;
        }

        /**
         * @param compression The compression type to use.
         * 
         * @return builder
         * 
         */
        public Builder compression(CompressionType compression) {
            return compression(Output.of(compression));
        }

        /**
         * @param compressionLevel Compression level from 0 to 22.
         * 
         * @return builder
         * 
         */
        public Builder compressionLevel(@Nullable Output compressionLevel) {
            $.compressionLevel = compressionLevel;
            return this;
        }

        /**
         * @param compressionLevel Compression level from 0 to 22.
         * 
         * @return builder
         * 
         */
        public Builder compressionLevel(Integer compressionLevel) {
            return compressionLevel(Output.of(compressionLevel));
        }

        /**
         * @param dest The local export path.
         * 
         * @return builder
         * 
         */
        public Builder dest(@Nullable Output dest) {
            $.dest = dest;
            return this;
        }

        /**
         * @param dest The local export path.
         * 
         * @return builder
         * 
         */
        public Builder dest(String dest) {
            return dest(Output.of(dest));
        }

        /**
         * @param forceCompression Forcefully apply compression.
         * 
         * @return builder
         * 
         */
        public Builder forceCompression(@Nullable Output forceCompression) {
            $.forceCompression = forceCompression;
            return this;
        }

        /**
         * @param forceCompression Forcefully apply compression.
         * 
         * @return builder
         * 
         */
        public Builder forceCompression(Boolean forceCompression) {
            return forceCompression(Output.of(forceCompression));
        }

        /**
         * @param names Specify images names to export. This is overridden if tags are already specified.
         * 
         * @return builder
         * 
         */
        public Builder names(@Nullable Output> names) {
            $.names = names;
            return this;
        }

        /**
         * @param names Specify images names to export. This is overridden if tags are already specified.
         * 
         * @return builder
         * 
         */
        public Builder names(List names) {
            return names(Output.of(names));
        }

        /**
         * @param names Specify images names to export. This is overridden if tags are already specified.
         * 
         * @return builder
         * 
         */
        public Builder names(String... names) {
            return names(List.of(names));
        }

        /**
         * @param ociMediaTypes Use OCI media types in exporter manifests.
         * 
         * @return builder
         * 
         */
        public Builder ociMediaTypes(@Nullable Output ociMediaTypes) {
            $.ociMediaTypes = ociMediaTypes;
            return this;
        }

        /**
         * @param ociMediaTypes Use OCI media types in exporter manifests.
         * 
         * @return builder
         * 
         */
        public Builder ociMediaTypes(Boolean ociMediaTypes) {
            return ociMediaTypes(Output.of(ociMediaTypes));
        }

        /**
         * @param tar Bundle the output into a tarball layout.
         * 
         * @return builder
         * 
         */
        public Builder tar(@Nullable Output tar) {
            $.tar = tar;
            return this;
        }

        /**
         * @param tar Bundle the output into a tarball layout.
         * 
         * @return builder
         * 
         */
        public Builder tar(Boolean tar) {
            return tar(Output.of(tar));
        }

        public ExportDockerArgs build() {
            $.compression = Codegen.objectProp("compression", CompressionType.class).output().arg($.compression).def(CompressionType.Gzip).getNullable();
            $.compressionLevel = Codegen.integerProp("compressionLevel").output().arg($.compressionLevel).def(0).getNullable();
            $.forceCompression = Codegen.booleanProp("forceCompression").output().arg($.forceCompression).def(false).getNullable();
            $.ociMediaTypes = Codegen.booleanProp("ociMediaTypes").output().arg($.ociMediaTypes).def(false).getNullable();
            $.tar = Codegen.booleanProp("tar").output().arg($.tar).def(true).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy