// 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; /** * EPUB metadata (Dublin Core extensions). */ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EpubMetadata.Builder.class) public record EpubMetadata( @Nullable @JsonProperty("coverage") String coverage, @Nullable @JsonProperty("dc_format") String dcFormat, @Nullable @JsonProperty("relation") String relation, @Nullable @JsonProperty("source") String source, @Nullable @JsonProperty("dc_type") String dcType, @Nullable @JsonProperty("cover_image") String coverImage ) { public static Builder builder() { return new Builder(); } // CPD-OFF @JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build") public static final class Builder { private String coverage = null; @JsonProperty("dc_format") private String dcFormat = null; private String relation = null; private String source = null; @JsonProperty("dc_type") private String dcType = null; @JsonProperty("cover_image") private String coverImage = null; /** Sets the coverage field. */ @JsonProperty("coverage") public Builder withCoverage(final @Nullable String value) { this.coverage = value; return this; } /** Sets the dcFormat field. */ @JsonProperty("dc_format") public Builder withDcFormat(final @Nullable String value) { this.dcFormat = value; return this; } /** Sets the relation field. */ @JsonProperty("relation") public Builder withRelation(final @Nullable String value) { this.relation = value; return this; } /** Sets the source field. */ @JsonProperty("source") public Builder withSource(final @Nullable String value) { this.source = value; return this; } /** Sets the dcType field. */ @JsonProperty("dc_type") public Builder withDcType(final @Nullable String value) { this.dcType = value; return this; } /** Sets the coverImage field. */ @JsonProperty("cover_image") public Builder withCoverImage(final @Nullable String value) { this.coverImage = value; return this; } /** Builds the EpubMetadata instance. */ public EpubMetadata build() { return new EpubMetadata( coverage, dcFormat, relation, source, dcType, coverImage ); } } // CPD-ON }