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

com.pulumi.aws.eks.inputs.NodeGroupTaintArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.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.aws.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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NodeGroupTaintArgs Empty = new NodeGroupTaintArgs();

    /**
     * The effect of the taint. Valid values: `NO_SCHEDULE`, `NO_EXECUTE`, `PREFER_NO_SCHEDULE`.
     * 
     */
    @Import(name="effect", required=true)
    private Output effect;

    /**
     * @return The effect of the taint. Valid values: `NO_SCHEDULE`, `NO_EXECUTE`, `PREFER_NO_SCHEDULE`.
     * 
     */
    public Output effect() {
        return this.effect;
    }

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

    /**
     * @return The key of the taint. Maximum length of 63.
     * 
     */
    public Output key() {
        return this.key;
    }

    /**
     * The value of the taint. Maximum length of 63.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The value of the taint. Maximum length of 63.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private NodeGroupTaintArgs() {}

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

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

    public static final class Builder {
        private NodeGroupTaintArgs $;

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

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

        /**
         * @param effect The effect of the taint. Valid values: `NO_SCHEDULE`, `NO_EXECUTE`, `PREFER_NO_SCHEDULE`.
         * 
         * @return builder
         * 
         */
        public Builder effect(Output effect) {
            $.effect = effect;
            return this;
        }

        /**
         * @param effect The effect of the taint. Valid values: `NO_SCHEDULE`, `NO_EXECUTE`, `PREFER_NO_SCHEDULE`.
         * 
         * @return builder
         * 
         */
        public Builder effect(String effect) {
            return effect(Output.of(effect));
        }

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

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy