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

com.pulumi.keycloak.inputs.UserGroupsState Maven / Gradle / Ivy

There is a newer version: 5.4.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.keycloak.inputs;

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


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

    public static final UserGroupsState Empty = new UserGroupsState();

    /**
     * Indicates if the list of the user's groups is exhaustive. In this case, groups that are manually added to the user will be removed. Defaults to `true`.
     * 
     */
    @Import(name="exhaustive")
    private @Nullable Output exhaustive;

    /**
     * @return Indicates if the list of the user's groups is exhaustive. In this case, groups that are manually added to the user will be removed. Defaults to `true`.
     * 
     */
    public Optional> exhaustive() {
        return Optional.ofNullable(this.exhaustive);
    }

    /**
     * A list of group IDs that the user is member of.
     * 
     */
    @Import(name="groupIds")
    private @Nullable Output> groupIds;

    /**
     * @return A list of group IDs that the user is member of.
     * 
     */
    public Optional>> groupIds() {
        return Optional.ofNullable(this.groupIds);
    }

    /**
     * The realm this group exists in.
     * 
     */
    @Import(name="realmId")
    private @Nullable Output realmId;

    /**
     * @return The realm this group exists in.
     * 
     */
    public Optional> realmId() {
        return Optional.ofNullable(this.realmId);
    }

    /**
     * The ID of the user this resource should manage groups for.
     * 
     */
    @Import(name="userId")
    private @Nullable Output userId;

    /**
     * @return The ID of the user this resource should manage groups for.
     * 
     */
    public Optional> userId() {
        return Optional.ofNullable(this.userId);
    }

    private UserGroupsState() {}

    private UserGroupsState(UserGroupsState $) {
        this.exhaustive = $.exhaustive;
        this.groupIds = $.groupIds;
        this.realmId = $.realmId;
        this.userId = $.userId;
    }

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

    public static final class Builder {
        private UserGroupsState $;

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

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

        /**
         * @param exhaustive Indicates if the list of the user's groups is exhaustive. In this case, groups that are manually added to the user will be removed. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder exhaustive(@Nullable Output exhaustive) {
            $.exhaustive = exhaustive;
            return this;
        }

        /**
         * @param exhaustive Indicates if the list of the user's groups is exhaustive. In this case, groups that are manually added to the user will be removed. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder exhaustive(Boolean exhaustive) {
            return exhaustive(Output.of(exhaustive));
        }

        /**
         * @param groupIds A list of group IDs that the user is member of.
         * 
         * @return builder
         * 
         */
        public Builder groupIds(@Nullable Output> groupIds) {
            $.groupIds = groupIds;
            return this;
        }

        /**
         * @param groupIds A list of group IDs that the user is member of.
         * 
         * @return builder
         * 
         */
        public Builder groupIds(List groupIds) {
            return groupIds(Output.of(groupIds));
        }

        /**
         * @param groupIds A list of group IDs that the user is member of.
         * 
         * @return builder
         * 
         */
        public Builder groupIds(String... groupIds) {
            return groupIds(List.of(groupIds));
        }

        /**
         * @param realmId The realm this group exists in.
         * 
         * @return builder
         * 
         */
        public Builder realmId(@Nullable Output realmId) {
            $.realmId = realmId;
            return this;
        }

        /**
         * @param realmId The realm this group exists in.
         * 
         * @return builder
         * 
         */
        public Builder realmId(String realmId) {
            return realmId(Output.of(realmId));
        }

        /**
         * @param userId The ID of the user this resource should manage groups for.
         * 
         * @return builder
         * 
         */
        public Builder userId(@Nullable Output userId) {
            $.userId = userId;
            return this;
        }

        /**
         * @param userId The ID of the user this resource should manage groups for.
         * 
         * @return builder
         * 
         */
        public Builder userId(String userId) {
            return userId(Output.of(userId));
        }

        public UserGroupsState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy