
com.pulumi.azurenative.monitor.outputs.CacheConfigurationResponse 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.monitor.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CacheConfigurationResponse {
/**
* @return Max storage usage in megabytes.
*
*/
private @Nullable Integer maxStorageUsage;
/**
* @return Retention period in minutes.
*
*/
private @Nullable Integer retentionPeriod;
private CacheConfigurationResponse() {}
/**
* @return Max storage usage in megabytes.
*
*/
public Optional maxStorageUsage() {
return Optional.ofNullable(this.maxStorageUsage);
}
/**
* @return Retention period in minutes.
*
*/
public Optional retentionPeriod() {
return Optional.ofNullable(this.retentionPeriod);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CacheConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer maxStorageUsage;
private @Nullable Integer retentionPeriod;
public Builder() {}
public Builder(CacheConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.maxStorageUsage = defaults.maxStorageUsage;
this.retentionPeriod = defaults.retentionPeriod;
}
@CustomType.Setter
public Builder maxStorageUsage(@Nullable Integer maxStorageUsage) {
this.maxStorageUsage = maxStorageUsage;
return this;
}
@CustomType.Setter
public Builder retentionPeriod(@Nullable Integer retentionPeriod) {
this.retentionPeriod = retentionPeriod;
return this;
}
public CacheConfigurationResponse build() {
final var _resultValue = new CacheConfigurationResponse();
_resultValue.maxStorageUsage = maxStorageUsage;
_resultValue.retentionPeriod = retentionPeriod;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy