com.pulumi.digitalocean.inputs.KubernetesClusterNodePoolTaintArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digitalocean Show documentation
Show all versions of digitalocean Show documentation
A Pulumi package for creating and managing DigitalOcean cloud resources.
// *** 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.digitalocean.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;
public final class KubernetesClusterNodePoolTaintArgs extends com.pulumi.resources.ResourceArgs {
public static final KubernetesClusterNodePoolTaintArgs Empty = new KubernetesClusterNodePoolTaintArgs();
/**
* How the node reacts to pods that it won't tolerate. Available effect values are: "NoSchedule", "PreferNoSchedule", "NoExecute".
*
*/
@Import(name="effect", required=true)
private Output effect;
/**
* @return How the node reacts to pods that it won't tolerate. Available effect values are: "NoSchedule", "PreferNoSchedule", "NoExecute".
*
*/
public Output effect() {
return this.effect;
}
/**
* An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
*
*/
@Import(name="key", required=true)
private Output key;
/**
* @return An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
*
*/
public Output key() {
return this.key;
}
/**
* An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
*
*/
public Output value() {
return this.value;
}
private KubernetesClusterNodePoolTaintArgs() {}
private KubernetesClusterNodePoolTaintArgs(KubernetesClusterNodePoolTaintArgs $) {
this.effect = $.effect;
this.key = $.key;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KubernetesClusterNodePoolTaintArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private KubernetesClusterNodePoolTaintArgs $;
public Builder() {
$ = new KubernetesClusterNodePoolTaintArgs();
}
public Builder(KubernetesClusterNodePoolTaintArgs defaults) {
$ = new KubernetesClusterNodePoolTaintArgs(Objects.requireNonNull(defaults));
}
/**
* @param effect How the node reacts to pods that it won't tolerate. Available effect values are: "NoSchedule", "PreferNoSchedule", "NoExecute".
*
* @return builder
*
*/
public Builder effect(Output effect) {
$.effect = effect;
return this;
}
/**
* @param effect How the node reacts to pods that it won't tolerate. Available effect values are: "NoSchedule", "PreferNoSchedule", "NoExecute".
*
* @return builder
*
*/
public Builder effect(String effect) {
return effect(Output.of(effect));
}
/**
* @param key An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
*
* @return builder
*
*/
public Builder key(Output key) {
$.key = key;
return this;
}
/**
* @param key An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
*
* @return builder
*
*/
public Builder key(String key) {
return key(Output.of(key));
}
/**
* @param value An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value An arbitrary string. The "key" and "value" fields of the "taint" object form a key-value pair.
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public KubernetesClusterNodePoolTaintArgs build() {
if ($.effect == null) {
throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaintArgs", "effect");
}
if ($.key == null) {
throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaintArgs", "key");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("KubernetesClusterNodePoolTaintArgs", "value");
}
return $;
}
}
}