// 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; /** * A single heading in the hierarchy. */ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = HeadingLevel.Builder.class) public record HeadingLevel(@JsonProperty("level") byte level, @JsonProperty("text") String text) { public static Builder builder() { return new Builder(); } // CPD-OFF @JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build") public static final class Builder { private byte level = 0; private String text = ""; /** Sets the level field. */ @JsonProperty("level") public Builder withLevel(final byte value) { this.level = value; return this; } /** Sets the text field. */ @JsonProperty("text") public Builder withText(final String value) { this.text = value; return this; } /** Builds the HeadingLevel instance. */ public HeadingLevel build() { return new HeadingLevel( level, text ); } } // CPD-ON }