package com.template.model.seewo;

import java.util.*;
import com.seewo.open.sdk.OpenApiParam;
import com.seewo.open.sdk.ParameterPosition;

/**
 * seewo-open API: 【事件|课程】根据班级查询指定日期的考勤统计数据
 * 此接口用于查询某个班级某天某个考勤的统计数据
 *
 * @author auto create
 * @since 2.0.1 2024-6-18
 */
public class AttendanceServiceListEventRecordsByClazzParam extends OpenApiParam {


    /**
     * 响应体，MimeType为 application/json
     */

    private RequestBody requestBody;


    public RequestBody getRequestBody() {
        return this.requestBody;
    }

    public void setRequestBody(RequestBody requestBody) {
        this.requestBody = requestBody;
    }

    public static AttendanceServiceListEventRecordsByClazzParamBuilder builder(){
        return new AttendanceServiceListEventRecordsByClazzParamBuilder();
    }

    public static class AttendanceServiceListEventRecordsByClazzParamBuilder{
        private RequestBody requestBody;

        public AttendanceServiceListEventRecordsByClazzParamBuilder requestBody(RequestBody requestBody){
            this.requestBody = requestBody;
            return this;
        }

        public AttendanceServiceListEventRecordsByClazzParam build(){
            AttendanceServiceListEventRecordsByClazzParam param = new AttendanceServiceListEventRecordsByClazzParam();
            param.setRequestBody(requestBody);
            return param;
        }
    }

    public static class RequestBody {
        /**
         * query
         */
        private Query query;

        public Query getQuery() {
            return this.query;
        }

        public void setQuery(Query query) {
            this.query = query;
        }


        public static RequestBodyBuilder builder(){
            return new RequestBodyBuilder();
        }

        public static class RequestBodyBuilder{
            private Query query;

            public RequestBodyBuilder query(Query query){
                this.query = query;
                return this;
            }

            public RequestBody build(){
                RequestBody param = new RequestBody();
                param.setQuery(query);
                return param;
            }
        }
    }

    public static class Query {
        /**
         * appId
         */
        private String appId;
        /**
         * schoolUid
         */
        private String schoolUid;
        /**
         * attendDate
         */
        private String attendDate;
        /**
         * 班级uid
与clazz+grade二选一
即班级通过classUid或grade + clazz唯一确定，二者必须传一个
都传以classUid为准
         */
        private String classUid;
        /**
         * 班级序号
1-12 小学1年级~高三年级，30 幼儿园。 99 其他自定义
与classUid二选一
即班级通过classUid或grade + clazz唯一确定，二者必须传一个
都传以classUid为准
         */
        private Integer grade;
        /**
         * 年级序号
与classUid二选一
即班级通过classUid或grade + clazz唯一确定，二者必须传一个
都传以classUid为准
         */
        private Integer clazz;

        public String getAppId() {
            return this.appId;
        }

        public void setAppId(String appId) {
            this.appId = appId;
        }

        public String getSchoolUid() {
            return this.schoolUid;
        }

        public void setSchoolUid(String schoolUid) {
            this.schoolUid = schoolUid;
        }

        public String getAttendDate() {
            return this.attendDate;
        }

        public void setAttendDate(String attendDate) {
            this.attendDate = attendDate;
        }

        public String getClassUid() {
            return this.classUid;
        }

        public void setClassUid(String classUid) {
            this.classUid = classUid;
        }

        public Integer getGrade() {
            return this.grade;
        }

        public void setGrade(Integer grade) {
            this.grade = grade;
        }

        public Integer getClazz() {
            return this.clazz;
        }

        public void setClazz(Integer clazz) {
            this.clazz = clazz;
        }


        public static QueryBuilder builder(){
            return new QueryBuilder();
        }

        public static class QueryBuilder{
            private String appId;
            private String schoolUid;
            private String attendDate;
            private String classUid;
            private Integer grade;
            private Integer clazz;

            public QueryBuilder appId(String appId){
                this.appId = appId;
                return this;
            }
            public QueryBuilder schoolUid(String schoolUid){
                this.schoolUid = schoolUid;
                return this;
            }
            public QueryBuilder attendDate(String attendDate){
                this.attendDate = attendDate;
                return this;
            }
            public QueryBuilder classUid(String classUid){
                this.classUid = classUid;
                return this;
            }
            public QueryBuilder grade(Integer grade){
                this.grade = grade;
                return this;
            }
            public QueryBuilder clazz(Integer clazz){
                this.clazz = clazz;
                return this;
            }

            public Query build(){
                Query param = new Query();
                param.setAppId(appId);
                param.setSchoolUid(schoolUid);
                param.setAttendDate(attendDate);
                param.setClassUid(classUid);
                param.setGrade(grade);
                param.setClazz(clazz);
                return param;
            }
        }
    }


}
