com.pulumi.azurenative.dbformysql.outputs.StorageResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.dbformysql.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class StorageResponse {
/**
* @return Enable Storage Auto Grow or not.
*
*/
private @Nullable String autoGrow;
/**
* @return Enable IO Auto Scaling or not.
*
*/
private @Nullable String autoIoScaling;
/**
* @return Storage IOPS for a server.
*
*/
private @Nullable Integer iops;
/**
* @return Enable Log On Disk or not.
*
*/
private @Nullable String logOnDisk;
/**
* @return Max storage size allowed for a server.
*
*/
private @Nullable Integer storageSizeGB;
/**
* @return The sku name of the server storage.
*
*/
private String storageSku;
private StorageResponse() {}
/**
* @return Enable Storage Auto Grow or not.
*
*/
public Optional autoGrow() {
return Optional.ofNullable(this.autoGrow);
}
/**
* @return Enable IO Auto Scaling or not.
*
*/
public Optional autoIoScaling() {
return Optional.ofNullable(this.autoIoScaling);
}
/**
* @return Storage IOPS for a server.
*
*/
public Optional iops() {
return Optional.ofNullable(this.iops);
}
/**
* @return Enable Log On Disk or not.
*
*/
public Optional logOnDisk() {
return Optional.ofNullable(this.logOnDisk);
}
/**
* @return Max storage size allowed for a server.
*
*/
public Optional storageSizeGB() {
return Optional.ofNullable(this.storageSizeGB);
}
/**
* @return The sku name of the server storage.
*
*/
public String storageSku() {
return this.storageSku;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(StorageResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String autoGrow;
private @Nullable String autoIoScaling;
private @Nullable Integer iops;
private @Nullable String logOnDisk;
private @Nullable Integer storageSizeGB;
private String storageSku;
public Builder() {}
public Builder(StorageResponse defaults) {
Objects.requireNonNull(defaults);
this.autoGrow = defaults.autoGrow;
this.autoIoScaling = defaults.autoIoScaling;
this.iops = defaults.iops;
this.logOnDisk = defaults.logOnDisk;
this.storageSizeGB = defaults.storageSizeGB;
this.storageSku = defaults.storageSku;
}
@CustomType.Setter
public Builder autoGrow(@Nullable String autoGrow) {
this.autoGrow = autoGrow;
return this;
}
@CustomType.Setter
public Builder autoIoScaling(@Nullable String autoIoScaling) {
this.autoIoScaling = autoIoScaling;
return this;
}
@CustomType.Setter
public Builder iops(@Nullable Integer iops) {
this.iops = iops;
return this;
}
@CustomType.Setter
public Builder logOnDisk(@Nullable String logOnDisk) {
this.logOnDisk = logOnDisk;
return this;
}
@CustomType.Setter
public Builder storageSizeGB(@Nullable Integer storageSizeGB) {
this.storageSizeGB = storageSizeGB;
return this;
}
@CustomType.Setter
public Builder storageSku(String storageSku) {
if (storageSku == null) {
throw new MissingRequiredPropertyException("StorageResponse", "storageSku");
}
this.storageSku = storageSku;
return this;
}
public StorageResponse build() {
final var _resultValue = new StorageResponse();
_resultValue.autoGrow = autoGrow;
_resultValue.autoIoScaling = autoIoScaling;
_resultValue.iops = iops;
_resultValue.logOnDisk = logOnDisk;
_resultValue.storageSizeGB = storageSizeGB;
_resultValue.storageSku = storageSku;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy