All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.dingtalkattendance_1_0.models.UpdateLeaveTypeResponseBody Maven / Gradle / Ivy

There is a newer version: 2.1.30
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkattendance_1_0.models;

import com.aliyun.tea.*;

public class UpdateLeaveTypeResponseBody extends TeaModel {
    // 返回参数
    @NameInMap("result")
    public UpdateLeaveTypeResponseBodyResult result;

    public static UpdateLeaveTypeResponseBody build(java.util.Map map) throws Exception {
        UpdateLeaveTypeResponseBody self = new UpdateLeaveTypeResponseBody();
        return TeaModel.build(map, self);
    }

    public UpdateLeaveTypeResponseBody setResult(UpdateLeaveTypeResponseBodyResult result) {
        this.result = result;
        return this;
    }
    public UpdateLeaveTypeResponseBodyResult getResult() {
        return this.result;
    }

    public static class UpdateLeaveTypeResponseBodyResultLeaveCertificate extends TeaModel {
        // 超过多长时间需提供请假证明
        @NameInMap("duration")
        public Double duration;

        // 是否开启请假证明
        @NameInMap("enable")
        public Boolean enable;

        // 请假提示文案
        @NameInMap("promptInformation")
        public String promptInformation;

        // 请假证明单位hour,day
        @NameInMap("unit")
        public String unit;

        public static UpdateLeaveTypeResponseBodyResultLeaveCertificate build(java.util.Map map) throws Exception {
            UpdateLeaveTypeResponseBodyResultLeaveCertificate self = new UpdateLeaveTypeResponseBodyResultLeaveCertificate();
            return TeaModel.build(map, self);
        }

        public UpdateLeaveTypeResponseBodyResultLeaveCertificate setDuration(Double duration) {
            this.duration = duration;
            return this;
        }
        public Double getDuration() {
            return this.duration;
        }

        public UpdateLeaveTypeResponseBodyResultLeaveCertificate setEnable(Boolean enable) {
            this.enable = enable;
            return this;
        }
        public Boolean getEnable() {
            return this.enable;
        }

        public UpdateLeaveTypeResponseBodyResultLeaveCertificate setPromptInformation(String promptInformation) {
            this.promptInformation = promptInformation;
            return this;
        }
        public String getPromptInformation() {
            return this.promptInformation;
        }

        public UpdateLeaveTypeResponseBodyResultLeaveCertificate setUnit(String unit) {
            this.unit = unit;
            return this;
        }
        public String getUnit() {
            return this.unit;
        }

    }

    public static class UpdateLeaveTypeResponseBodyResultSubmitTimeRule extends TeaModel {
        // 是否开启限时提交功能:仅且为true时开启
        @NameInMap("enableTimeLimit")
        public Boolean enableTimeLimit;

        // 限制类型:before-提前;after-补交
        @NameInMap("timeType")
        public String timeType;

        // 时间单位:day-天;hour-小时
        @NameInMap("timeUnit")
        public String timeUnit;

        // 限制值:timeUnit=day时,有效值范围[0~30] 天;timeUnit=hour时,有效值范围[0~24] 小时
        @NameInMap("timeValue")
        public Long timeValue;

        public static UpdateLeaveTypeResponseBodyResultSubmitTimeRule build(java.util.Map map) throws Exception {
            UpdateLeaveTypeResponseBodyResultSubmitTimeRule self = new UpdateLeaveTypeResponseBodyResultSubmitTimeRule();
            return TeaModel.build(map, self);
        }

        public UpdateLeaveTypeResponseBodyResultSubmitTimeRule setEnableTimeLimit(Boolean enableTimeLimit) {
            this.enableTimeLimit = enableTimeLimit;
            return this;
        }
        public Boolean getEnableTimeLimit() {
            return this.enableTimeLimit;
        }

        public UpdateLeaveTypeResponseBodyResultSubmitTimeRule setTimeType(String timeType) {
            this.timeType = timeType;
            return this;
        }
        public String getTimeType() {
            return this.timeType;
        }

        public UpdateLeaveTypeResponseBodyResultSubmitTimeRule setTimeUnit(String timeUnit) {
            this.timeUnit = timeUnit;
            return this;
        }
        public String getTimeUnit() {
            return this.timeUnit;
        }

        public UpdateLeaveTypeResponseBodyResultSubmitTimeRule setTimeValue(Long timeValue) {
            this.timeValue = timeValue;
            return this;
        }
        public Long getTimeValue() {
            return this.timeValue;
        }

    }

    public static class UpdateLeaveTypeResponseBodyResult extends TeaModel {
        // 假期类型,普通假期或者加班转调休假期。(general_leave、lieu_leave其中一种)
        @NameInMap("bizType")
        public String bizType;

        // 每天折算的工作时长(百分之一 例如1天=10小时=1000)
        @NameInMap("hoursInPerDay")
        public Long hoursInPerDay;

        // 请假证明
        @NameInMap("leaveCertificate")
        public UpdateLeaveTypeResponseBodyResultLeaveCertificate leaveCertificate;

        // 假期类型唯一标识
        @NameInMap("leaveCode")
        public String leaveCode;

        // 假期名称
        @NameInMap("leaveName")
        public String leaveName;

        // 请假单位,可以按照天半天或者小时请假。(day、halfDay、hour其中一种)
        @NameInMap("leaveViewUnit")
        public String leaveViewUnit;

        // 是否按照自然日统计请假时长,当为false的时候,用户发起请假时候会根据用户在请假时间段内的排班情况来计算请假时长。
        @NameInMap("naturalDayLeave")
        public Boolean naturalDayLeave;

        // 限时提交规则
        @NameInMap("submitTimeRule")
        public UpdateLeaveTypeResponseBodyResultSubmitTimeRule submitTimeRule;

        public static UpdateLeaveTypeResponseBodyResult build(java.util.Map map) throws Exception {
            UpdateLeaveTypeResponseBodyResult self = new UpdateLeaveTypeResponseBodyResult();
            return TeaModel.build(map, self);
        }

        public UpdateLeaveTypeResponseBodyResult setBizType(String bizType) {
            this.bizType = bizType;
            return this;
        }
        public String getBizType() {
            return this.bizType;
        }

        public UpdateLeaveTypeResponseBodyResult setHoursInPerDay(Long hoursInPerDay) {
            this.hoursInPerDay = hoursInPerDay;
            return this;
        }
        public Long getHoursInPerDay() {
            return this.hoursInPerDay;
        }

        public UpdateLeaveTypeResponseBodyResult setLeaveCertificate(UpdateLeaveTypeResponseBodyResultLeaveCertificate leaveCertificate) {
            this.leaveCertificate = leaveCertificate;
            return this;
        }
        public UpdateLeaveTypeResponseBodyResultLeaveCertificate getLeaveCertificate() {
            return this.leaveCertificate;
        }

        public UpdateLeaveTypeResponseBodyResult setLeaveCode(String leaveCode) {
            this.leaveCode = leaveCode;
            return this;
        }
        public String getLeaveCode() {
            return this.leaveCode;
        }

        public UpdateLeaveTypeResponseBodyResult setLeaveName(String leaveName) {
            this.leaveName = leaveName;
            return this;
        }
        public String getLeaveName() {
            return this.leaveName;
        }

        public UpdateLeaveTypeResponseBodyResult setLeaveViewUnit(String leaveViewUnit) {
            this.leaveViewUnit = leaveViewUnit;
            return this;
        }
        public String getLeaveViewUnit() {
            return this.leaveViewUnit;
        }

        public UpdateLeaveTypeResponseBodyResult setNaturalDayLeave(Boolean naturalDayLeave) {
            this.naturalDayLeave = naturalDayLeave;
            return this;
        }
        public Boolean getNaturalDayLeave() {
            return this.naturalDayLeave;
        }

        public UpdateLeaveTypeResponseBodyResult setSubmitTimeRule(UpdateLeaveTypeResponseBodyResultSubmitTimeRule submitTimeRule) {
            this.submitTimeRule = submitTimeRule;
            return this;
        }
        public UpdateLeaveTypeResponseBodyResultSubmitTimeRule getSubmitTimeRule() {
            return this.submitTimeRule;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy