// This file is auto-generated by alef — DO NOT EDIT. // alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75 // To regenerate: alef generate // To verify freshness: alef verify --exit-code // Issues & docs: https://github.com/kreuzberg-dev/alef package dev.kreuzberg; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CacheStats.Builder.class) public record CacheStats( @JsonProperty("total_files") long totalFiles, @JsonProperty("total_size_mb") double totalSizeMb, @JsonProperty("available_space_mb") double availableSpaceMb, @JsonProperty("oldest_file_age_days") double oldestFileAgeDays, @JsonProperty("newest_file_age_days") double newestFileAgeDays ) { public static Builder builder() { return new Builder(); } // CPD-OFF @JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build") public static final class Builder { @JsonProperty("total_files") private long totalFiles = 0; @JsonProperty("total_size_mb") private double totalSizeMb = 0.0; @JsonProperty("available_space_mb") private double availableSpaceMb = 0.0; @JsonProperty("oldest_file_age_days") private double oldestFileAgeDays = 0.0; @JsonProperty("newest_file_age_days") private double newestFileAgeDays = 0.0; /** Sets the totalFiles field. */ @JsonProperty("total_files") public Builder withTotalFiles(final long value) { this.totalFiles = value; return this; } /** Sets the totalSizeMb field. */ @JsonProperty("total_size_mb") public Builder withTotalSizeMb(final double value) { this.totalSizeMb = value; return this; } /** Sets the availableSpaceMb field. */ @JsonProperty("available_space_mb") public Builder withAvailableSpaceMb(final double value) { this.availableSpaceMb = value; return this; } /** Sets the oldestFileAgeDays field. */ @JsonProperty("oldest_file_age_days") public Builder withOldestFileAgeDays(final double value) { this.oldestFileAgeDays = value; return this; } /** Sets the newestFileAgeDays field. */ @JsonProperty("newest_file_age_days") public Builder withNewestFileAgeDays(final double value) { this.newestFileAgeDays = value; return this; } /** Builds the CacheStats instance. */ public CacheStats build() { return new CacheStats( totalFiles, totalSizeMb, availableSpaceMb, oldestFileAgeDays, newestFileAgeDays ); } } // CPD-ON }