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

com.pulumi.alicloud.cs.outputs.NodePoolTaint Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.cs.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NodePoolTaint {
    /**
     * @return The scheduling policy.
     * 
     */
    private @Nullable String effect;
    /**
     * @return The key of a taint.
     * 
     */
    private String key;
    /**
     * @return The value of a taint.
     * 
     */
    private @Nullable String value;

    private NodePoolTaint() {}
    /**
     * @return The scheduling policy.
     * 
     */
    public Optional effect() {
        return Optional.ofNullable(this.effect);
    }
    /**
     * @return The key of a taint.
     * 
     */
    public String key() {
        return this.key;
    }
    /**
     * @return The value of a taint.
     * 
     */
    public Optional value() {
        return Optional.ofNullable(this.value);
    }

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

    public static Builder builder(NodePoolTaint defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String effect;
        private String key;
        private @Nullable String value;
        public Builder() {}
        public Builder(NodePoolTaint defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.effect = defaults.effect;
    	      this.key = defaults.key;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder effect(@Nullable String effect) {

            this.effect = effect;
            return this;
        }
        @CustomType.Setter
        public Builder key(String key) {
            if (key == null) {
              throw new MissingRequiredPropertyException("NodePoolTaint", "key");
            }
            this.key = key;
            return this;
        }
        @CustomType.Setter
        public Builder value(@Nullable String value) {

            this.value = value;
            return this;
        }
        public NodePoolTaint build() {
            final var _resultValue = new NodePoolTaint();
            _resultValue.effect = effect;
            _resultValue.key = key;
            _resultValue.value = value;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy