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

com.pulumi.kong.inputs.ConsumerState 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 ConsumerState extends com.pulumi.resources.ResourceArgs {

    public static final ConsumerState Empty = new ConsumerState();

    /**
     * A custom id for the consumer, you must set either the username or custom_id
     * 
     */
    @Import(name="customId")
    private @Nullable Output customId;

    /**
     * @return A custom id for the consumer, you must set either the username or custom_id
     * 
     */
    public Optional> customId() {
        return Optional.ofNullable(this.customId);
    }

    /**
     * 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);
    }

    /**
     * The username to use, you must set either the username or custom_id
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return The username to use, you must set either the username or custom_id
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private ConsumerState() {}

    private ConsumerState(ConsumerState $) {
        this.customId = $.customId;
        this.tags = $.tags;
        this.username = $.username;
    }

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

    public static final class Builder {
        private ConsumerState $;

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

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

        /**
         * @param customId A custom id for the consumer, you must set either the username or custom_id
         * 
         * @return builder
         * 
         */
        public Builder customId(@Nullable Output customId) {
            $.customId = customId;
            return this;
        }

        /**
         * @param customId A custom id for the consumer, you must set either the username or custom_id
         * 
         * @return builder
         * 
         */
        public Builder customId(String customId) {
            return customId(Output.of(customId));
        }

        /**
         * @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));
        }

        /**
         * @param username The username to use, you must set either the username or custom_id
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username The username to use, you must set either the username or custom_id
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public ConsumerState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy