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

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

There is a newer version: 6.4.0-alpha.1731735876
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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetTeamArgs Empty = new GetTeamArgs();

    /**
     * Type of membership to be requested to fill the list of members. Can be either "all" or "immediate". Default: "all"
     * 
     */
    @Import(name="membershipType")
    private @Nullable Output membershipType;

    /**
     * @return Type of membership to be requested to fill the list of members. Can be either "all" or "immediate". Default: "all"
     * 
     */
    public Optional> membershipType() {
        return Optional.ofNullable(this.membershipType);
    }

    /**
     * Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
     * 
     */
    @Import(name="resultsPerPage")
    private @Nullable Output resultsPerPage;

    /**
     * @return Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
     * 
     */
    public Optional> resultsPerPage() {
        return Optional.ofNullable(this.resultsPerPage);
    }

    /**
     * The team slug.
     * 
     */
    @Import(name="slug", required=true)
    private Output slug;

    /**
     * @return The team slug.
     * 
     */
    public Output slug() {
        return this.slug;
    }

    /**
     * Exclude the members and repositories of the team from the returned result. Defaults to `false`.
     * 
     */
    @Import(name="summaryOnly")
    private @Nullable Output summaryOnly;

    /**
     * @return Exclude the members and repositories of the team from the returned result. Defaults to `false`.
     * 
     */
    public Optional> summaryOnly() {
        return Optional.ofNullable(this.summaryOnly);
    }

    private GetTeamArgs() {}

    private GetTeamArgs(GetTeamArgs $) {
        this.membershipType = $.membershipType;
        this.resultsPerPage = $.resultsPerPage;
        this.slug = $.slug;
        this.summaryOnly = $.summaryOnly;
    }

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

    public static final class Builder {
        private GetTeamArgs $;

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

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

        /**
         * @param membershipType Type of membership to be requested to fill the list of members. Can be either "all" or "immediate". Default: "all"
         * 
         * @return builder
         * 
         */
        public Builder membershipType(@Nullable Output membershipType) {
            $.membershipType = membershipType;
            return this;
        }

        /**
         * @param membershipType Type of membership to be requested to fill the list of members. Can be either "all" or "immediate". Default: "all"
         * 
         * @return builder
         * 
         */
        public Builder membershipType(String membershipType) {
            return membershipType(Output.of(membershipType));
        }

        /**
         * @param resultsPerPage Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
         * 
         * @return builder
         * 
         */
        public Builder resultsPerPage(@Nullable Output resultsPerPage) {
            $.resultsPerPage = resultsPerPage;
            return this;
        }

        /**
         * @param resultsPerPage Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
         * 
         * @return builder
         * 
         */
        public Builder resultsPerPage(Integer resultsPerPage) {
            return resultsPerPage(Output.of(resultsPerPage));
        }

        /**
         * @param slug The team slug.
         * 
         * @return builder
         * 
         */
        public Builder slug(Output slug) {
            $.slug = slug;
            return this;
        }

        /**
         * @param slug The team slug.
         * 
         * @return builder
         * 
         */
        public Builder slug(String slug) {
            return slug(Output.of(slug));
        }

        /**
         * @param summaryOnly Exclude the members and repositories of the team from the returned result. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder summaryOnly(@Nullable Output summaryOnly) {
            $.summaryOnly = summaryOnly;
            return this;
        }

        /**
         * @param summaryOnly Exclude the members and repositories of the team from the returned result. Defaults to `false`.
         * 
         * @return builder
         * 
         */
        public Builder summaryOnly(Boolean summaryOnly) {
            return summaryOnly(Output.of(summaryOnly));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy