com.pulumi.azure.mssql.inputs.ElasticPoolPerDatabaseSettingsArgs 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.mssql.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.util.Objects;
public final class ElasticPoolPerDatabaseSettingsArgs extends com.pulumi.resources.ResourceArgs {
public static final ElasticPoolPerDatabaseSettingsArgs Empty = new ElasticPoolPerDatabaseSettingsArgs();
/**
* The maximum capacity any one database can consume.
*
*/
@Import(name="maxCapacity", required=true)
private Output maxCapacity;
/**
* @return The maximum capacity any one database can consume.
*
*/
public Output maxCapacity() {
return this.maxCapacity;
}
/**
* The minimum capacity all databases are guaranteed.
*
*/
@Import(name="minCapacity", required=true)
private Output minCapacity;
/**
* @return The minimum capacity all databases are guaranteed.
*
*/
public Output minCapacity() {
return this.minCapacity;
}
private ElasticPoolPerDatabaseSettingsArgs() {}
private ElasticPoolPerDatabaseSettingsArgs(ElasticPoolPerDatabaseSettingsArgs $) {
this.maxCapacity = $.maxCapacity;
this.minCapacity = $.minCapacity;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ElasticPoolPerDatabaseSettingsArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ElasticPoolPerDatabaseSettingsArgs $;
public Builder() {
$ = new ElasticPoolPerDatabaseSettingsArgs();
}
public Builder(ElasticPoolPerDatabaseSettingsArgs defaults) {
$ = new ElasticPoolPerDatabaseSettingsArgs(Objects.requireNonNull(defaults));
}
/**
* @param maxCapacity The maximum capacity any one database can consume.
*
* @return builder
*
*/
public Builder maxCapacity(Output maxCapacity) {
$.maxCapacity = maxCapacity;
return this;
}
/**
* @param maxCapacity The maximum capacity any one database can consume.
*
* @return builder
*
*/
public Builder maxCapacity(Double maxCapacity) {
return maxCapacity(Output.of(maxCapacity));
}
/**
* @param minCapacity The minimum capacity all databases are guaranteed.
*
* @return builder
*
*/
public Builder minCapacity(Output minCapacity) {
$.minCapacity = minCapacity;
return this;
}
/**
* @param minCapacity The minimum capacity all databases are guaranteed.
*
* @return builder
*
*/
public Builder minCapacity(Double minCapacity) {
return minCapacity(Output.of(minCapacity));
}
public ElasticPoolPerDatabaseSettingsArgs build() {
if ($.maxCapacity == null) {
throw new MissingRequiredPropertyException("ElasticPoolPerDatabaseSettingsArgs", "maxCapacity");
}
if ($.minCapacity == null) {
throw new MissingRequiredPropertyException("ElasticPoolPerDatabaseSettingsArgs", "minCapacity");
}
return $;
}
}
}