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

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

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


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

    public static final RealmKeystoreHmacGeneratedArgs Empty = new RealmKeystoreHmacGeneratedArgs();

    /**
     * When `false`, key in not used for signing. Defaults to `true`.
     * 
     */
    @Import(name="active")
    private @Nullable Output active;

    /**
     * @return When `false`, key in not used for signing. Defaults to `true`.
     * 
     */
    public Optional> active() {
        return Optional.ofNullable(this.active);
    }

    /**
     * Intended algorithm for the key. Defaults to `HS256`
     * 
     */
    @Import(name="algorithm")
    private @Nullable Output algorithm;

    /**
     * @return Intended algorithm for the key. Defaults to `HS256`
     * 
     */
    public Optional> algorithm() {
        return Optional.ofNullable(this.algorithm);
    }

    /**
     * When `false`, key is not accessible in this realm. Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return When `false`, key is not accessible in this realm. Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Display name of provider when linked in admin console.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Display name of provider when linked in admin console.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Priority for the provider. Defaults to `0`
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return Priority for the provider. Defaults to `0`
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

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

    /**
     * @return The realm this keystore exists in.
     * 
     */
    public Output realmId() {
        return this.realmId;
    }

    /**
     * Size in bytes for the generated secret. Defaults to `64`.
     * 
     */
    @Import(name="secretSize")
    private @Nullable Output secretSize;

    /**
     * @return Size in bytes for the generated secret. Defaults to `64`.
     * 
     */
    public Optional> secretSize() {
        return Optional.ofNullable(this.secretSize);
    }

    private RealmKeystoreHmacGeneratedArgs() {}

    private RealmKeystoreHmacGeneratedArgs(RealmKeystoreHmacGeneratedArgs $) {
        this.active = $.active;
        this.algorithm = $.algorithm;
        this.enabled = $.enabled;
        this.name = $.name;
        this.priority = $.priority;
        this.realmId = $.realmId;
        this.secretSize = $.secretSize;
    }

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

    public static final class Builder {
        private RealmKeystoreHmacGeneratedArgs $;

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

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

        /**
         * @param active When `false`, key in not used for signing. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder active(@Nullable Output active) {
            $.active = active;
            return this;
        }

        /**
         * @param active When `false`, key in not used for signing. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

        /**
         * @param algorithm Intended algorithm for the key. Defaults to `HS256`
         * 
         * @return builder
         * 
         */
        public Builder algorithm(@Nullable Output algorithm) {
            $.algorithm = algorithm;
            return this;
        }

        /**
         * @param algorithm Intended algorithm for the key. Defaults to `HS256`
         * 
         * @return builder
         * 
         */
        public Builder algorithm(String algorithm) {
            return algorithm(Output.of(algorithm));
        }

        /**
         * @param enabled When `false`, key is not accessible in this realm. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled When `false`, key is not accessible in this realm. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

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

        /**
         * @param name Display name of provider when linked in admin console.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param priority Priority for the provider. Defaults to `0`
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority for the provider. Defaults to `0`
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

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

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

        /**
         * @param secretSize Size in bytes for the generated secret. Defaults to `64`.
         * 
         * @return builder
         * 
         */
        public Builder secretSize(@Nullable Output secretSize) {
            $.secretSize = secretSize;
            return this;
        }

        /**
         * @param secretSize Size in bytes for the generated secret. Defaults to `64`.
         * 
         * @return builder
         * 
         */
        public Builder secretSize(Integer secretSize) {
            return secretSize(Output.of(secretSize));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy