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

com.pulumi.linode.inputs.GetLkeClusterPool 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.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.inputs.GetLkeClusterPoolAutoscaler;
import com.pulumi.linode.inputs.GetLkeClusterPoolDisk;
import com.pulumi.linode.inputs.GetLkeClusterPoolNode;
import com.pulumi.linode.inputs.GetLkeClusterPoolTaint;
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 GetLkeClusterPool extends com.pulumi.resources.InvokeArgs {

    public static final GetLkeClusterPool Empty = new GetLkeClusterPool();

    /**
     * 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 List 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 Integer count;

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

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

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

    /**
     * This Node Pool’s custom disk layout.
     * 
     */
    @Import(name="disks")
    private @Nullable List 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 Integer id;

    /**
     * @return The LKE Cluster's ID.
     * 
     */
    public Integer 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 Map 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 Map labels() {
        return this.labels;
    }

    /**
     * The nodes in the Node Pool.
     * 
     */
    @Import(name="nodes")
    private @Nullable List 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 List tags;

    /**
     * @return An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    public List 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 List 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 List 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 String 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 String type() {
        return this.type;
    }

    private GetLkeClusterPool() {}

    private GetLkeClusterPool(GetLkeClusterPool $) {
        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(GetLkeClusterPool defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GetLkeClusterPool $;

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

        public Builder(GetLkeClusterPool defaults) {
            $ = new GetLkeClusterPool(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 List 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(GetLkeClusterPoolAutoscaler... autoscalers) {
            return autoscalers(List.of(autoscalers));
        }

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

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

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

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

        /**
         * @param id The LKE Cluster's ID.
         * 
         * @return builder
         * 
         */
        public Builder id(Integer id) {
            $.id = id;
            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) {
            $.labels = labels;
            return this;
        }

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

        /**
         * @param nodes The nodes in the Node Pool.
         * 
         * @return builder
         * 
         */
        public Builder nodes(GetLkeClusterPoolNode... 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(List 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(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(List 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(GetLkeClusterPoolTaint... 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(String type) {
            $.type = type;
            return this;
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy