com.pulumi.digitalocean.outputs.DatabasePostgresqlConfigTimescaledb 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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class DatabasePostgresqlConfigTimescaledb {
private @Nullable Integer maxBackgroundWorkers;
private DatabasePostgresqlConfigTimescaledb() {}
public Optional maxBackgroundWorkers() {
return Optional.ofNullable(this.maxBackgroundWorkers);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DatabasePostgresqlConfigTimescaledb defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer maxBackgroundWorkers;
public Builder() {}
public Builder(DatabasePostgresqlConfigTimescaledb defaults) {
Objects.requireNonNull(defaults);
this.maxBackgroundWorkers = defaults.maxBackgroundWorkers;
}
@CustomType.Setter
public Builder maxBackgroundWorkers(@Nullable Integer maxBackgroundWorkers) {
this.maxBackgroundWorkers = maxBackgroundWorkers;
return this;
}
public DatabasePostgresqlConfigTimescaledb build() {
final var _resultValue = new DatabasePostgresqlConfigTimescaledb();
_resultValue.maxBackgroundWorkers = maxBackgroundWorkers;
return _resultValue;
}
}
}