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

com.pulumi.github.TeamSyncGroupMappingArgs Maven / Gradle / Ivy

// *** 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;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.github.inputs.TeamSyncGroupMappingGroupArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TeamSyncGroupMappingArgs Empty = new TeamSyncGroupMappingArgs();

    /**
     * An Array of GitHub Identity Provider Groups (or empty []).  Each `group` block consists of the fields documented below.
     * ***
     * 
     * The `group` block consists of:
     * 
     */
    @Import(name="groups")
    private @Nullable Output> groups;

    /**
     * @return An Array of GitHub Identity Provider Groups (or empty []).  Each `group` block consists of the fields documented below.
     * ***
     * 
     * The `group` block consists of:
     * 
     */
    public Optional>> groups() {
        return Optional.ofNullable(this.groups);
    }

    /**
     * Slug of the team
     * 
     */
    @Import(name="teamSlug", required=true)
    private Output teamSlug;

    /**
     * @return Slug of the team
     * 
     */
    public Output teamSlug() {
        return this.teamSlug;
    }

    private TeamSyncGroupMappingArgs() {}

    private TeamSyncGroupMappingArgs(TeamSyncGroupMappingArgs $) {
        this.groups = $.groups;
        this.teamSlug = $.teamSlug;
    }

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

    public static final class Builder {
        private TeamSyncGroupMappingArgs $;

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

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

        /**
         * @param groups An Array of GitHub Identity Provider Groups (or empty []).  Each `group` block consists of the fields documented below.
         * ***
         * 
         * The `group` block consists of:
         * 
         * @return builder
         * 
         */
        public Builder groups(@Nullable Output> groups) {
            $.groups = groups;
            return this;
        }

        /**
         * @param groups An Array of GitHub Identity Provider Groups (or empty []).  Each `group` block consists of the fields documented below.
         * ***
         * 
         * The `group` block consists of:
         * 
         * @return builder
         * 
         */
        public Builder groups(List groups) {
            return groups(Output.of(groups));
        }

        /**
         * @param groups An Array of GitHub Identity Provider Groups (or empty []).  Each `group` block consists of the fields documented below.
         * ***
         * 
         * The `group` block consists of:
         * 
         * @return builder
         * 
         */
        public Builder groups(TeamSyncGroupMappingGroupArgs... groups) {
            return groups(List.of(groups));
        }

        /**
         * @param teamSlug Slug of the team
         * 
         * @return builder
         * 
         */
        public Builder teamSlug(Output teamSlug) {
            $.teamSlug = teamSlug;
            return this;
        }

        /**
         * @param teamSlug Slug of the team
         * 
         * @return builder
         * 
         */
        public Builder teamSlug(String teamSlug) {
            return teamSlug(Output.of(teamSlug));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy