// *** 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.gcp.cloudbuild.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 TriggerBuildSourceStorageSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final TriggerBuildSourceStorageSourceArgs Empty = new TriggerBuildSourceStorageSourceArgs();

    /**
     * Google Cloud Storage bucket containing the source.
     * 
     */
    @Import(name="bucket", required=true)
    private Output<String> bucket;

    /**
     * @return Google Cloud Storage bucket containing the source.
     * 
     */
    public Output<String> bucket() {
        return this.bucket;
    }

    /**
     * Google Cloud Storage generation for the object.
     * If the generation is omitted, the latest generation will be used
     * 
     */
    @Import(name="generation")
    private @Nullable Output<String> generation;

    /**
     * @return Google Cloud Storage generation for the object.
     * If the generation is omitted, the latest generation will be used
     * 
     */
    public Optional<Output<String>> generation() {
        return Optional.ofNullable(this.generation);
    }

    /**
     * Google Cloud Storage object containing the source.
     * This object must be a gzipped archive file (.tar.gz) containing source to build.
     * 
     */
    @Import(name="object", required=true)
    private Output<String> object;

    /**
     * @return Google Cloud Storage object containing the source.
     * This object must be a gzipped archive file (.tar.gz) containing source to build.
     * 
     */
    public Output<String> object() {
        return this.object;
    }

    private TriggerBuildSourceStorageSourceArgs() {}

    private TriggerBuildSourceStorageSourceArgs(TriggerBuildSourceStorageSourceArgs $) {
        this.bucket = $.bucket;
        this.generation = $.generation;
        this.object = $.object;
    }

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

    public static final class Builder {
        private TriggerBuildSourceStorageSourceArgs $;

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

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

        /**
         * @param bucket Google Cloud Storage bucket containing the source.
         * 
         * @return builder
         * 
         */
        public Builder bucket(Output<String> bucket) {
            $.bucket = bucket;
            return this;
        }

        /**
         * @param bucket Google Cloud Storage bucket containing the source.
         * 
         * @return builder
         * 
         */
        public Builder bucket(String bucket) {
            return bucket(Output.of(bucket));
        }

        /**
         * @param generation Google Cloud Storage generation for the object.
         * If the generation is omitted, the latest generation will be used
         * 
         * @return builder
         * 
         */
        public Builder generation(@Nullable Output<String> generation) {
            $.generation = generation;
            return this;
        }

        /**
         * @param generation Google Cloud Storage generation for the object.
         * If the generation is omitted, the latest generation will be used
         * 
         * @return builder
         * 
         */
        public Builder generation(String generation) {
            return generation(Output.of(generation));
        }

        /**
         * @param object Google Cloud Storage object containing the source.
         * This object must be a gzipped archive file (.tar.gz) containing source to build.
         * 
         * @return builder
         * 
         */
        public Builder object(Output<String> object) {
            $.object = object;
            return this;
        }

        /**
         * @param object Google Cloud Storage object containing the source.
         * This object must be a gzipped archive file (.tar.gz) containing source to build.
         * 
         * @return builder
         * 
         */
        public Builder object(String object) {
            return object(Output.of(object));
        }

        public TriggerBuildSourceStorageSourceArgs build() {
            $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null");
            $.object = Objects.requireNonNull($.object, "expected parameter 'object' to be non-null");
            return $;
        }
    }

}
