com.pulumi.azure.mysql.outputs.FlexibleServerStorage 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.mysql.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FlexibleServerStorage {
/**
* @return Should Storage Auto Grow be enabled? Defaults to `true`.
*
*/
private @Nullable Boolean autoGrowEnabled;
/**
* @return Should IOPS be scaled automatically? If `true`, `iops` can not be set. Defaults to `false`.
*
*/
private @Nullable Boolean ioScalingEnabled;
/**
* @return The storage IOPS for the MySQL Flexible Server. Possible values are between `360` and `20000`.
*
*/
private @Nullable Integer iops;
/**
* @return The max storage allowed for the MySQL Flexible Server. Possible values are between `20` and `16384`.
*
* > **Note:** Decreasing `size_gb` forces a new resource to be created.
*
*/
private @Nullable Integer sizeGb;
private FlexibleServerStorage() {}
/**
* @return Should Storage Auto Grow be enabled? Defaults to `true`.
*
*/
public Optional autoGrowEnabled() {
return Optional.ofNullable(this.autoGrowEnabled);
}
/**
* @return Should IOPS be scaled automatically? If `true`, `iops` can not be set. Defaults to `false`.
*
*/
public Optional ioScalingEnabled() {
return Optional.ofNullable(this.ioScalingEnabled);
}
/**
* @return The storage IOPS for the MySQL Flexible Server. Possible values are between `360` and `20000`.
*
*/
public Optional iops() {
return Optional.ofNullable(this.iops);
}
/**
* @return The max storage allowed for the MySQL Flexible Server. Possible values are between `20` and `16384`.
*
* > **Note:** Decreasing `size_gb` forces a new resource to be created.
*
*/
public Optional sizeGb() {
return Optional.ofNullable(this.sizeGb);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FlexibleServerStorage defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean autoGrowEnabled;
private @Nullable Boolean ioScalingEnabled;
private @Nullable Integer iops;
private @Nullable Integer sizeGb;
public Builder() {}
public Builder(FlexibleServerStorage defaults) {
Objects.requireNonNull(defaults);
this.autoGrowEnabled = defaults.autoGrowEnabled;
this.ioScalingEnabled = defaults.ioScalingEnabled;
this.iops = defaults.iops;
this.sizeGb = defaults.sizeGb;
}
@CustomType.Setter
public Builder autoGrowEnabled(@Nullable Boolean autoGrowEnabled) {
this.autoGrowEnabled = autoGrowEnabled;
return this;
}
@CustomType.Setter
public Builder ioScalingEnabled(@Nullable Boolean ioScalingEnabled) {
this.ioScalingEnabled = ioScalingEnabled;
return this;
}
@CustomType.Setter
public Builder iops(@Nullable Integer iops) {
this.iops = iops;
return this;
}
@CustomType.Setter
public Builder sizeGb(@Nullable Integer sizeGb) {
this.sizeGb = sizeGb;
return this;
}
public FlexibleServerStorage build() {
final var _resultValue = new FlexibleServerStorage();
_resultValue.autoGrowEnabled = autoGrowEnabled;
_resultValue.ioScalingEnabled = ioScalingEnabled;
_resultValue.iops = iops;
_resultValue.sizeGb = sizeGb;
return _resultValue;
}
}
}