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

com.pulumi.gitlab.inputs.GetRepositoryTreeArgs Maven / Gradle / Ivy

The 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.gitlab.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 GetRepositoryTreeArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRepositoryTreeArgs Empty = new GetRepositoryTreeArgs();

    /**
     * The path inside repository. Used to get content of subdirectories.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return The path inside repository. Used to get content of subdirectories.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * The ID or full path of the project owned by the authenticated user.
     * 
     */
    @Import(name="project", required=true)
    private Output project;

    /**
     * @return The ID or full path of the project owned by the authenticated user.
     * 
     */
    public Output project() {
        return this.project;
    }

    /**
     * Boolean value used to get a recursive tree (false by default).
     * 
     */
    @Import(name="recursive")
    private @Nullable Output recursive;

    /**
     * @return Boolean value used to get a recursive tree (false by default).
     * 
     */
    public Optional> recursive() {
        return Optional.ofNullable(this.recursive);
    }

    /**
     * The name of a repository branch or tag.
     * 
     */
    @Import(name="ref", required=true)
    private Output ref;

    /**
     * @return The name of a repository branch or tag.
     * 
     */
    public Output ref() {
        return this.ref;
    }

    private GetRepositoryTreeArgs() {}

    private GetRepositoryTreeArgs(GetRepositoryTreeArgs $) {
        this.path = $.path;
        this.project = $.project;
        this.recursive = $.recursive;
        this.ref = $.ref;
    }

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

    public static final class Builder {
        private GetRepositoryTreeArgs $;

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

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

        /**
         * @param path The path inside repository. Used to get content of subdirectories.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path inside repository. Used to get content of subdirectories.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param project The ID or full path of the project owned by the authenticated user.
         * 
         * @return builder
         * 
         */
        public Builder project(Output project) {
            $.project = project;
            return this;
        }

        /**
         * @param project The ID or full path of the project owned by the authenticated user.
         * 
         * @return builder
         * 
         */
        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param recursive Boolean value used to get a recursive tree (false by default).
         * 
         * @return builder
         * 
         */
        public Builder recursive(@Nullable Output recursive) {
            $.recursive = recursive;
            return this;
        }

        /**
         * @param recursive Boolean value used to get a recursive tree (false by default).
         * 
         * @return builder
         * 
         */
        public Builder recursive(Boolean recursive) {
            return recursive(Output.of(recursive));
        }

        /**
         * @param ref The name of a repository branch or tag.
         * 
         * @return builder
         * 
         */
        public Builder ref(Output ref) {
            $.ref = ref;
            return this;
        }

        /**
         * @param ref The name of a repository branch or tag.
         * 
         * @return builder
         * 
         */
        public Builder ref(String ref) {
            return ref(Output.of(ref));
        }

        public GetRepositoryTreeArgs build() {
            if ($.project == null) {
                throw new MissingRequiredPropertyException("GetRepositoryTreeArgs", "project");
            }
            if ($.ref == null) {
                throw new MissingRequiredPropertyException("GetRepositoryTreeArgs", "ref");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy