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

com.pulumi.keycloak.ldap.HardcodedAttributeMapperArgs Maven / Gradle / Ivy

// *** 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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HardcodedAttributeMapperArgs Empty = new HardcodedAttributeMapperArgs();

    /**
     * The name of the LDAP attribute to set.
     * 
     */
    @Import(name="attributeName", required=true)
    private Output attributeName;

    /**
     * @return The name of the LDAP attribute to set.
     * 
     */
    public Output attributeName() {
        return this.attributeName;
    }

    /**
     * The value to set to the LDAP attribute. You can hardcode any value like 'foo'.
     * 
     */
    @Import(name="attributeValue", required=true)
    private Output attributeValue;

    /**
     * @return The value to set to the LDAP attribute. You can hardcode any value like 'foo'.
     * 
     */
    public Output attributeValue() {
        return this.attributeValue;
    }

    /**
     * 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 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 HardcodedAttributeMapperArgs() {}

    private HardcodedAttributeMapperArgs(HardcodedAttributeMapperArgs $) {
        this.attributeName = $.attributeName;
        this.attributeValue = $.attributeValue;
        this.ldapUserFederationId = $.ldapUserFederationId;
        this.name = $.name;
        this.realmId = $.realmId;
    }

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

    public static final class Builder {
        private HardcodedAttributeMapperArgs $;

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

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

        /**
         * @param attributeName The name of the LDAP attribute to set.
         * 
         * @return builder
         * 
         */
        public Builder attributeName(Output attributeName) {
            $.attributeName = attributeName;
            return this;
        }

        /**
         * @param attributeName The name of the LDAP attribute to set.
         * 
         * @return builder
         * 
         */
        public Builder attributeName(String attributeName) {
            return attributeName(Output.of(attributeName));
        }

        /**
         * @param attributeValue The value to set to the LDAP attribute. You can hardcode any value like 'foo'.
         * 
         * @return builder
         * 
         */
        public Builder attributeValue(Output attributeValue) {
            $.attributeValue = attributeValue;
            return this;
        }

        /**
         * @param attributeValue The value to set to the LDAP attribute. You can hardcode any value like 'foo'.
         * 
         * @return builder
         * 
         */
        public Builder attributeValue(String attributeValue) {
            return attributeValue(Output.of(attributeValue));
        }

        /**
         * @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 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 HardcodedAttributeMapperArgs build() {
            if ($.attributeName == null) {
                throw new MissingRequiredPropertyException("HardcodedAttributeMapperArgs", "attributeName");
            }
            if ($.attributeValue == null) {
                throw new MissingRequiredPropertyException("HardcodedAttributeMapperArgs", "attributeValue");
            }
            if ($.ldapUserFederationId == null) {
                throw new MissingRequiredPropertyException("HardcodedAttributeMapperArgs", "ldapUserFederationId");
            }
            if ($.realmId == null) {
                throw new MissingRequiredPropertyException("HardcodedAttributeMapperArgs", "realmId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy