com.pulumi.azurenative.recoveryservices.outputs.RetentionVolumeResponse 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.recoveryservices.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RetentionVolumeResponse {
/**
* @return The volume capacity.
*
*/
private @Nullable Double capacityInBytes;
/**
* @return The free space available in this volume.
*
*/
private @Nullable Double freeSpaceInBytes;
/**
* @return The threshold percentage.
*
*/
private @Nullable Integer thresholdPercentage;
/**
* @return The volume name.
*
*/
private @Nullable String volumeName;
private RetentionVolumeResponse() {}
/**
* @return The volume capacity.
*
*/
public Optional capacityInBytes() {
return Optional.ofNullable(this.capacityInBytes);
}
/**
* @return The free space available in this volume.
*
*/
public Optional freeSpaceInBytes() {
return Optional.ofNullable(this.freeSpaceInBytes);
}
/**
* @return The threshold percentage.
*
*/
public Optional thresholdPercentage() {
return Optional.ofNullable(this.thresholdPercentage);
}
/**
* @return The volume name.
*
*/
public Optional volumeName() {
return Optional.ofNullable(this.volumeName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RetentionVolumeResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Double capacityInBytes;
private @Nullable Double freeSpaceInBytes;
private @Nullable Integer thresholdPercentage;
private @Nullable String volumeName;
public Builder() {}
public Builder(RetentionVolumeResponse defaults) {
Objects.requireNonNull(defaults);
this.capacityInBytes = defaults.capacityInBytes;
this.freeSpaceInBytes = defaults.freeSpaceInBytes;
this.thresholdPercentage = defaults.thresholdPercentage;
this.volumeName = defaults.volumeName;
}
@CustomType.Setter
public Builder capacityInBytes(@Nullable Double capacityInBytes) {
this.capacityInBytes = capacityInBytes;
return this;
}
@CustomType.Setter
public Builder freeSpaceInBytes(@Nullable Double freeSpaceInBytes) {
this.freeSpaceInBytes = freeSpaceInBytes;
return this;
}
@CustomType.Setter
public Builder thresholdPercentage(@Nullable Integer thresholdPercentage) {
this.thresholdPercentage = thresholdPercentage;
return this;
}
@CustomType.Setter
public Builder volumeName(@Nullable String volumeName) {
this.volumeName = volumeName;
return this;
}
public RetentionVolumeResponse build() {
final var _resultValue = new RetentionVolumeResponse();
_resultValue.capacityInBytes = capacityInBytes;
_resultValue.freeSpaceInBytes = freeSpaceInBytes;
_resultValue.thresholdPercentage = thresholdPercentage;
_resultValue.volumeName = volumeName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy