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

com.pulumi.keycloak.inputs.GetUserRealmRolesPlainArgs 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.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final GetUserRealmRolesPlainArgs Empty = new GetUserRealmRolesPlainArgs();

    /**
     * The realm this user belongs to.
     * 
     */
    @Import(name="realmId", required=true)
    private String realmId;

    /**
     * @return The realm this user belongs to.
     * 
     */
    public String realmId() {
        return this.realmId;
    }

    /**
     * The ID of the user to query realm roles for.
     * 
     */
    @Import(name="userId", required=true)
    private String userId;

    /**
     * @return The ID of the user to query realm roles for.
     * 
     */
    public String userId() {
        return this.userId;
    }

    private GetUserRealmRolesPlainArgs() {}

    private GetUserRealmRolesPlainArgs(GetUserRealmRolesPlainArgs $) {
        this.realmId = $.realmId;
        this.userId = $.userId;
    }

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

    public static final class Builder {
        private GetUserRealmRolesPlainArgs $;

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

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

        /**
         * @param realmId The realm this user belongs to.
         * 
         * @return builder
         * 
         */
        public Builder realmId(String realmId) {
            $.realmId = realmId;
            return this;
        }

        /**
         * @param userId The ID of the user to query realm roles for.
         * 
         * @return builder
         * 
         */
        public Builder userId(String userId) {
            $.userId = userId;
            return this;
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy