
com.pulumi.azurenative.iotoperationsmq.inputs.NodeTolerationsArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.iotoperationsmq.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;
/**
* Defines the Node Tolerations details
*
*/
public final class NodeTolerationsArgs extends com.pulumi.resources.ResourceArgs {
public static final NodeTolerationsArgs Empty = new NodeTolerationsArgs();
/**
* Toleration effect.
*
*/
@Import(name="effect", required=true)
private Output effect;
/**
* @return Toleration effect.
*
*/
public Output effect() {
return this.effect;
}
/**
* Toleration key.
*
*/
@Import(name="key", required=true)
private Output key;
/**
* @return Toleration key.
*
*/
public Output key() {
return this.key;
}
/**
* Toleration operator like 'Exists', 'Equal' etc.
*
*/
@Import(name="operator", required=true)
private Output operator;
/**
* @return Toleration operator like 'Exists', 'Equal' etc.
*
*/
public Output operator() {
return this.operator;
}
/**
* Toleration Value.
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return Toleration Value.
*
*/
public Output value() {
return this.value;
}
private NodeTolerationsArgs() {}
private NodeTolerationsArgs(NodeTolerationsArgs $) {
this.effect = $.effect;
this.key = $.key;
this.operator = $.operator;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NodeTolerationsArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private NodeTolerationsArgs $;
public Builder() {
$ = new NodeTolerationsArgs();
}
public Builder(NodeTolerationsArgs defaults) {
$ = new NodeTolerationsArgs(Objects.requireNonNull(defaults));
}
/**
* @param effect Toleration effect.
*
* @return builder
*
*/
public Builder effect(Output effect) {
$.effect = effect;
return this;
}
/**
* @param effect Toleration effect.
*
* @return builder
*
*/
public Builder effect(String effect) {
return effect(Output.of(effect));
}
/**
* @param key Toleration key.
*
* @return builder
*
*/
public Builder key(Output key) {
$.key = key;
return this;
}
/**
* @param key Toleration key.
*
* @return builder
*
*/
public Builder key(String key) {
return key(Output.of(key));
}
/**
* @param operator Toleration operator like 'Exists', 'Equal' etc.
*
* @return builder
*
*/
public Builder operator(Output operator) {
$.operator = operator;
return this;
}
/**
* @param operator Toleration operator like 'Exists', 'Equal' etc.
*
* @return builder
*
*/
public Builder operator(String operator) {
return operator(Output.of(operator));
}
/**
* @param value Toleration Value.
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value Toleration Value.
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public NodeTolerationsArgs build() {
if ($.effect == null) {
throw new MissingRequiredPropertyException("NodeTolerationsArgs", "effect");
}
if ($.key == null) {
throw new MissingRequiredPropertyException("NodeTolerationsArgs", "key");
}
if ($.operator == null) {
throw new MissingRequiredPropertyException("NodeTolerationsArgs", "operator");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("NodeTolerationsArgs", "value");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy