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

com.pulumi.github.inputs.TeamMembersState 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.github.inputs.TeamMembersMemberArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TeamMembersState Empty = new TeamMembersState();

    /**
     * List of team members. See Members below for details.
     * 
     */
    @Import(name="members")
    private @Nullable Output> members;

    /**
     * @return List of team members. See Members below for details.
     * 
     */
    public Optional>> members() {
        return Optional.ofNullable(this.members);
    }

    /**
     * The team id or the team slug
     * 
     * > **Note** Although the team id or team slug can be used it is recommended to use the team id.  Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated.
     * 
     */
    @Import(name="teamId")
    private @Nullable Output teamId;

    /**
     * @return The team id or the team slug
     * 
     * > **Note** Although the team id or team slug can be used it is recommended to use the team id.  Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated.
     * 
     */
    public Optional> teamId() {
        return Optional.ofNullable(this.teamId);
    }

    private TeamMembersState() {}

    private TeamMembersState(TeamMembersState $) {
        this.members = $.members;
        this.teamId = $.teamId;
    }

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

    public static final class Builder {
        private TeamMembersState $;

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

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

        /**
         * @param members List of team members. See Members below for details.
         * 
         * @return builder
         * 
         */
        public Builder members(@Nullable Output> members) {
            $.members = members;
            return this;
        }

        /**
         * @param members List of team members. See Members below for details.
         * 
         * @return builder
         * 
         */
        public Builder members(List members) {
            return members(Output.of(members));
        }

        /**
         * @param members List of team members. See Members below for details.
         * 
         * @return builder
         * 
         */
        public Builder members(TeamMembersMemberArgs... members) {
            return members(List.of(members));
        }

        /**
         * @param teamId The team id or the team slug
         * 
         * > **Note** Although the team id or team slug can be used it is recommended to use the team id.  Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated.
         * 
         * @return builder
         * 
         */
        public Builder teamId(@Nullable Output teamId) {
            $.teamId = teamId;
            return this;
        }

        /**
         * @param teamId The team id or the team slug
         * 
         * > **Note** Although the team id or team slug can be used it is recommended to use the team id.  Using the team slug will cause the team members associations to the team to be destroyed and recreated if the team name is updated.
         * 
         * @return builder
         * 
         */
        public Builder teamId(String teamId) {
            return teamId(Output.of(teamId));
        }

        public TeamMembersState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy