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

com.pulumi.kong.inputs.ConsumerOauth2State Maven / Gradle / Ivy

There is a newer version: 4.6.0-alpha.1731736524
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.kong.inputs;

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


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

    public static final ConsumerOauth2State Empty = new ConsumerOauth2State();

    /**
     * Unique oauth2 client id. If not set, the oauth2 plugin will generate one
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return Unique oauth2 client id. If not set, the oauth2 plugin will generate one
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * Unique oauth2 client secret. If not set, the oauth2 plugin will generate one
     * 
     */
    @Import(name="clientSecret")
    private @Nullable Output clientSecret;

    /**
     * @return Unique oauth2 client secret. If not set, the oauth2 plugin will generate one
     * 
     */
    public Optional> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

    /**
     * The id of the consumer to be configured with oauth2.
     * 
     */
    @Import(name="consumerId")
    private @Nullable Output consumerId;

    /**
     * @return The id of the consumer to be configured with oauth2.
     * 
     */
    public Optional> consumerId() {
        return Optional.ofNullable(this.consumerId);
    }

    /**
     * A boolean flag that indicates whether the client_secret field will be stored in hashed form. If enabled on existing plugin instances, client secrets are hashed on the fly upon first usage. Default: `false`.
     * 
     */
    @Import(name="hashSecret")
    private @Nullable Output hashSecret;

    /**
     * @return A boolean flag that indicates whether the client_secret field will be stored in hashed form. If enabled on existing plugin instances, client secrets are hashed on the fly upon first usage. Default: `false`.
     * 
     */
    public Optional> hashSecret() {
        return Optional.ofNullable(this.hashSecret);
    }

    /**
     * The name associated with the credential.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name associated with the credential.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
     * 
     */
    @Import(name="redirectUris")
    private @Nullable Output> redirectUris;

    /**
     * @return An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
     * 
     */
    public Optional>> redirectUris() {
        return Optional.ofNullable(this.redirectUris);
    }

    /**
     * A list of strings associated with the consumer for grouping and filtering.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A list of strings associated with the consumer for grouping and filtering.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ConsumerOauth2State() {}

    private ConsumerOauth2State(ConsumerOauth2State $) {
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.consumerId = $.consumerId;
        this.hashSecret = $.hashSecret;
        this.name = $.name;
        this.redirectUris = $.redirectUris;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ConsumerOauth2State $;

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

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

        /**
         * @param clientId Unique oauth2 client id. If not set, the oauth2 plugin will generate one
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId Unique oauth2 client id. If not set, the oauth2 plugin will generate one
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecret Unique oauth2 client secret. If not set, the oauth2 plugin will generate one
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(@Nullable Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret Unique oauth2 client secret. If not set, the oauth2 plugin will generate one
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param consumerId The id of the consumer to be configured with oauth2.
         * 
         * @return builder
         * 
         */
        public Builder consumerId(@Nullable Output consumerId) {
            $.consumerId = consumerId;
            return this;
        }

        /**
         * @param consumerId The id of the consumer to be configured with oauth2.
         * 
         * @return builder
         * 
         */
        public Builder consumerId(String consumerId) {
            return consumerId(Output.of(consumerId));
        }

        /**
         * @param hashSecret A boolean flag that indicates whether the client_secret field will be stored in hashed form. If enabled on existing plugin instances, client secrets are hashed on the fly upon first usage. Default: `false`.
         * 
         * @return builder
         * 
         */
        public Builder hashSecret(@Nullable Output hashSecret) {
            $.hashSecret = hashSecret;
            return this;
        }

        /**
         * @param hashSecret A boolean flag that indicates whether the client_secret field will be stored in hashed form. If enabled on existing plugin instances, client secrets are hashed on the fly upon first usage. Default: `false`.
         * 
         * @return builder
         * 
         */
        public Builder hashSecret(Boolean hashSecret) {
            return hashSecret(Output.of(hashSecret));
        }

        /**
         * @param name The name associated with the credential.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param redirectUris An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
         * 
         * @return builder
         * 
         */
        public Builder redirectUris(@Nullable Output> redirectUris) {
            $.redirectUris = redirectUris;
            return this;
        }

        /**
         * @param redirectUris An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
         * 
         * @return builder
         * 
         */
        public Builder redirectUris(List redirectUris) {
            return redirectUris(Output.of(redirectUris));
        }

        /**
         * @param redirectUris An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
         * 
         * @return builder
         * 
         */
        public Builder redirectUris(String... redirectUris) {
            return redirectUris(List.of(redirectUris));
        }

        /**
         * @param tags A list of strings associated with the consumer for grouping and filtering.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A list of strings associated with the consumer for grouping and filtering.
         * 
         * @return builder
         * 
         */
        public Builder tags(List tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tags A list of strings associated with the consumer for grouping and filtering.
         * 
         * @return builder
         * 
         */
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }

        public ConsumerOauth2State build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy