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

com.pulumi.keycloak.inputs.DefaultRolesState 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.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DefaultRolesState Empty = new DefaultRolesState();

    /**
     * Realm level roles assigned to new users by default.
     * 
     */
    @Import(name="defaultRoles")
    private @Nullable Output> defaultRoles;

    /**
     * @return Realm level roles assigned to new users by default.
     * 
     */
    public Optional>> defaultRoles() {
        return Optional.ofNullable(this.defaultRoles);
    }

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

    /**
     * @return The realm this role exists within.
     * 
     */
    public Optional> realmId() {
        return Optional.ofNullable(this.realmId);
    }

    private DefaultRolesState() {}

    private DefaultRolesState(DefaultRolesState $) {
        this.defaultRoles = $.defaultRoles;
        this.realmId = $.realmId;
    }

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

    public static final class Builder {
        private DefaultRolesState $;

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

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

        /**
         * @param defaultRoles Realm level roles assigned to new users by default.
         * 
         * @return builder
         * 
         */
        public Builder defaultRoles(@Nullable Output> defaultRoles) {
            $.defaultRoles = defaultRoles;
            return this;
        }

        /**
         * @param defaultRoles Realm level roles assigned to new users by default.
         * 
         * @return builder
         * 
         */
        public Builder defaultRoles(List defaultRoles) {
            return defaultRoles(Output.of(defaultRoles));
        }

        /**
         * @param defaultRoles Realm level roles assigned to new users by default.
         * 
         * @return builder
         * 
         */
        public Builder defaultRoles(String... defaultRoles) {
            return defaultRoles(List.of(defaultRoles));
        }

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

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

        public DefaultRolesState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy