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

com.pulumi.github.inputs.GetTreeArgs Maven / Gradle / Ivy

There is a newer version: 6.5.0
Show newest version
// *** 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.github.inputs;

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


public final class GetTreeArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetTreeArgs Empty = new GetTreeArgs();

    /**
     * Setting this parameter to `true` returns the objects or subtrees referenced by the tree specified in `tree_sha`.
     * 
     */
    @Import(name="recursive")
    private @Nullable Output recursive;

    /**
     * @return Setting this parameter to `true` returns the objects or subtrees referenced by the tree specified in `tree_sha`.
     * 
     */
    public Optional> recursive() {
        return Optional.ofNullable(this.recursive);
    }

    /**
     * The name of the repository.
     * 
     */
    @Import(name="repository", required=true)
    private Output repository;

    /**
     * @return The name of the repository.
     * 
     */
    public Output repository() {
        return this.repository;
    }

    /**
     * The SHA1 value for the tree.
     * 
     */
    @Import(name="treeSha", required=true)
    private Output treeSha;

    /**
     * @return The SHA1 value for the tree.
     * 
     */
    public Output treeSha() {
        return this.treeSha;
    }

    private GetTreeArgs() {}

    private GetTreeArgs(GetTreeArgs $) {
        this.recursive = $.recursive;
        this.repository = $.repository;
        this.treeSha = $.treeSha;
    }

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

    public static final class Builder {
        private GetTreeArgs $;

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

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

        /**
         * @param recursive Setting this parameter to `true` returns the objects or subtrees referenced by the tree specified in `tree_sha`.
         * 
         * @return builder
         * 
         */
        public Builder recursive(@Nullable Output recursive) {
            $.recursive = recursive;
            return this;
        }

        /**
         * @param recursive Setting this parameter to `true` returns the objects or subtrees referenced by the tree specified in `tree_sha`.
         * 
         * @return builder
         * 
         */
        public Builder recursive(Boolean recursive) {
            return recursive(Output.of(recursive));
        }

        /**
         * @param repository The name of the repository.
         * 
         * @return builder
         * 
         */
        public Builder repository(Output repository) {
            $.repository = repository;
            return this;
        }

        /**
         * @param repository The name of the repository.
         * 
         * @return builder
         * 
         */
        public Builder repository(String repository) {
            return repository(Output.of(repository));
        }

        /**
         * @param treeSha The SHA1 value for the tree.
         * 
         * @return builder
         * 
         */
        public Builder treeSha(Output treeSha) {
            $.treeSha = treeSha;
            return this;
        }

        /**
         * @param treeSha The SHA1 value for the tree.
         * 
         * @return builder
         * 
         */
        public Builder treeSha(String treeSha) {
            return treeSha(Output.of(treeSha));
        }

        public GetTreeArgs build() {
            if ($.repository == null) {
                throw new MissingRequiredPropertyException("GetTreeArgs", "repository");
            }
            if ($.treeSha == null) {
                throw new MissingRequiredPropertyException("GetTreeArgs", "treeSha");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy