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

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

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


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

    public static final CustomMapperArgs Empty = new CustomMapperArgs();

    /**
     * A map with key / value pairs for configuring the LDAP mapper. The supported keys depend on the protocol mapper.
     * 
     */
    @Import(name="config")
    private @Nullable Output> config;

    /**
     * @return A map with key / value pairs for configuring the LDAP mapper. The supported keys depend on the protocol mapper.
     * 
     */
    public Optional>> config() {
        return Optional.ofNullable(this.config);
    }

    /**
     * The ID of the LDAP user federation provider to attach this mapper to.
     * 
     */
    @Import(name="ldapUserFederationId", required=true)
    private Output ldapUserFederationId;

    /**
     * @return The ID of the LDAP user federation provider to attach this mapper to.
     * 
     */
    public Output ldapUserFederationId() {
        return this.ldapUserFederationId;
    }

    /**
     * Display name of this mapper when displayed in the console.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Display name of this mapper when displayed in the console.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The id of the LDAP mapper implemented in MapperFactory.
     * 
     */
    @Import(name="providerId", required=true)
    private Output providerId;

    /**
     * @return The id of the LDAP mapper implemented in MapperFactory.
     * 
     */
    public Output providerId() {
        return this.providerId;
    }

    /**
     * The fully-qualified Java class name of the custom LDAP mapper.
     * 
     */
    @Import(name="providerType", required=true)
    private Output providerType;

    /**
     * @return The fully-qualified Java class name of the custom LDAP mapper.
     * 
     */
    public Output providerType() {
        return this.providerType;
    }

    /**
     * The realm that this LDAP mapper will exist in.
     * 
     */
    @Import(name="realmId", required=true)
    private Output realmId;

    /**
     * @return The realm that this LDAP mapper will exist in.
     * 
     */
    public Output realmId() {
        return this.realmId;
    }

    private CustomMapperArgs() {}

    private CustomMapperArgs(CustomMapperArgs $) {
        this.config = $.config;
        this.ldapUserFederationId = $.ldapUserFederationId;
        this.name = $.name;
        this.providerId = $.providerId;
        this.providerType = $.providerType;
        this.realmId = $.realmId;
    }

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

    public static final class Builder {
        private CustomMapperArgs $;

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

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

        /**
         * @param config A map with key / value pairs for configuring the LDAP mapper. The supported keys depend on the protocol mapper.
         * 
         * @return builder
         * 
         */
        public Builder config(@Nullable Output> config) {
            $.config = config;
            return this;
        }

        /**
         * @param config A map with key / value pairs for configuring the LDAP mapper. The supported keys depend on the protocol mapper.
         * 
         * @return builder
         * 
         */
        public Builder config(Map config) {
            return config(Output.of(config));
        }

        /**
         * @param ldapUserFederationId The ID of the LDAP user federation provider to attach this mapper to.
         * 
         * @return builder
         * 
         */
        public Builder ldapUserFederationId(Output ldapUserFederationId) {
            $.ldapUserFederationId = ldapUserFederationId;
            return this;
        }

        /**
         * @param ldapUserFederationId The ID of the LDAP user federation provider to attach this mapper to.
         * 
         * @return builder
         * 
         */
        public Builder ldapUserFederationId(String ldapUserFederationId) {
            return ldapUserFederationId(Output.of(ldapUserFederationId));
        }

        /**
         * @param name Display name of this mapper when displayed in the console.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Display name of this mapper when displayed in the console.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param providerId The id of the LDAP mapper implemented in MapperFactory.
         * 
         * @return builder
         * 
         */
        public Builder providerId(Output providerId) {
            $.providerId = providerId;
            return this;
        }

        /**
         * @param providerId The id of the LDAP mapper implemented in MapperFactory.
         * 
         * @return builder
         * 
         */
        public Builder providerId(String providerId) {
            return providerId(Output.of(providerId));
        }

        /**
         * @param providerType The fully-qualified Java class name of the custom LDAP mapper.
         * 
         * @return builder
         * 
         */
        public Builder providerType(Output providerType) {
            $.providerType = providerType;
            return this;
        }

        /**
         * @param providerType The fully-qualified Java class name of the custom LDAP mapper.
         * 
         * @return builder
         * 
         */
        public Builder providerType(String providerType) {
            return providerType(Output.of(providerType));
        }

        /**
         * @param realmId The realm that this LDAP mapper will exist in.
         * 
         * @return builder
         * 
         */
        public Builder realmId(Output realmId) {
            $.realmId = realmId;
            return this;
        }

        /**
         * @param realmId The realm that this LDAP mapper will exist in.
         * 
         * @return builder
         * 
         */
        public Builder realmId(String realmId) {
            return realmId(Output.of(realmId));
        }

        public CustomMapperArgs build() {
            if ($.ldapUserFederationId == null) {
                throw new MissingRequiredPropertyException("CustomMapperArgs", "ldapUserFederationId");
            }
            if ($.providerId == null) {
                throw new MissingRequiredPropertyException("CustomMapperArgs", "providerId");
            }
            if ($.providerType == null) {
                throw new MissingRequiredPropertyException("CustomMapperArgs", "providerType");
            }
            if ($.realmId == null) {
                throw new MissingRequiredPropertyException("CustomMapperArgs", "realmId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy