
com.lark.oapi.service.compensation.v1.model.Archive Maven / Gradle / Ivy
// Code generated by lark suite oapi sdk gen
/*
* MIT License
*
* Copyright (c) 2022 Lark Technologies Pte. Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.lark.oapi.service.compensation.v1.model;
import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.compensation.v1.enums.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.SerializedName;
import com.lark.oapi.core.annotation.Body;
import com.lark.oapi.core.annotation.Path;
import com.lark.oapi.core.annotation.Query;
import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import com.lark.oapi.core.utils.Strings;
import com.lark.oapi.core.response.BaseResponse;
public class Archive {
/**
* 档案ID
* 示例值:7196951947268589113
*/
@SerializedName("archive_id")
private String archiveId;
/**
* 档案时间轴版本ID
*
示例值:7209959917078201911
*/
@SerializedName("archive_tid")
private String archiveTid;
/**
* 员工ID
*
示例值:7117649868058789407
*/
@SerializedName("user_id")
private String userId;
/**
* 关联方案
*
示例值:
*/
@SerializedName("plan")
private Plan plan;
/**
* 档案生效时间
*
示例值:2022-03-18
*/
@SerializedName("effective_date")
private String effectiveDate;
// builder 开始
public Archive() {
}
public Archive(Builder builder) {
/**
* 档案ID
*
示例值:7196951947268589113
*/
this.archiveId = builder.archiveId;
/**
* 档案时间轴版本ID
*
示例值:7209959917078201911
*/
this.archiveTid = builder.archiveTid;
/**
* 员工ID
*
示例值:7117649868058789407
*/
this.userId = builder.userId;
/**
* 关联方案
*
示例值:
*/
this.plan = builder.plan;
/**
* 档案生效时间
*
示例值:2022-03-18
*/
this.effectiveDate = builder.effectiveDate;
}
public static Builder newBuilder() {
return new Builder();
}
public String getArchiveId() {
return this.archiveId;
}
public void setArchiveId(String archiveId) {
this.archiveId = archiveId;
}
public String getArchiveTid() {
return this.archiveTid;
}
public void setArchiveTid(String archiveTid) {
this.archiveTid = archiveTid;
}
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public Plan getPlan() {
return this.plan;
}
public void setPlan(Plan plan) {
this.plan = plan;
}
public String getEffectiveDate() {
return this.effectiveDate;
}
public void setEffectiveDate(String effectiveDate) {
this.effectiveDate = effectiveDate;
}
public static class Builder {
/**
* 档案ID
*
示例值:7196951947268589113
*/
private String archiveId;
/**
* 档案时间轴版本ID
*
示例值:7209959917078201911
*/
private String archiveTid;
/**
* 员工ID
*
示例值:7117649868058789407
*/
private String userId;
/**
* 关联方案
*
示例值:
*/
private Plan plan;
/**
* 档案生效时间
*
示例值:2022-03-18
*/
private String effectiveDate;
/**
* 档案ID
*
示例值:7196951947268589113
*
* @param archiveId
* @return
*/
public Builder archiveId(String archiveId) {
this.archiveId = archiveId;
return this;
}
/**
* 档案时间轴版本ID
*
示例值:7209959917078201911
*
* @param archiveTid
* @return
*/
public Builder archiveTid(String archiveTid) {
this.archiveTid = archiveTid;
return this;
}
/**
* 员工ID
*
示例值:7117649868058789407
*
* @param userId
* @return
*/
public Builder userId(String userId) {
this.userId = userId;
return this;
}
/**
* 关联方案
*
示例值:
*
* @param plan
* @return
*/
public Builder plan(Plan plan) {
this.plan = plan;
return this;
}
/**
* 档案生效时间
*
示例值:2022-03-18
*
* @param effectiveDate
* @return
*/
public Builder effectiveDate(String effectiveDate) {
this.effectiveDate = effectiveDate;
return this;
}
public Archive build() {
return new Archive(this);
}
}
}