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

com.pulumi.okta.auth.ServerArgs Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1732774005
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.okta.auth;

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 ServerArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServerArgs Empty = new ServerArgs();

    /**
     * The recipients that the tokens are intended for. This becomes the `aud` claim in an access token. Currently Okta only supports a single value here.
     * 
     */
    @Import(name="audiences", required=true)
    private Output> audiences;

    /**
     * @return The recipients that the tokens are intended for. This becomes the `aud` claim in an access token. Currently Okta only supports a single value here.
     * 
     */
    public Output> audiences() {
        return this.audiences;
    }

    /**
     * The key rotation mode for the authorization server. Can be `AUTO` or `MANUAL`. Default: `AUTO`
     * 
     */
    @Import(name="credentialsRotationMode")
    private @Nullable Output credentialsRotationMode;

    /**
     * @return The key rotation mode for the authorization server. Can be `AUTO` or `MANUAL`. Default: `AUTO`
     * 
     */
    public Optional> credentialsRotationMode() {
        return Optional.ofNullable(this.credentialsRotationMode);
    }

    /**
     * The description of the authorization server.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the authorization server.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * *Early Access Property*. Allows you to use a custom issuer URL. It can be set to `CUSTOM_URL`, `ORG_URL`, or `DYNAMIC`. Default: `ORG_URL`
     * 
     */
    @Import(name="issuerMode")
    private @Nullable Output issuerMode;

    /**
     * @return *Early Access Property*. Allows you to use a custom issuer URL. It can be set to `CUSTOM_URL`, `ORG_URL`, or `DYNAMIC`. Default: `ORG_URL`
     * 
     */
    public Optional> issuerMode() {
        return Optional.ofNullable(this.issuerMode);
    }

    /**
     * The name of the authorization server.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the authorization server.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Default to `ACTIVE`
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Default to `ACTIVE`
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private ServerArgs() {}

    private ServerArgs(ServerArgs $) {
        this.audiences = $.audiences;
        this.credentialsRotationMode = $.credentialsRotationMode;
        this.description = $.description;
        this.issuerMode = $.issuerMode;
        this.name = $.name;
        this.status = $.status;
    }

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

    public static final class Builder {
        private ServerArgs $;

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

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

        /**
         * @param audiences The recipients that the tokens are intended for. This becomes the `aud` claim in an access token. Currently Okta only supports a single value here.
         * 
         * @return builder
         * 
         */
        public Builder audiences(Output> audiences) {
            $.audiences = audiences;
            return this;
        }

        /**
         * @param audiences The recipients that the tokens are intended for. This becomes the `aud` claim in an access token. Currently Okta only supports a single value here.
         * 
         * @return builder
         * 
         */
        public Builder audiences(List audiences) {
            return audiences(Output.of(audiences));
        }

        /**
         * @param audiences The recipients that the tokens are intended for. This becomes the `aud` claim in an access token. Currently Okta only supports a single value here.
         * 
         * @return builder
         * 
         */
        public Builder audiences(String... audiences) {
            return audiences(List.of(audiences));
        }

        /**
         * @param credentialsRotationMode The key rotation mode for the authorization server. Can be `AUTO` or `MANUAL`. Default: `AUTO`
         * 
         * @return builder
         * 
         */
        public Builder credentialsRotationMode(@Nullable Output credentialsRotationMode) {
            $.credentialsRotationMode = credentialsRotationMode;
            return this;
        }

        /**
         * @param credentialsRotationMode The key rotation mode for the authorization server. Can be `AUTO` or `MANUAL`. Default: `AUTO`
         * 
         * @return builder
         * 
         */
        public Builder credentialsRotationMode(String credentialsRotationMode) {
            return credentialsRotationMode(Output.of(credentialsRotationMode));
        }

        /**
         * @param description The description of the authorization server.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the authorization server.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param issuerMode *Early Access Property*. Allows you to use a custom issuer URL. It can be set to `CUSTOM_URL`, `ORG_URL`, or `DYNAMIC`. Default: `ORG_URL`
         * 
         * @return builder
         * 
         */
        public Builder issuerMode(@Nullable Output issuerMode) {
            $.issuerMode = issuerMode;
            return this;
        }

        /**
         * @param issuerMode *Early Access Property*. Allows you to use a custom issuer URL. It can be set to `CUSTOM_URL`, `ORG_URL`, or `DYNAMIC`. Default: `ORG_URL`
         * 
         * @return builder
         * 
         */
        public Builder issuerMode(String issuerMode) {
            return issuerMode(Output.of(issuerMode));
        }

        /**
         * @param name The name of the authorization server.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the authorization server.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param status Default to `ACTIVE`
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Default to `ACTIVE`
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy