// 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; import org.jspecify.annotations.Nullable; /** * MIME type detection response. */ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DetectResponse.Builder.class) public record DetectResponse( /** * Detected MIME type */ @JsonProperty("mime_type") String mimeType, /** * Original filename (if provided) */ @Nullable @JsonProperty("filename") String filename ) { public static Builder builder() { return new Builder(); } // CPD-OFF @JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build") public static final class Builder { @JsonProperty("mime_type") private String mimeType = ""; private String filename = null; /** Sets the mimeType field. */ @JsonProperty("mime_type") public Builder withMimeType(final String value) { this.mimeType = value; return this; } /** Sets the filename field. */ @JsonProperty("filename") public Builder withFilename(final @Nullable String value) { this.filename = value; return this; } /** Builds the DetectResponse instance. */ public DetectResponse build() { return new DetectResponse( mimeType, filename ); } } // CPD-ON }