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

com.pulumi.linode.inputs.GetLkeClusterPoolTaint 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 java.lang.String;
import java.util.Objects;


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

    public static final GetLkeClusterPoolTaint Empty = new GetLkeClusterPoolTaint();

    /**
     * The Kubernetes taint effect. The accepted values are `NoSchedule`, `PreferNoSchedule` and `NoExecute`. For the descriptions of these values, see [Kubernetes Taints and Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/).
     * 
     */
    @Import(name="effect", required=true)
    private String effect;

    /**
     * @return The Kubernetes taint effect. The accepted values are `NoSchedule`, `PreferNoSchedule` and `NoExecute`. For the descriptions of these values, see [Kubernetes Taints and Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/).
     * 
     */
    public String effect() {
        return this.effect;
    }

    /**
     * The Kubernetes taint key.
     * 
     */
    @Import(name="key", required=true)
    private String key;

    /**
     * @return The Kubernetes taint key.
     * 
     */
    public String key() {
        return this.key;
    }

    /**
     * The Kubernetes taint value.
     * 
     */
    @Import(name="value", required=true)
    private String value;

    /**
     * @return The Kubernetes taint value.
     * 
     */
    public String value() {
        return this.value;
    }

    private GetLkeClusterPoolTaint() {}

    private GetLkeClusterPoolTaint(GetLkeClusterPoolTaint $) {
        this.effect = $.effect;
        this.key = $.key;
        this.value = $.value;
    }

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

    public static final class Builder {
        private GetLkeClusterPoolTaint $;

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

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

        /**
         * @param effect The Kubernetes taint effect. The accepted values are `NoSchedule`, `PreferNoSchedule` and `NoExecute`. For the descriptions of these values, see [Kubernetes Taints and Tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/).
         * 
         * @return builder
         * 
         */
        public Builder effect(String effect) {
            $.effect = effect;
            return this;
        }

        /**
         * @param key The Kubernetes taint key.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            $.key = key;
            return this;
        }

        /**
         * @param value The Kubernetes taint value.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            $.value = value;
            return this;
        }

        public GetLkeClusterPoolTaint build() {
            if ($.effect == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolTaint", "effect");
            }
            if ($.key == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolTaint", "key");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("GetLkeClusterPoolTaint", "value");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy