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

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

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


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

    public static final GenericRoleMapperArgs Empty = new GenericRoleMapperArgs();

    /**
     * The ID of the client this role mapper should be added to. Conflicts with `client_scope_id`. This argument is required if `client_scope_id` is not set.
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return The ID of the client this role mapper should be added to. Conflicts with `client_scope_id`. This argument is required if `client_scope_id` is not set.
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * The ID of the client scope this role mapper should be added to. Conflicts with `client_id`. This argument is required if `client_id` is not set.
     * 
     */
    @Import(name="clientScopeId")
    private @Nullable Output clientScopeId;

    /**
     * @return The ID of the client scope this role mapper should be added to. Conflicts with `client_id`. This argument is required if `client_id` is not set.
     * 
     */
    public Optional> clientScopeId() {
        return Optional.ofNullable(this.clientScopeId);
    }

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

    /**
     * @return The realm this role mapper exists within.
     * 
     */
    public Output realmId() {
        return this.realmId;
    }

    /**
     * The ID of the role to be added to this role mapper.
     * 
     */
    @Import(name="roleId", required=true)
    private Output roleId;

    /**
     * @return The ID of the role to be added to this role mapper.
     * 
     */
    public Output roleId() {
        return this.roleId;
    }

    private GenericRoleMapperArgs() {}

    private GenericRoleMapperArgs(GenericRoleMapperArgs $) {
        this.clientId = $.clientId;
        this.clientScopeId = $.clientScopeId;
        this.realmId = $.realmId;
        this.roleId = $.roleId;
    }

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

    public static final class Builder {
        private GenericRoleMapperArgs $;

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

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

        /**
         * @param clientId The ID of the client this role mapper should be added to. Conflicts with `client_scope_id`. This argument is required if `client_scope_id` is not set.
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The ID of the client this role mapper should be added to. Conflicts with `client_scope_id`. This argument is required if `client_scope_id` is not set.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientScopeId The ID of the client scope this role mapper should be added to. Conflicts with `client_id`. This argument is required if `client_id` is not set.
         * 
         * @return builder
         * 
         */
        public Builder clientScopeId(@Nullable Output clientScopeId) {
            $.clientScopeId = clientScopeId;
            return this;
        }

        /**
         * @param clientScopeId The ID of the client scope this role mapper should be added to. Conflicts with `client_id`. This argument is required if `client_id` is not set.
         * 
         * @return builder
         * 
         */
        public Builder clientScopeId(String clientScopeId) {
            return clientScopeId(Output.of(clientScopeId));
        }

        /**
         * @param realmId The realm this role mapper exists within.
         * 
         * @return builder
         * 
         */
        public Builder realmId(Output realmId) {
            $.realmId = realmId;
            return this;
        }

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

        /**
         * @param roleId The ID of the role to be added to this role mapper.
         * 
         * @return builder
         * 
         */
        public Builder roleId(Output roleId) {
            $.roleId = roleId;
            return this;
        }

        /**
         * @param roleId The ID of the role to be added to this role mapper.
         * 
         * @return builder
         * 
         */
        public Builder roleId(String roleId) {
            return roleId(Output.of(roleId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy