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

com.pulumi.okta.app.inputs.OAuthGroupsClaimArgs 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 OAuthGroupsClaimArgs extends com.pulumi.resources.ResourceArgs {

    public static final OAuthGroupsClaimArgs Empty = new OAuthGroupsClaimArgs();

    /**
     * Groups claim filter. Can only be set if type is FILTER.
     * 
     */
    @Import(name="filterType")
    private @Nullable Output filterType;

    /**
     * @return Groups claim filter. Can only be set if type is FILTER.
     * 
     */
    public Optional> filterType() {
        return Optional.ofNullable(this.filterType);
    }

    /**
     * Issuer mode inherited from OAuth App
     * 
     */
    @Import(name="issuerMode")
    private @Nullable Output issuerMode;

    /**
     * @return Issuer mode inherited from OAuth App
     * 
     */
    public Optional> issuerMode() {
        return Optional.ofNullable(this.issuerMode);
    }

    /**
     * Name of the claim that will be used in the token.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the claim that will be used in the token.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Groups claim type.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Groups claim type.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Value of the claim. Can be an Okta Expression Language statement that evaluates at the time the token is minted.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return Value of the claim. Can be an Okta Expression Language statement that evaluates at the time the token is minted.
     * 
     */
    public Output value() {
        return this.value;
    }

    private OAuthGroupsClaimArgs() {}

    private OAuthGroupsClaimArgs(OAuthGroupsClaimArgs $) {
        this.filterType = $.filterType;
        this.issuerMode = $.issuerMode;
        this.name = $.name;
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private OAuthGroupsClaimArgs $;

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

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

        /**
         * @param filterType Groups claim filter. Can only be set if type is FILTER.
         * 
         * @return builder
         * 
         */
        public Builder filterType(@Nullable Output filterType) {
            $.filterType = filterType;
            return this;
        }

        /**
         * @param filterType Groups claim filter. Can only be set if type is FILTER.
         * 
         * @return builder
         * 
         */
        public Builder filterType(String filterType) {
            return filterType(Output.of(filterType));
        }

        /**
         * @param issuerMode Issuer mode inherited from OAuth App
         * 
         * @return builder
         * 
         */
        public Builder issuerMode(@Nullable Output issuerMode) {
            $.issuerMode = issuerMode;
            return this;
        }

        /**
         * @param issuerMode Issuer mode inherited from OAuth App
         * 
         * @return builder
         * 
         */
        public Builder issuerMode(String issuerMode) {
            return issuerMode(Output.of(issuerMode));
        }

        /**
         * @param name Name of the claim that will be used in the token.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the claim that will be used in the token.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

        /**
         * @param value Value of the claim. Can be an Okta Expression Language statement that evaluates at the time the token is minted.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Value of the claim. Can be an Okta Expression Language statement that evaluates at the time the token is minted.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public OAuthGroupsClaimArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("OAuthGroupsClaimArgs", "name");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("OAuthGroupsClaimArgs", "type");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("OAuthGroupsClaimArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy