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

com.pulumi.eks.inputs.TaintArgs Maven / Gradle / Ivy

There is a newer version: 3.2.0-alpha.1732027833
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.eks.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * Represents a Kubernetes `taint` to apply to all Nodes in a NodeGroup. See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/.
 * 
 */
public final class TaintArgs extends com.pulumi.resources.ResourceArgs {

    public static final TaintArgs Empty = new TaintArgs();

    /**
     * The effect of the taint.
     * 
     */
    @Import(name="effect", required=true)
    private Output effect;

    /**
     * @return The effect of the taint.
     * 
     */
    public Output effect() {
        return this.effect;
    }

    /**
     * The value of the taint.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return The value of the taint.
     * 
     */
    public Output value() {
        return this.value;
    }

    private TaintArgs() {}

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

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

    public static final class Builder {
        private TaintArgs $;

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

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

        /**
         * @param effect The effect of the taint.
         * 
         * @return builder
         * 
         */
        public Builder effect(Output effect) {
            $.effect = effect;
            return this;
        }

        /**
         * @param effect The effect of the taint.
         * 
         * @return builder
         * 
         */
        public Builder effect(String effect) {
            return effect(Output.of(effect));
        }

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

        /**
         * @param value The value of the taint.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy