This commit is contained in:
46
packages/java/dev/kreuzberg/EmailConfig.java
generated
Normal file
46
packages/java/dev/kreuzberg/EmailConfig.java
generated
Normal file
@@ -0,0 +1,46 @@
|
||||
// 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;
|
||||
|
||||
/**
|
||||
* Configuration for email extraction.
|
||||
*/
|
||||
@JsonInclude(JsonInclude.Include.NON_ABSENT)
|
||||
@JsonDeserialize(builder = EmailConfig.Builder.class)
|
||||
public record EmailConfig(@Nullable @JsonProperty("msg_fallback_codepage") Integer msgFallbackCodepage) {
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
// CPD-OFF
|
||||
@JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build")
|
||||
public static final class Builder {
|
||||
|
||||
@JsonProperty("msg_fallback_codepage")
|
||||
private Integer msgFallbackCodepage = null;
|
||||
|
||||
/** Sets the msgFallbackCodepage field. */
|
||||
@JsonProperty("msg_fallback_codepage")
|
||||
public Builder withMsgFallbackCodepage(final @Nullable int value) {
|
||||
this.msgFallbackCodepage = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/** Builds the EmailConfig instance. */
|
||||
public EmailConfig build() {
|
||||
return new EmailConfig(
|
||||
msgFallbackCodepage
|
||||
);
|
||||
}
|
||||
}
|
||||
// CPD-ON
|
||||
}
|
||||
Reference in New Issue
Block a user