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

com.pulumi.okta.AppOauthApiScopeArgs 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;

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;


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

    public static final AppOauthApiScopeArgs Empty = new AppOauthApiScopeArgs();

    /**
     * ID of the application.
     * 
     */
    @Import(name="appId", required=true)
    private Output appId;

    /**
     * @return ID of the application.
     * 
     */
    public Output appId() {
        return this.appId;
    }

    /**
     * The issuer of your Org Authorization Server, your Org URL.
     * 
     */
    @Import(name="issuer", required=true)
    private Output issuer;

    /**
     * @return The issuer of your Org Authorization Server, your Org URL.
     * 
     */
    public Output issuer() {
        return this.issuer;
    }

    /**
     * Scopes of the application for which consent is granted.
     * 
     */
    @Import(name="scopes", required=true)
    private Output> scopes;

    /**
     * @return Scopes of the application for which consent is granted.
     * 
     */
    public Output> scopes() {
        return this.scopes;
    }

    private AppOauthApiScopeArgs() {}

    private AppOauthApiScopeArgs(AppOauthApiScopeArgs $) {
        this.appId = $.appId;
        this.issuer = $.issuer;
        this.scopes = $.scopes;
    }

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

    public static final class Builder {
        private AppOauthApiScopeArgs $;

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

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

        /**
         * @param appId ID of the application.
         * 
         * @return builder
         * 
         */
        public Builder appId(Output appId) {
            $.appId = appId;
            return this;
        }

        /**
         * @param appId ID of the application.
         * 
         * @return builder
         * 
         */
        public Builder appId(String appId) {
            return appId(Output.of(appId));
        }

        /**
         * @param issuer The issuer of your Org Authorization Server, your Org URL.
         * 
         * @return builder
         * 
         */
        public Builder issuer(Output issuer) {
            $.issuer = issuer;
            return this;
        }

        /**
         * @param issuer The issuer of your Org Authorization Server, your Org URL.
         * 
         * @return builder
         * 
         */
        public Builder issuer(String issuer) {
            return issuer(Output.of(issuer));
        }

        /**
         * @param scopes Scopes of the application for which consent is granted.
         * 
         * @return builder
         * 
         */
        public Builder scopes(Output> scopes) {
            $.scopes = scopes;
            return this;
        }

        /**
         * @param scopes Scopes of the application for which consent is granted.
         * 
         * @return builder
         * 
         */
        public Builder scopes(List scopes) {
            return scopes(Output.of(scopes));
        }

        /**
         * @param scopes Scopes of the application for which consent is granted.
         * 
         * @return builder
         * 
         */
        public Builder scopes(String... scopes) {
            return scopes(List.of(scopes));
        }

        public AppOauthApiScopeArgs build() {
            if ($.appId == null) {
                throw new MissingRequiredPropertyException("AppOauthApiScopeArgs", "appId");
            }
            if ($.issuer == null) {
                throw new MissingRequiredPropertyException("AppOauthApiScopeArgs", "issuer");
            }
            if ($.scopes == null) {
                throw new MissingRequiredPropertyException("AppOauthApiScopeArgs", "scopes");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy