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

com.pulumi.dockerbuild.inputs.CacheFromLocalArgs 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.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CacheFromLocalArgs Empty = new CacheFromLocalArgs();

    /**
     * Digest of manifest to import.
     * 
     */
    @Import(name="digest")
    private @Nullable Output digest;

    /**
     * @return Digest of manifest to import.
     * 
     */
    public Optional> digest() {
        return Optional.ofNullable(this.digest);
    }

    /**
     * Path of the local directory where cache gets imported from.
     * 
     */
    @Import(name="src", required=true)
    private Output src;

    /**
     * @return Path of the local directory where cache gets imported from.
     * 
     */
    public Output src() {
        return this.src;
    }

    private CacheFromLocalArgs() {}

    private CacheFromLocalArgs(CacheFromLocalArgs $) {
        this.digest = $.digest;
        this.src = $.src;
    }

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

    public static final class Builder {
        private CacheFromLocalArgs $;

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

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

        /**
         * @param digest Digest of manifest to import.
         * 
         * @return builder
         * 
         */
        public Builder digest(@Nullable Output digest) {
            $.digest = digest;
            return this;
        }

        /**
         * @param digest Digest of manifest to import.
         * 
         * @return builder
         * 
         */
        public Builder digest(String digest) {
            return digest(Output.of(digest));
        }

        /**
         * @param src Path of the local directory where cache gets imported from.
         * 
         * @return builder
         * 
         */
        public Builder src(Output src) {
            $.src = src;
            return this;
        }

        /**
         * @param src Path of the local directory where cache gets imported from.
         * 
         * @return builder
         * 
         */
        public Builder src(String src) {
            return src(Output.of(src));
        }

        public CacheFromLocalArgs build() {
            if ($.src == null) {
                throw new MissingRequiredPropertyException("CacheFromLocalArgs", "src");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy