com.lark.oapi.service.bitable.v1.model.AppRoleTableRoleRecRuleCondition 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.bitable.v1.model;
import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.bitable.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 AppRoleTableRoleRecRuleCondition {
/**
* 字段名,记录筛选条件是`创建人包含访问者本人`时,此参数值为""
* 示例值:单选
*/
@SerializedName("field_name")
private String fieldName;
/**
* 运算符
*
示例值:is
*/
@SerializedName("operator")
private String operator;
/**
* 单选或多选字段的选项id
*
示例值:["optbdVHf4q", "optrpd3eIJ"]
*/
@SerializedName("value")
private String[] value;
/**
* 字段类型
*
示例值:3
*/
@SerializedName("field_type")
private Integer fieldType;
// builder 开始
public AppRoleTableRoleRecRuleCondition() {
}
public AppRoleTableRoleRecRuleCondition(Builder builder) {
/**
* 字段名,记录筛选条件是`创建人包含访问者本人`时,此参数值为""
*
示例值:单选
*/
this.fieldName = builder.fieldName;
/**
* 运算符
*
示例值:is
*/
this.operator = builder.operator;
/**
* 单选或多选字段的选项id
*
示例值:["optbdVHf4q", "optrpd3eIJ"]
*/
this.value = builder.value;
/**
* 字段类型
*
示例值:3
*/
this.fieldType = builder.fieldType;
}
public static Builder newBuilder() {
return new Builder();
}
public String getFieldName() {
return this.fieldName;
}
public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}
public String getOperator() {
return this.operator;
}
public void setOperator(String operator) {
this.operator = operator;
}
public String[] getValue() {
return this.value;
}
public void setValue(String[] value) {
this.value = value;
}
public Integer getFieldType() {
return this.fieldType;
}
public void setFieldType(Integer fieldType) {
this.fieldType = fieldType;
}
public static class Builder {
/**
* 字段名,记录筛选条件是`创建人包含访问者本人`时,此参数值为""
*
示例值:单选
*/
private String fieldName;
/**
* 运算符
*
示例值:is
*/
private String operator;
/**
* 单选或多选字段的选项id
*
示例值:["optbdVHf4q", "optrpd3eIJ"]
*/
private String[] value;
/**
* 字段类型
*
示例值:3
*/
private Integer fieldType;
/**
* 字段名,记录筛选条件是`创建人包含访问者本人`时,此参数值为""
*
示例值:单选
*
* @param fieldName
* @return
*/
public Builder fieldName(String fieldName) {
this.fieldName = fieldName;
return this;
}
/**
* 运算符
*
示例值:is
*
* @param operator
* @return
*/
public Builder operator(String operator) {
this.operator = operator;
return this;
}
/**
* 运算符
*
示例值:is
*
* @param operator {@link com.lark.oapi.service.bitable.v1.enums.AppRoleTableRoleRecRuleConditionOperatorEnum}
* @return
*/
public Builder operator(com.lark.oapi.service.bitable.v1.enums.AppRoleTableRoleRecRuleConditionOperatorEnum operator) {
this.operator = operator.getValue();
return this;
}
/**
* 单选或多选字段的选项id
*
示例值:["optbdVHf4q", "optrpd3eIJ"]
*
* @param value
* @return
*/
public Builder value(String[] value) {
this.value = value;
return this;
}
/**
* 字段类型
*
示例值:3
*
* @param fieldType
* @return
*/
public Builder fieldType(Integer fieldType) {
this.fieldType = fieldType;
return this;
}
public AppRoleTableRoleRecRuleCondition build() {
return new AppRoleTableRoleRecRuleCondition(this);
}
}
}