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

com.pulumi.linode.inputs.GetLkeClusterPoolArgs Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.inputs.GetLkeClusterPoolAutoscalerArgs;
import com.pulumi.linode.inputs.GetLkeClusterPoolDiskArgs;
import com.pulumi.linode.inputs.GetLkeClusterPoolNodeArgs;
import com.pulumi.linode.inputs.GetLkeClusterPoolTaintArgs;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetLkeClusterPoolArgs Empty = new GetLkeClusterPoolArgs();

    /**
     * The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
     * 
     */
    @Import(name="autoscalers")
    private @Nullable Output> autoscalers;

    /**
     * @return The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
     * 
     */
    public Optional>> autoscalers() {
        return Optional.ofNullable(this.autoscalers);
    }

    /**
     * The number of nodes in the Node Pool.
     * 
     */
    @Import(name="count", required=true)
    private Output count;

    /**
     * @return The number of nodes in the Node Pool.
     * 
     */
    public Output count() {
        return this.count;
    }

    /**
     * The disk encryption policy for nodes in this pool.
     * 
     */
    @Import(name="diskEncryption", required=true)
    private Output diskEncryption;

    /**
     * @return The disk encryption policy for nodes in this pool.
     * 
     */
    public Output diskEncryption() {
        return this.diskEncryption;
    }

    /**
     * This Node Pool’s custom disk layout.
     * 
     */
    @Import(name="disks")
    private @Nullable Output> disks;

    /**
     * @return This Node Pool’s custom disk layout.
     * 
     */
    public Optional>> disks() {
        return Optional.ofNullable(this.disks);
    }

    /**
     * The LKE Cluster's ID.
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return The LKE Cluster's ID.
     * 
     */
    public Output id() {
        return this.id;
    }

    /**
     * Key-value pairs added as labels to nodes in the node pool. Labels help classify your nodes and to easily select subsets of objects.
     * 
     */
    @Import(name="labels", required=true)
    private Output> labels;

    /**
     * @return Key-value pairs added as labels to nodes in the node pool. Labels help classify your nodes and to easily select subsets of objects.
     * 
     */
    public Output> labels() {
        return this.labels;
    }

    /**
     * The nodes in the Node Pool.
     * 
     */
    @Import(name="nodes")
    private @Nullable Output> nodes;

    /**
     * @return The nodes in the Node Pool.
     * 
     */
    public Optional>> nodes() {
        return Optional.ofNullable(this.nodes);
    }

    /**
     * An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    @Import(name="tags", required=true)
    private Output> tags;

    /**
     * @return An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    public Output> tags() {
        return this.tags;
    }

    /**
     * Kubernetes taints to add to node pool nodes. Taints help control how pods are scheduled onto nodes, specifically allowing them to repel certain pods.
     * 
     */
    @Import(name="taints", required=true)
    private Output> taints;

    /**
     * @return Kubernetes taints to add to node pool nodes. Taints help control how pods are scheduled onto nodes, specifically allowing them to repel certain pods.
     * 
     */
    public Output> taints() {
        return this.taints;
    }

    /**
     * The linode type for all of the nodes in the Node Pool. See all node types [here](https://api.linode.com/v4/linode/types).
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The linode type for all of the nodes in the Node Pool. See all node types [here](https://api.linode.com/v4/linode/types).
     * 
     */
    public Output type() {
        return this.type;
    }

    private GetLkeClusterPoolArgs() {}

    private GetLkeClusterPoolArgs(GetLkeClusterPoolArgs $) {
        this.autoscalers = $.autoscalers;
        this.count = $.count;
        this.diskEncryption = $.diskEncryption;
        this.disks = $.disks;
        this.id = $.id;
        this.labels = $.labels;
        this.nodes = $.nodes;
        this.tags = $.tags;
        this.taints = $.taints;
        this.type = $.type;
    }

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

    public static final class Builder {
        private GetLkeClusterPoolArgs $;

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

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

        /**
         * @param autoscalers The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
         * 
         * @return builder
         * 
         */
        public Builder autoscalers(@Nullable Output> autoscalers) {
            $.autoscalers = autoscalers;
            return this;
        }

        /**
         * @param autoscalers The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
         * 
         * @return builder
         * 
         */
        public Builder autoscalers(List autoscalers) {
            return autoscalers(Output.of(autoscalers));
        }

        /**
         * @param autoscalers The configuration options for the autoscaler. This field only contains an autoscaler configuration if autoscaling is enabled on this cluster.
         * 
         * @return builder
         * 
         */
        public Builder autoscalers(GetLkeClusterPoolAutoscalerArgs... autoscalers) {
            return autoscalers(List.of(autoscalers));
        }

        /**
         * @param count The number of nodes in the Node Pool.
         * 
         * @return builder
         * 
         */
        public Builder count(Output count) {
            $.count = count;
            return this;
        }

        /**
         * @param count The number of nodes in the Node Pool.
         * 
         * @return builder
         * 
         */
        public Builder count(Integer count) {
            return count(Output.of(count));
        }

        /**
         * @param diskEncryption The disk encryption policy for nodes in this pool.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryption(Output diskEncryption) {
            $.diskEncryption = diskEncryption;
            return this;
        }

        /**
         * @param diskEncryption The disk encryption policy for nodes in this pool.
         * 
         * @return builder
         * 
         */
        public Builder diskEncryption(String diskEncryption) {
            return diskEncryption(Output.of(diskEncryption));
        }

        /**
         * @param disks This Node Pool’s custom disk layout.
         * 
         * @return builder
         * 
         */
        public Builder disks(@Nullable Output> disks) {
            $.disks = disks;
            return this;
        }

        /**
         * @param disks This Node Pool’s custom disk layout.
         * 
         * @return builder
         * 
         */
        public Builder disks(List disks) {
            return disks(Output.of(disks));
        }

        /**
         * @param disks This Node Pool’s custom disk layout.
         * 
         * @return builder
         * 
         */
        public Builder disks(GetLkeClusterPoolDiskArgs... disks) {
            return disks(List.of(disks));
        }

        /**
         * @param id The LKE Cluster's ID.
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The LKE Cluster's ID.
         * 
         * @return builder
         * 
         */
        public Builder id(Integer id) {
            return id(Output.of(id));
        }

        /**
         * @param labels Key-value pairs added as labels to nodes in the node pool. Labels help classify your nodes and to easily select subsets of objects.
         * 
         * @return builder
         * 
         */
        public Builder labels(Output> labels) {
            $.labels = labels;
            return this;
        }

        /**
         * @param labels Key-value pairs added as labels to nodes in the node pool. Labels help classify your nodes and to easily select subsets of objects.
         * 
         * @return builder
         * 
         */
        public Builder labels(Map labels) {
            return labels(Output.of(labels));
        }

        /**
         * @param nodes The nodes in the Node Pool.
         * 
         * @return builder
         * 
         */
        public Builder nodes(@Nullable Output> nodes) {
            $.nodes = nodes;
            return this;
        }

        /**
         * @param nodes The nodes in the Node Pool.
         * 
         * @return builder
         * 
         */
        public Builder nodes(List nodes) {
            return nodes(Output.of(nodes));
        }

        /**
         * @param nodes The nodes in the Node Pool.
         * 
         * @return builder
         * 
         */
        public Builder nodes(GetLkeClusterPoolNodeArgs... nodes) {
            return nodes(List.of(nodes));
        }

        /**
         * @param tags An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
         * 
         * @return builder
         * 
         */
        public Builder tags(Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
         * 
         * @return builder
         * 
         */
        public Builder tags(List tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tags An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
         * 
         * @return builder
         * 
         */
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }

        /**
         * @param taints Kubernetes taints to add to node pool nodes. Taints help control how pods are scheduled onto nodes, specifically allowing them to repel certain pods.
         * 
         * @return builder
         * 
         */
        public Builder taints(Output> taints) {
            $.taints = taints;
            return this;
        }

        /**
         * @param taints Kubernetes taints to add to node pool nodes. Taints help control how pods are scheduled onto nodes, specifically allowing them to repel certain pods.
         * 
         * @return builder
         * 
         */
        public Builder taints(List taints) {
            return taints(Output.of(taints));
        }

        /**
         * @param taints Kubernetes taints to add to node pool nodes. Taints help control how pods are scheduled onto nodes, specifically allowing them to repel certain pods.
         * 
         * @return builder
         * 
         */
        public Builder taints(GetLkeClusterPoolTaintArgs... taints) {
            return taints(List.of(taints));
        }

        /**
         * @param type The linode type for all of the nodes in the Node Pool. See all node types [here](https://api.linode.com/v4/linode/types).
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The linode type for all of the nodes in the Node Pool. See all node types [here](https://api.linode.com/v4/linode/types).
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public GetLkeClusterPoolArgs build() {
            if ($.count == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolArgs", "count");
            }
            if ($.diskEncryption == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolArgs", "diskEncryption");
            }
            if ($.id == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolArgs", "id");
            }
            if ($.labels == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolArgs", "labels");
            }
            if ($.tags == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolArgs", "tags");
            }
            if ($.taints == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolArgs", "taints");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy