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

com.pulumi.keycloak.GroupMembershipsArgs 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.keycloak;

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


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

    public static final GroupMembershipsArgs Empty = new GroupMembershipsArgs();

    /**
     * The ID of the group this resource should manage memberships for.
     * 
     */
    @Import(name="groupId")
    private @Nullable Output groupId;

    /**
     * @return The ID of the group this resource should manage memberships for.
     * 
     */
    public Optional> groupId() {
        return Optional.ofNullable(this.groupId);
    }

    /**
     * A list of usernames that belong to this group.
     * 
     */
    @Import(name="members", required=true)
    private Output> members;

    /**
     * @return A list of usernames that belong to this group.
     * 
     */
    public Output> members() {
        return this.members;
    }

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

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

    private GroupMembershipsArgs() {}

    private GroupMembershipsArgs(GroupMembershipsArgs $) {
        this.groupId = $.groupId;
        this.members = $.members;
        this.realmId = $.realmId;
    }

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

    public static final class Builder {
        private GroupMembershipsArgs $;

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

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

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

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

        /**
         * @param members A list of usernames that belong to this group.
         * 
         * @return builder
         * 
         */
        public Builder members(Output> members) {
            $.members = members;
            return this;
        }

        /**
         * @param members A list of usernames that belong to this group.
         * 
         * @return builder
         * 
         */
        public Builder members(List members) {
            return members(Output.of(members));
        }

        /**
         * @param members A list of usernames that belong to this group.
         * 
         * @return builder
         * 
         */
        public Builder members(String... members) {
            return members(List.of(members));
        }

        /**
         * @param realmId The realm this group exists in.
         * 
         * @return builder
         * 
         */
        public Builder realmId(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));
        }

        public GroupMembershipsArgs build() {
            if ($.members == null) {
                throw new MissingRequiredPropertyException("GroupMembershipsArgs", "members");
            }
            if ($.realmId == null) {
                throw new MissingRequiredPropertyException("GroupMembershipsArgs", "realmId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy