
com.pulumi.azurenative.storagesync.outputs.CloudTieringCachePerformanceResponse Maven / Gradle / Ivy
// *** 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.storagesync.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class CloudTieringCachePerformanceResponse {
/**
* @return Count of bytes that were served from the local server
*
*/
private Double cacheHitBytes;
/**
* @return Percentage of total bytes (hit + miss) that were served from the local server
*
*/
private Integer cacheHitBytesPercent;
/**
* @return Count of bytes that were served from the cloud
*
*/
private Double cacheMissBytes;
/**
* @return Last updated timestamp
*
*/
private String lastUpdatedTimestamp;
private CloudTieringCachePerformanceResponse() {}
/**
* @return Count of bytes that were served from the local server
*
*/
public Double cacheHitBytes() {
return this.cacheHitBytes;
}
/**
* @return Percentage of total bytes (hit + miss) that were served from the local server
*
*/
public Integer cacheHitBytesPercent() {
return this.cacheHitBytesPercent;
}
/**
* @return Count of bytes that were served from the cloud
*
*/
public Double cacheMissBytes() {
return this.cacheMissBytes;
}
/**
* @return Last updated timestamp
*
*/
public String lastUpdatedTimestamp() {
return this.lastUpdatedTimestamp;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CloudTieringCachePerformanceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Double cacheHitBytes;
private Integer cacheHitBytesPercent;
private Double cacheMissBytes;
private String lastUpdatedTimestamp;
public Builder() {}
public Builder(CloudTieringCachePerformanceResponse defaults) {
Objects.requireNonNull(defaults);
this.cacheHitBytes = defaults.cacheHitBytes;
this.cacheHitBytesPercent = defaults.cacheHitBytesPercent;
this.cacheMissBytes = defaults.cacheMissBytes;
this.lastUpdatedTimestamp = defaults.lastUpdatedTimestamp;
}
@CustomType.Setter
public Builder cacheHitBytes(Double cacheHitBytes) {
if (cacheHitBytes == null) {
throw new MissingRequiredPropertyException("CloudTieringCachePerformanceResponse", "cacheHitBytes");
}
this.cacheHitBytes = cacheHitBytes;
return this;
}
@CustomType.Setter
public Builder cacheHitBytesPercent(Integer cacheHitBytesPercent) {
if (cacheHitBytesPercent == null) {
throw new MissingRequiredPropertyException("CloudTieringCachePerformanceResponse", "cacheHitBytesPercent");
}
this.cacheHitBytesPercent = cacheHitBytesPercent;
return this;
}
@CustomType.Setter
public Builder cacheMissBytes(Double cacheMissBytes) {
if (cacheMissBytes == null) {
throw new MissingRequiredPropertyException("CloudTieringCachePerformanceResponse", "cacheMissBytes");
}
this.cacheMissBytes = cacheMissBytes;
return this;
}
@CustomType.Setter
public Builder lastUpdatedTimestamp(String lastUpdatedTimestamp) {
if (lastUpdatedTimestamp == null) {
throw new MissingRequiredPropertyException("CloudTieringCachePerformanceResponse", "lastUpdatedTimestamp");
}
this.lastUpdatedTimestamp = lastUpdatedTimestamp;
return this;
}
public CloudTieringCachePerformanceResponse build() {
final var _resultValue = new CloudTieringCachePerformanceResponse();
_resultValue.cacheHitBytes = cacheHitBytes;
_resultValue.cacheHitBytesPercent = cacheHitBytesPercent;
_resultValue.cacheMissBytes = cacheMissBytes;
_resultValue.lastUpdatedTimestamp = lastUpdatedTimestamp;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy