com.pulumi.azure.batch.outputs.PoolNodePlacement Maven / Gradle / Ivy
// *** 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.azure.batch.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PoolNodePlacement {
/**
* @return The placement policy for allocating nodes in the pool. Values are: "Regional": All nodes in the pool will be allocated in the same region; "Zonal": Nodes in the pool will be spread across different zones with the best effort balancing. Defaults to `Regional`.
*
*/
private @Nullable String policy;
private PoolNodePlacement() {}
/**
* @return The placement policy for allocating nodes in the pool. Values are: "Regional": All nodes in the pool will be allocated in the same region; "Zonal": Nodes in the pool will be spread across different zones with the best effort balancing. Defaults to `Regional`.
*
*/
public Optional policy() {
return Optional.ofNullable(this.policy);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PoolNodePlacement defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String policy;
public Builder() {}
public Builder(PoolNodePlacement defaults) {
Objects.requireNonNull(defaults);
this.policy = defaults.policy;
}
@CustomType.Setter
public Builder policy(@Nullable String policy) {
this.policy = policy;
return this;
}
public PoolNodePlacement build() {
final var _resultValue = new PoolNodePlacement();
_resultValue.policy = policy;
return _resultValue;
}
}
}