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

com.pulumi.keycloak.HardcodedAttributeIdentityProviderMapperArgs 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.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HardcodedAttributeIdentityProviderMapperArgs Empty = new HardcodedAttributeIdentityProviderMapperArgs();

    /**
     * The name of the IDP attribute to set.
     * 
     */
    @Import(name="attributeName")
    private @Nullable Output attributeName;

    /**
     * @return The name of the IDP attribute to set.
     * 
     */
    public Optional> attributeName() {
        return Optional.ofNullable(this.attributeName);
    }

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

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

    @Import(name="extraConfig")
    private @Nullable Output> extraConfig;

    public Optional>> extraConfig() {
        return Optional.ofNullable(this.extraConfig);
    }

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

    /**
     * @return The IDP alias of the attribute to set.
     * 
     */
    public Output identityProviderAlias() {
        return this.identityProviderAlias;
    }

    /**
     * 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 ID that this mapper will exist in.
     * 
     */
    @Import(name="realm", required=true)
    private Output realm;

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

    /**
     * Is Attribute related to a User Session.
     * 
     */
    @Import(name="userSession", required=true)
    private Output userSession;

    /**
     * @return Is Attribute related to a User Session.
     * 
     */
    public Output userSession() {
        return this.userSession;
    }

    private HardcodedAttributeIdentityProviderMapperArgs() {}

    private HardcodedAttributeIdentityProviderMapperArgs(HardcodedAttributeIdentityProviderMapperArgs $) {
        this.attributeName = $.attributeName;
        this.attributeValue = $.attributeValue;
        this.extraConfig = $.extraConfig;
        this.identityProviderAlias = $.identityProviderAlias;
        this.name = $.name;
        this.realm = $.realm;
        this.userSession = $.userSession;
    }

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

    public static final class Builder {
        private HardcodedAttributeIdentityProviderMapperArgs $;

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

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

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

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

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

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

        public Builder extraConfig(@Nullable Output> extraConfig) {
            $.extraConfig = extraConfig;
            return this;
        }

        public Builder extraConfig(Map extraConfig) {
            return extraConfig(Output.of(extraConfig));
        }

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

        /**
         * @param identityProviderAlias The IDP alias of the attribute to set.
         * 
         * @return builder
         * 
         */
        public Builder identityProviderAlias(String identityProviderAlias) {
            return identityProviderAlias(Output.of(identityProviderAlias));
        }

        /**
         * @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 realm The realm ID that this mapper will exist in.
         * 
         * @return builder
         * 
         */
        public Builder realm(Output realm) {
            $.realm = realm;
            return this;
        }

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

        /**
         * @param userSession Is Attribute related to a User Session.
         * 
         * @return builder
         * 
         */
        public Builder userSession(Output userSession) {
            $.userSession = userSession;
            return this;
        }

        /**
         * @param userSession Is Attribute related to a User Session.
         * 
         * @return builder
         * 
         */
        public Builder userSession(Boolean userSession) {
            return userSession(Output.of(userSession));
        }

        public HardcodedAttributeIdentityProviderMapperArgs build() {
            if ($.identityProviderAlias == null) {
                throw new MissingRequiredPropertyException("HardcodedAttributeIdentityProviderMapperArgs", "identityProviderAlias");
            }
            if ($.realm == null) {
                throw new MissingRequiredPropertyException("HardcodedAttributeIdentityProviderMapperArgs", "realm");
            }
            if ($.userSession == null) {
                throw new MissingRequiredPropertyException("HardcodedAttributeIdentityProviderMapperArgs", "userSession");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy