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

com.pulumi.okta.app.inputs.OAuthJwkArgs 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.app.inputs;

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


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

    public static final OAuthJwkArgs Empty = new OAuthJwkArgs();

    /**
     * RSA Exponent
     * 
     */
    @Import(name="e")
    private @Nullable Output e;

    /**
     * @return RSA Exponent
     * 
     */
    public Optional> e() {
        return Optional.ofNullable(this.e);
    }

    /**
     * Key ID
     * 
     */
    @Import(name="kid", required=true)
    private Output kid;

    /**
     * @return Key ID
     * 
     */
    public Output kid() {
        return this.kid;
    }

    /**
     * Key type
     * 
     */
    @Import(name="kty", required=true)
    private Output kty;

    /**
     * @return Key type
     * 
     */
    public Output kty() {
        return this.kty;
    }

    /**
     * RSA Modulus
     * 
     */
    @Import(name="n")
    private @Nullable Output n;

    /**
     * @return RSA Modulus
     * 
     */
    public Optional> n() {
        return Optional.ofNullable(this.n);
    }

    /**
     * X coordinate of the elliptic curve point
     * 
     */
    @Import(name="x")
    private @Nullable Output x;

    /**
     * @return X coordinate of the elliptic curve point
     * 
     */
    public Optional> x() {
        return Optional.ofNullable(this.x);
    }

    /**
     * Y coordinate of the elliptic curve point
     * 
     */
    @Import(name="y")
    private @Nullable Output y;

    /**
     * @return Y coordinate of the elliptic curve point
     * 
     */
    public Optional> y() {
        return Optional.ofNullable(this.y);
    }

    private OAuthJwkArgs() {}

    private OAuthJwkArgs(OAuthJwkArgs $) {
        this.e = $.e;
        this.kid = $.kid;
        this.kty = $.kty;
        this.n = $.n;
        this.x = $.x;
        this.y = $.y;
    }

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

    public static final class Builder {
        private OAuthJwkArgs $;

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

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

        /**
         * @param e RSA Exponent
         * 
         * @return builder
         * 
         */
        public Builder e(@Nullable Output e) {
            $.e = e;
            return this;
        }

        /**
         * @param e RSA Exponent
         * 
         * @return builder
         * 
         */
        public Builder e(String e) {
            return e(Output.of(e));
        }

        /**
         * @param kid Key ID
         * 
         * @return builder
         * 
         */
        public Builder kid(Output kid) {
            $.kid = kid;
            return this;
        }

        /**
         * @param kid Key ID
         * 
         * @return builder
         * 
         */
        public Builder kid(String kid) {
            return kid(Output.of(kid));
        }

        /**
         * @param kty Key type
         * 
         * @return builder
         * 
         */
        public Builder kty(Output kty) {
            $.kty = kty;
            return this;
        }

        /**
         * @param kty Key type
         * 
         * @return builder
         * 
         */
        public Builder kty(String kty) {
            return kty(Output.of(kty));
        }

        /**
         * @param n RSA Modulus
         * 
         * @return builder
         * 
         */
        public Builder n(@Nullable Output n) {
            $.n = n;
            return this;
        }

        /**
         * @param n RSA Modulus
         * 
         * @return builder
         * 
         */
        public Builder n(String n) {
            return n(Output.of(n));
        }

        /**
         * @param x X coordinate of the elliptic curve point
         * 
         * @return builder
         * 
         */
        public Builder x(@Nullable Output x) {
            $.x = x;
            return this;
        }

        /**
         * @param x X coordinate of the elliptic curve point
         * 
         * @return builder
         * 
         */
        public Builder x(String x) {
            return x(Output.of(x));
        }

        /**
         * @param y Y coordinate of the elliptic curve point
         * 
         * @return builder
         * 
         */
        public Builder y(@Nullable Output y) {
            $.y = y;
            return this;
        }

        /**
         * @param y Y coordinate of the elliptic curve point
         * 
         * @return builder
         * 
         */
        public Builder y(String y) {
            return y(Output.of(y));
        }

        public OAuthJwkArgs build() {
            if ($.kid == null) {
                throw new MissingRequiredPropertyException("OAuthJwkArgs", "kid");
            }
            if ($.kty == null) {
                throw new MissingRequiredPropertyException("OAuthJwkArgs", "kty");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy