com.pulumi.azure.batch.outputs.PoolNodePlacement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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;
}
}
}