// 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 java.util.List;
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;

/**
 * Application properties from docProps/app.xml for PPTX
 *
 * Contains PowerPoint-specific document metadata.
 */
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = PptxAppProperties.Builder.class)
public record PptxAppProperties(
    /**
     * Application name (e.g., "Microsoft Office PowerPoint")
     */
    @Nullable @JsonProperty("application") String application,
    /**
     * Application version
     */
    @Nullable @JsonProperty("app_version") String appVersion,
    /**
     * Total editing time in minutes
     */
    @Nullable @JsonProperty("total_time") Integer totalTime,
    /**
     * Company name
     */
    @Nullable @JsonProperty("company") String company,
    /**
     * Document security level
     */
    @Nullable @JsonProperty("doc_security") Integer docSecurity,
    /**
     * Scale crop flag
     */
    @Nullable @JsonProperty("scale_crop") Boolean scaleCrop,
    /**
     * Links up to date flag
     */
    @Nullable @JsonProperty("links_up_to_date") Boolean linksUpToDate,
    /**
     * Shared document flag
     */
    @Nullable @JsonProperty("shared_doc") Boolean sharedDoc,
    /**
     * Hyperlinks changed flag
     */
    @Nullable @JsonProperty("hyperlinks_changed") Boolean hyperlinksChanged,
    /**
     * Number of slides
     */
    @Nullable @JsonProperty("slides") Integer slides,
    /**
     * Number of notes
     */
    @Nullable @JsonProperty("notes") Integer notes,
    /**
     * Number of hidden slides
     */
    @Nullable @JsonProperty("hidden_slides") Integer hiddenSlides,
    /**
     * Number of multimedia clips
     */
    @Nullable @JsonProperty("multimedia_clips") Integer multimediaClips,
    /**
     * Presentation format (e.g., "Widescreen", "Standard")
     */
    @Nullable @JsonProperty("presentation_format") String presentationFormat,
    /**
     * Slide titles
     */
    @JsonProperty("slide_titles") List<String> slideTitles
) {
    public static Builder builder() {
        return new Builder();
    }

    // CPD-OFF
    @JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build")
    public static final class Builder {

private String application = null;
        @JsonProperty("app_version")
private String appVersion = null;
        @JsonProperty("total_time")
private Integer totalTime = null;
private String company = null;
        @JsonProperty("doc_security")
private Integer docSecurity = null;
        @JsonProperty("scale_crop")
private Boolean scaleCrop = null;
        @JsonProperty("links_up_to_date")
private Boolean linksUpToDate = null;
        @JsonProperty("shared_doc")
private Boolean sharedDoc = null;
        @JsonProperty("hyperlinks_changed")
private Boolean hyperlinksChanged = null;
private Integer slides = null;
private Integer notes = null;
        @JsonProperty("hidden_slides")
private Integer hiddenSlides = null;
        @JsonProperty("multimedia_clips")
private Integer multimediaClips = null;
        @JsonProperty("presentation_format")
private String presentationFormat = null;
        @JsonProperty("slide_titles")
private List<String> slideTitles = List.of();

        /** Sets the application field. */
        @JsonProperty("application")
        public Builder withApplication(final @Nullable String value) {
            this.application = value;
            return this;
        }

        /** Sets the appVersion field. */
        @JsonProperty("app_version")
        public Builder withAppVersion(final @Nullable String value) {
            this.appVersion = value;
            return this;
        }

        /** Sets the totalTime field. */
        @JsonProperty("total_time")
        public Builder withTotalTime(final @Nullable int value) {
            this.totalTime = value;
            return this;
        }

        /** Sets the company field. */
        @JsonProperty("company")
        public Builder withCompany(final @Nullable String value) {
            this.company = value;
            return this;
        }

        /** Sets the docSecurity field. */
        @JsonProperty("doc_security")
        public Builder withDocSecurity(final @Nullable int value) {
            this.docSecurity = value;
            return this;
        }

        /** Sets the scaleCrop field. */
        @JsonProperty("scale_crop")
        public Builder withScaleCrop(final @Nullable boolean value) {
            this.scaleCrop = value;
            return this;
        }

        /** Sets the linksUpToDate field. */
        @JsonProperty("links_up_to_date")
        public Builder withLinksUpToDate(final @Nullable boolean value) {
            this.linksUpToDate = value;
            return this;
        }

        /** Sets the sharedDoc field. */
        @JsonProperty("shared_doc")
        public Builder withSharedDoc(final @Nullable boolean value) {
            this.sharedDoc = value;
            return this;
        }

        /** Sets the hyperlinksChanged field. */
        @JsonProperty("hyperlinks_changed")
        public Builder withHyperlinksChanged(final @Nullable boolean value) {
            this.hyperlinksChanged = value;
            return this;
        }

        /** Sets the slides field. */
        @JsonProperty("slides")
        public Builder withSlides(final @Nullable int value) {
            this.slides = value;
            return this;
        }

        /** Sets the notes field. */
        @JsonProperty("notes")
        public Builder withNotes(final @Nullable int value) {
            this.notes = value;
            return this;
        }

        /** Sets the hiddenSlides field. */
        @JsonProperty("hidden_slides")
        public Builder withHiddenSlides(final @Nullable int value) {
            this.hiddenSlides = value;
            return this;
        }

        /** Sets the multimediaClips field. */
        @JsonProperty("multimedia_clips")
        public Builder withMultimediaClips(final @Nullable int value) {
            this.multimediaClips = value;
            return this;
        }

        /** Sets the presentationFormat field. */
        @JsonProperty("presentation_format")
        public Builder withPresentationFormat(final @Nullable String value) {
            this.presentationFormat = value;
            return this;
        }

        /** Sets the slideTitles field. */
        @JsonProperty("slide_titles")
        public Builder withSlideTitles(final List<String> value) {
            this.slideTitles = value;
            return this;
        }

        /** Builds the PptxAppProperties instance. */
        public PptxAppProperties build() {
            return new PptxAppProperties(
                application,
                appVersion,
                totalTime,
                company,
                docSecurity,
                scaleCrop,
                linksUpToDate,
                sharedDoc,
                hyperlinksChanged,
                slides,
                notes,
                hiddenSlides,
                multimediaClips,
                presentationFormat,
                slideTitles
            );
        }
    }
    // CPD-ON
}
