
com.lark.oapi.service.contact.v3.model.UserPosition 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.contact.v3.model;
import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.contact.v3.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 UserPosition {
/**
* 岗位Code
* 示例值:
*/
@SerializedName("position_code")
private String positionCode;
/**
* 岗位名称
*
示例值:
*/
@SerializedName("position_name")
private String positionName;
/**
* 岗位部门ID
*
示例值:
*/
@SerializedName("department_id")
private String departmentId;
/**
* 上级领导ID
*
示例值:
*/
@SerializedName("leader_user_id")
private String leaderUserId;
/**
* 本岗位领导的岗位code
*
示例值:
*/
@SerializedName("leader_position_code")
private String leaderPositionCode;
/**
* 是否主岗,只允许一个主岗sd
*
示例值:
*/
@SerializedName("is_major")
private Boolean isMajor;
// builder 开始
public UserPosition() {
}
public UserPosition(Builder builder) {
/**
* 岗位Code
*
示例值:
*/
this.positionCode = builder.positionCode;
/**
* 岗位名称
*
示例值:
*/
this.positionName = builder.positionName;
/**
* 岗位部门ID
*
示例值:
*/
this.departmentId = builder.departmentId;
/**
* 上级领导ID
*
示例值:
*/
this.leaderUserId = builder.leaderUserId;
/**
* 本岗位领导的岗位code
*
示例值:
*/
this.leaderPositionCode = builder.leaderPositionCode;
/**
* 是否主岗,只允许一个主岗sd
*
示例值:
*/
this.isMajor = builder.isMajor;
}
public static Builder newBuilder() {
return new Builder();
}
public String getPositionCode() {
return this.positionCode;
}
public void setPositionCode(String positionCode) {
this.positionCode = positionCode;
}
public String getPositionName() {
return this.positionName;
}
public void setPositionName(String positionName) {
this.positionName = positionName;
}
public String getDepartmentId() {
return this.departmentId;
}
public void setDepartmentId(String departmentId) {
this.departmentId = departmentId;
}
public String getLeaderUserId() {
return this.leaderUserId;
}
public void setLeaderUserId(String leaderUserId) {
this.leaderUserId = leaderUserId;
}
public String getLeaderPositionCode() {
return this.leaderPositionCode;
}
public void setLeaderPositionCode(String leaderPositionCode) {
this.leaderPositionCode = leaderPositionCode;
}
public Boolean getIsMajor() {
return this.isMajor;
}
public void setIsMajor(Boolean isMajor) {
this.isMajor = isMajor;
}
public static class Builder {
/**
* 岗位Code
*
示例值:
*/
private String positionCode;
/**
* 岗位名称
*
示例值:
*/
private String positionName;
/**
* 岗位部门ID
*
示例值:
*/
private String departmentId;
/**
* 上级领导ID
*
示例值:
*/
private String leaderUserId;
/**
* 本岗位领导的岗位code
*
示例值:
*/
private String leaderPositionCode;
/**
* 是否主岗,只允许一个主岗sd
*
示例值:
*/
private Boolean isMajor;
/**
* 岗位Code
*
示例值:
*
* @param positionCode
* @return
*/
public Builder positionCode(String positionCode) {
this.positionCode = positionCode;
return this;
}
/**
* 岗位名称
*
示例值:
*
* @param positionName
* @return
*/
public Builder positionName(String positionName) {
this.positionName = positionName;
return this;
}
/**
* 岗位部门ID
*
示例值:
*
* @param departmentId
* @return
*/
public Builder departmentId(String departmentId) {
this.departmentId = departmentId;
return this;
}
/**
* 上级领导ID
*
示例值:
*
* @param leaderUserId
* @return
*/
public Builder leaderUserId(String leaderUserId) {
this.leaderUserId = leaderUserId;
return this;
}
/**
* 本岗位领导的岗位code
*
示例值:
*
* @param leaderPositionCode
* @return
*/
public Builder leaderPositionCode(String leaderPositionCode) {
this.leaderPositionCode = leaderPositionCode;
return this;
}
/**
* 是否主岗,只允许一个主岗sd
*
示例值:
*
* @param isMajor
* @return
*/
public Builder isMajor(Boolean isMajor) {
this.isMajor = isMajor;
return this;
}
public UserPosition build() {
return new UserPosition(this);
}
}
}