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

com.pulumi.digitalocean.inputs.GetKubernetesClusterArgs Maven / Gradle / Ivy

There is a newer version: 4.35.0
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.digitalocean.inputs;

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;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetKubernetesClusterArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetKubernetesClusterArgs Empty = new GetKubernetesClusterArgs();

    /**
     * The name of Kubernetes cluster.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of Kubernetes cluster.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * A list of tag names applied to the node pool.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A list of tag names applied to the node pool.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetKubernetesClusterArgs() {}

    private GetKubernetesClusterArgs(GetKubernetesClusterArgs $) {
        this.name = $.name;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetKubernetesClusterArgs $;

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

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

        /**
         * @param name The name of Kubernetes cluster.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of Kubernetes cluster.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags A list of tag names applied to the node pool.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A list of tag names applied to the node pool.
         * 
         * @return builder
         * 
         */
        public Builder tags(List tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tags A list of tag names applied to the node pool.
         * 
         * @return builder
         * 
         */
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy