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

com.pulumi.keycloak.inputs.GetRealmKeysArgs Maven / Gradle / Ivy

The 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetRealmKeysArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRealmKeysArgs Empty = new GetRealmKeysArgs();

    /**
     * When specified, keys will be filtered by algorithm. The algorithms can be any of `HS256`, `RS256`,`AES`, etc.
     * 
     */
    @Import(name="algorithms")
    private @Nullable Output> algorithms;

    /**
     * @return When specified, keys will be filtered by algorithm. The algorithms can be any of `HS256`, `RS256`,`AES`, etc.
     * 
     */
    public Optional>> algorithms() {
        return Optional.ofNullable(this.algorithms);
    }

    /**
     * The realm from which the keys will be retrieved.
     * 
     */
    @Import(name="realmId", required=true)
    private Output realmId;

    /**
     * @return The realm from which the keys will be retrieved.
     * 
     */
    public Output realmId() {
        return this.realmId;
    }

    /**
     * When specified, keys will be filtered by status. The statuses can be any of `ACTIVE`, `DISABLED` and `PASSIVE`.
     * 
     */
    @Import(name="statuses")
    private @Nullable Output> statuses;

    /**
     * @return When specified, keys will be filtered by status. The statuses can be any of `ACTIVE`, `DISABLED` and `PASSIVE`.
     * 
     */
    public Optional>> statuses() {
        return Optional.ofNullable(this.statuses);
    }

    private GetRealmKeysArgs() {}

    private GetRealmKeysArgs(GetRealmKeysArgs $) {
        this.algorithms = $.algorithms;
        this.realmId = $.realmId;
        this.statuses = $.statuses;
    }

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

    public static final class Builder {
        private GetRealmKeysArgs $;

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

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

        /**
         * @param algorithms When specified, keys will be filtered by algorithm. The algorithms can be any of `HS256`, `RS256`,`AES`, etc.
         * 
         * @return builder
         * 
         */
        public Builder algorithms(@Nullable Output> algorithms) {
            $.algorithms = algorithms;
            return this;
        }

        /**
         * @param algorithms When specified, keys will be filtered by algorithm. The algorithms can be any of `HS256`, `RS256`,`AES`, etc.
         * 
         * @return builder
         * 
         */
        public Builder algorithms(List algorithms) {
            return algorithms(Output.of(algorithms));
        }

        /**
         * @param algorithms When specified, keys will be filtered by algorithm. The algorithms can be any of `HS256`, `RS256`,`AES`, etc.
         * 
         * @return builder
         * 
         */
        public Builder algorithms(String... algorithms) {
            return algorithms(List.of(algorithms));
        }

        /**
         * @param realmId The realm from which the keys will be retrieved.
         * 
         * @return builder
         * 
         */
        public Builder realmId(Output realmId) {
            $.realmId = realmId;
            return this;
        }

        /**
         * @param realmId The realm from which the keys will be retrieved.
         * 
         * @return builder
         * 
         */
        public Builder realmId(String realmId) {
            return realmId(Output.of(realmId));
        }

        /**
         * @param statuses When specified, keys will be filtered by status. The statuses can be any of `ACTIVE`, `DISABLED` and `PASSIVE`.
         * 
         * @return builder
         * 
         */
        public Builder statuses(@Nullable Output> statuses) {
            $.statuses = statuses;
            return this;
        }

        /**
         * @param statuses When specified, keys will be filtered by status. The statuses can be any of `ACTIVE`, `DISABLED` and `PASSIVE`.
         * 
         * @return builder
         * 
         */
        public Builder statuses(List statuses) {
            return statuses(Output.of(statuses));
        }

        /**
         * @param statuses When specified, keys will be filtered by status. The statuses can be any of `ACTIVE`, `DISABLED` and `PASSIVE`.
         * 
         * @return builder
         * 
         */
        public Builder statuses(String... statuses) {
            return statuses(List.of(statuses));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy