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

com.pulumi.kong.inputs.ConsumerKeyAuthState 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.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ConsumerKeyAuthState Empty = new ConsumerKeyAuthState();

    /**
     * the id of the consumer to associate the credentials to
     * 
     */
    @Import(name="consumerId")
    private @Nullable Output consumerId;

    /**
     * @return the id of the consumer to associate the credentials to
     * 
     */
    public Optional> consumerId() {
        return Optional.ofNullable(this.consumerId);
    }

    /**
     * Unique key to authenticate the client; if omitted the plugin will generate one
     * 
     */
    @Import(name="key")
    private @Nullable Output key;

    /**
     * @return Unique key to authenticate the client; if omitted the plugin will generate one
     * 
     */
    public Optional> key() {
        return Optional.ofNullable(this.key);
    }

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

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

    private ConsumerKeyAuthState() {}

    private ConsumerKeyAuthState(ConsumerKeyAuthState $) {
        this.consumerId = $.consumerId;
        this.key = $.key;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ConsumerKeyAuthState $;

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

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

        /**
         * @param consumerId the id of the consumer to associate the credentials to
         * 
         * @return builder
         * 
         */
        public Builder consumerId(@Nullable Output consumerId) {
            $.consumerId = consumerId;
            return this;
        }

        /**
         * @param consumerId the id of the consumer to associate the credentials to
         * 
         * @return builder
         * 
         */
        public Builder consumerId(String consumerId) {
            return consumerId(Output.of(consumerId));
        }

        /**
         * @param key Unique key to authenticate the client; if omitted the plugin will generate one
         * 
         * @return builder
         * 
         */
        public Builder key(@Nullable Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key Unique key to authenticate the client; if omitted the plugin will generate one
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        /**
         * @param tags A list of strings associated with the consumer key auth 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 key auth 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 key auth for grouping and filtering
         * 
         * @return builder
         * 
         */
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }

        public ConsumerKeyAuthState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy