com.lark.oapi.service.hire.v1.model.OfferStatusOfferReqBody Maven / Gradle / Ivy
Show all versions of oapi-sdk Show documentation
// 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.hire.v1.model;
import com.lark.oapi.core.response.EmptyData;
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 OfferStatusOfferReqBody {
/**
* offer状态
* 示例值:
*/
@SerializedName("offer_status")
private Integer offerStatus;
/**
* offer 失效时间,当反馈状态是「offer已发出」时为必填项
*
示例值:2023-01-01
*/
@SerializedName("expiration_date")
private String expirationDate;
/**
* 终止原因列表,当反馈状态是「候选人已拒绝」时为必填项;最多传入50个
*
示例值:
*/
@SerializedName("termination_reason_id_list")
private String[] terminationReasonIdList;
/**
* 终止备注
*
示例值:不符合期望
*/
@SerializedName("termination_reason_note")
private String terminationReasonNote;
// builder 开始
public OfferStatusOfferReqBody() {
}
public OfferStatusOfferReqBody(Builder builder) {
/**
* offer状态
*
示例值:
*/
this.offerStatus = builder.offerStatus;
/**
* offer 失效时间,当反馈状态是「offer已发出」时为必填项
*
示例值:2023-01-01
*/
this.expirationDate = builder.expirationDate;
/**
* 终止原因列表,当反馈状态是「候选人已拒绝」时为必填项;最多传入50个
*
示例值:
*/
this.terminationReasonIdList = builder.terminationReasonIdList;
/**
* 终止备注
*
示例值:不符合期望
*/
this.terminationReasonNote = builder.terminationReasonNote;
}
public static Builder newBuilder() {
return new Builder();
}
public Integer getOfferStatus() {
return this.offerStatus;
}
public void setOfferStatus(Integer offerStatus) {
this.offerStatus = offerStatus;
}
public String getExpirationDate() {
return this.expirationDate;
}
public void setExpirationDate(String expirationDate) {
this.expirationDate = expirationDate;
}
public String[] getTerminationReasonIdList() {
return this.terminationReasonIdList;
}
public void setTerminationReasonIdList(String[] terminationReasonIdList) {
this.terminationReasonIdList = terminationReasonIdList;
}
public String getTerminationReasonNote() {
return this.terminationReasonNote;
}
public void setTerminationReasonNote(String terminationReasonNote) {
this.terminationReasonNote = terminationReasonNote;
}
public static class Builder {
/**
* offer状态
*
示例值:
*/
private Integer offerStatus;
/**
* offer 失效时间,当反馈状态是「offer已发出」时为必填项
*
示例值:2023-01-01
*/
private String expirationDate;
/**
* 终止原因列表,当反馈状态是「候选人已拒绝」时为必填项;最多传入50个
*
示例值:
*/
private String[] terminationReasonIdList;
/**
* 终止备注
*
示例值:不符合期望
*/
private String terminationReasonNote;
/**
* offer状态
*
示例值:
*
* @param offerStatus
* @return
*/
public Builder offerStatus(Integer offerStatus) {
this.offerStatus = offerStatus;
return this;
}
/**
* offer 失效时间,当反馈状态是「offer已发出」时为必填项
*
示例值:2023-01-01
*
* @param expirationDate
* @return
*/
public Builder expirationDate(String expirationDate) {
this.expirationDate = expirationDate;
return this;
}
/**
* 终止原因列表,当反馈状态是「候选人已拒绝」时为必填项;最多传入50个
*
示例值:
*
* @param terminationReasonIdList
* @return
*/
public Builder terminationReasonIdList(String[] terminationReasonIdList) {
this.terminationReasonIdList = terminationReasonIdList;
return this;
}
/**
* 终止备注
*
示例值:不符合期望
*
* @param terminationReasonNote
* @return
*/
public Builder terminationReasonNote(String terminationReasonNote) {
this.terminationReasonNote = terminationReasonNote;
return this;
}
public OfferStatusOfferReqBody build() {
return new OfferStatusOfferReqBody(this);
}
}
}