com.lark.oapi.service.aily.v1.model.BuiltinAction 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.aily.v1.model;
import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.aily.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 BuiltinAction {
/**
* 内置的消息交互类型
* 示例值:CANCEL
*/
@SerializedName("builtin_action_type")
private String builtinActionType;
/**
* 是否可交互
*
示例值:true
*/
@SerializedName("enable")
private Boolean enable;
/**
* action 状态
*
示例值:DISLIKE
*/
@SerializedName("action_status")
private String actionStatus;
/**
* action 的其它信息
*
示例值:{}
*/
@SerializedName("extra")
private String extra;
// builder 开始
public BuiltinAction() {
}
public BuiltinAction(Builder builder) {
/**
* 内置的消息交互类型
*
示例值:CANCEL
*/
this.builtinActionType = builder.builtinActionType;
/**
* 是否可交互
*
示例值:true
*/
this.enable = builder.enable;
/**
* action 状态
*
示例值:DISLIKE
*/
this.actionStatus = builder.actionStatus;
/**
* action 的其它信息
*
示例值:{}
*/
this.extra = builder.extra;
}
public static Builder newBuilder() {
return new Builder();
}
public String getBuiltinActionType() {
return this.builtinActionType;
}
public void setBuiltinActionType(String builtinActionType) {
this.builtinActionType = builtinActionType;
}
public Boolean getEnable() {
return this.enable;
}
public void setEnable(Boolean enable) {
this.enable = enable;
}
public String getActionStatus() {
return this.actionStatus;
}
public void setActionStatus(String actionStatus) {
this.actionStatus = actionStatus;
}
public String getExtra() {
return this.extra;
}
public void setExtra(String extra) {
this.extra = extra;
}
public static class Builder {
/**
* 内置的消息交互类型
*
示例值:CANCEL
*/
private String builtinActionType;
/**
* 是否可交互
*
示例值:true
*/
private Boolean enable;
/**
* action 状态
*
示例值:DISLIKE
*/
private String actionStatus;
/**
* action 的其它信息
*
示例值:{}
*/
private String extra;
/**
* 内置的消息交互类型
*
示例值:CANCEL
*
* @param builtinActionType
* @return
*/
public Builder builtinActionType(String builtinActionType) {
this.builtinActionType = builtinActionType;
return this;
}
/**
* 内置的消息交互类型
*
示例值:CANCEL
*
* @param builtinActionType {@link com.lark.oapi.service.aily.v1.enums.BuiltinActionBuiltinActionTypeEnum}
* @return
*/
public Builder builtinActionType(com.lark.oapi.service.aily.v1.enums.BuiltinActionBuiltinActionTypeEnum builtinActionType) {
this.builtinActionType = builtinActionType.getValue();
return this;
}
/**
* 是否可交互
*
示例值:true
*
* @param enable
* @return
*/
public Builder enable(Boolean enable) {
this.enable = enable;
return this;
}
/**
* action 状态
*
示例值:DISLIKE
*
* @param actionStatus
* @return
*/
public Builder actionStatus(String actionStatus) {
this.actionStatus = actionStatus;
return this;
}
/**
* action 的其它信息
*
示例值:{}
*
* @param extra
* @return
*/
public Builder extra(String extra) {
this.extra = extra;
return this;
}
public BuiltinAction build() {
return new BuiltinAction(this);
}
}
}