# HotelKpiStrWeekDetailSaveDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hotelkpi.strdata.week.save;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Range;

    /**
     * DTO: Str Week Value Save
     *
     * @author zc
     * @date 2025/1/21
     */
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public class HotelKpiStrWeekDetailSaveDTO {
        /**
         * Category
         */
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 3, message = "The category must be in [1 - 3]")
        private Integer category;
        /**
         * My Property
         */
        @Valid
        @NotNull(message = "The property cannot be null")
        private HotelKpiStrWeekValueSaveDTO property;
        /**
         * My Property Chg
         */
        @Valid
        @NotNull(message = "The propertyChg cannot be null")
        private HotelKpiStrWeekValueSaveDTO propertyChg;
        /**
         * Comp Set
         */
        @Valid
        @NotNull(message = "The compSet cannot be null")
        private HotelKpiStrWeekValueSaveDTO compSet;
        /**
         * Comp Set Chg
         */
        @Valid
        @NotNull(message = "The compSetChg cannot be null")
        private HotelKpiStrWeekValueSaveDTO compSetChg;
        /**
         * Index
         */
        @Valid
        @NotNull(message = "The index cannot be null")
        private HotelKpiStrWeekValueSaveDTO index;
        /**
         * Index Chg
         */
        @Valid
        @NotNull(message = "The indexChg cannot be null")
        private HotelKpiStrWeekValueSaveDTO indexChg;
    }