
com.lark.oapi.service.acs.v1.model.File 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.acs.v1.model;
import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.acs.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 File {
/**
* 人脸图片内容
* 示例值:jpg图片
*/
@SerializedName("files")
private java.io.File files;
/**
* 文件类型,可选的类型有jpg,png
*
示例值:jpg
*/
@SerializedName("file_type")
private String fileType;
/**
* 带后缀的文件名
*
示例值:efeqz12f.jpg
*/
@SerializedName("file_name")
private String fileName;
// builder 开始
public File() {
}
public File(Builder builder) {
/**
* 人脸图片内容
*
示例值:jpg图片
*/
this.files = builder.files;
/**
* 文件类型,可选的类型有jpg,png
*
示例值:jpg
*/
this.fileType = builder.fileType;
/**
* 带后缀的文件名
*
示例值:efeqz12f.jpg
*/
this.fileName = builder.fileName;
}
public static Builder newBuilder() {
return new Builder();
}
public java.io.File getFiles() {
return this.files;
}
public void setFiles(java.io.File files) {
this.files = files;
}
public String getFileType() {
return this.fileType;
}
public void setFileType(String fileType) {
this.fileType = fileType;
}
public String getFileName() {
return this.fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public static class Builder {
/**
* 人脸图片内容
*
示例值:jpg图片
*/
private java.io.File files;
/**
* 文件类型,可选的类型有jpg,png
*
示例值:jpg
*/
private String fileType;
/**
* 带后缀的文件名
*
示例值:efeqz12f.jpg
*/
private String fileName;
/**
* 人脸图片内容
*
示例值:jpg图片
*
* @param files
* @return
*/
public Builder files(java.io.File files) {
this.files = files;
return this;
}
/**
* 文件类型,可选的类型有jpg,png
*
示例值:jpg
*
* @param fileType
* @return
*/
public Builder fileType(String fileType) {
this.fileType = fileType;
return this;
}
/**
* 带后缀的文件名
*
示例值:efeqz12f.jpg
*
* @param fileName
* @return
*/
public Builder fileName(String fileName) {
this.fileName = fileName;
return this;
}
public File build() {
return new File(this);
}
}
}