
com.tencentcloudapi.cr.v20180321.models.UploadDataFileRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.cr.v20180321.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UploadDataFileRequest extends AbstractModel{
/**
* 模块名,本接口取值:Data
*/
@SerializedName("Module")
@Expose
private String Module;
/**
* 操作名,本接口取值:Upload
*/
@SerializedName("Operation")
@Expose
private String Operation;
/**
* 文件名
*/
@SerializedName("FileName")
@Expose
private String FileName;
/**
* 上传类型,不填默认到期/逾期提醒文件,取值范围:
- data:到期/逾期提醒文件
- repay:到期/逾期提醒停拨文件
- callback:回访文件
- callstop:回访停拨文件
*/
@SerializedName("UploadModel")
@Expose
private String UploadModel;
/**
* 文件,文件与文件地址上传只可选用一种,必须使用multipart/form-data协议来上传二进制流文件,建议使用xlsx格式,大小不超过5MB。
*/
@SerializedName("File")
@Expose
private byte [] File;
/**
* 文件上传地址,文件与文件地址上传只可选用一种,大小不超过50MB。
*/
@SerializedName("FileUrl")
@Expose
private String FileUrl;
/**
* 实例ID,不传默认为系统分配的初始实例。
*/
@SerializedName("InstId")
@Expose
private String InstId;
/**
* Get 模块名,本接口取值:Data
* @return Module 模块名,本接口取值:Data
*/
public String getModule() {
return this.Module;
}
/**
* Set 模块名,本接口取值:Data
* @param Module 模块名,本接口取值:Data
*/
public void setModule(String Module) {
this.Module = Module;
}
/**
* Get 操作名,本接口取值:Upload
* @return Operation 操作名,本接口取值:Upload
*/
public String getOperation() {
return this.Operation;
}
/**
* Set 操作名,本接口取值:Upload
* @param Operation 操作名,本接口取值:Upload
*/
public void setOperation(String Operation) {
this.Operation = Operation;
}
/**
* Get 文件名
* @return FileName 文件名
*/
public String getFileName() {
return this.FileName;
}
/**
* Set 文件名
* @param FileName 文件名
*/
public void setFileName(String FileName) {
this.FileName = FileName;
}
/**
* Get 上传类型,不填默认到期/逾期提醒文件,取值范围:
- data:到期/逾期提醒文件
- repay:到期/逾期提醒停拨文件
- callback:回访文件
- callstop:回访停拨文件
* @return UploadModel 上传类型,不填默认到期/逾期提醒文件,取值范围:
- data:到期/逾期提醒文件
- repay:到期/逾期提醒停拨文件
- callback:回访文件
- callstop:回访停拨文件
*/
public String getUploadModel() {
return this.UploadModel;
}
/**
* Set 上传类型,不填默认到期/逾期提醒文件,取值范围:
- data:到期/逾期提醒文件
- repay:到期/逾期提醒停拨文件
- callback:回访文件
- callstop:回访停拨文件
* @param UploadModel 上传类型,不填默认到期/逾期提醒文件,取值范围:
- data:到期/逾期提醒文件
- repay:到期/逾期提醒停拨文件
- callback:回访文件
- callstop:回访停拨文件
*/
public void setUploadModel(String UploadModel) {
this.UploadModel = UploadModel;
}
/**
* Get 文件,文件与文件地址上传只可选用一种,必须使用multipart/form-data协议来上传二进制流文件,建议使用xlsx格式,大小不超过5MB。
* @return File 文件,文件与文件地址上传只可选用一种,必须使用multipart/form-data协议来上传二进制流文件,建议使用xlsx格式,大小不超过5MB。
*/
public byte [] getFile() {
return this.File;
}
/**
* Set 文件,文件与文件地址上传只可选用一种,必须使用multipart/form-data协议来上传二进制流文件,建议使用xlsx格式,大小不超过5MB。
* @param File 文件,文件与文件地址上传只可选用一种,必须使用multipart/form-data协议来上传二进制流文件,建议使用xlsx格式,大小不超过5MB。
*/
public void setFile(byte [] File) {
this.File = File;
}
/**
* Get 文件上传地址,文件与文件地址上传只可选用一种,大小不超过50MB。
* @return FileUrl 文件上传地址,文件与文件地址上传只可选用一种,大小不超过50MB。
*/
public String getFileUrl() {
return this.FileUrl;
}
/**
* Set 文件上传地址,文件与文件地址上传只可选用一种,大小不超过50MB。
* @param FileUrl 文件上传地址,文件与文件地址上传只可选用一种,大小不超过50MB。
*/
public void setFileUrl(String FileUrl) {
this.FileUrl = FileUrl;
}
/**
* Get 实例ID,不传默认为系统分配的初始实例。
* @return InstId 实例ID,不传默认为系统分配的初始实例。
*/
public String getInstId() {
return this.InstId;
}
/**
* Set 实例ID,不传默认为系统分配的初始实例。
* @param InstId 实例ID,不传默认为系统分配的初始实例。
*/
public void setInstId(String InstId) {
this.InstId = InstId;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Module", this.Module);
this.setParamSimple(map, prefix + "Operation", this.Operation);
this.setParamSimple(map, prefix + "FileName", this.FileName);
this.setParamSimple(map, prefix + "UploadModel", this.UploadModel);
this.setParamSimple(map, prefix + "File", this.File);
this.setParamSimple(map, prefix + "FileUrl", this.FileUrl);
this.setParamSimple(map, prefix + "InstId", this.InstId);
}
protected String [] getBinaryParams() {
return new String [] {"File"};
}
protected HashMap getMultipartRequestParams() {
HashMap map = new HashMap();
if (this.Module != null) {
map.put("Module", this.Module.getBytes());
}
if (this.Operation != null) {
map.put("Operation", this.Operation.getBytes());
}
if (this.FileName != null) {
map.put("FileName", this.FileName.getBytes());
}
if (this.UploadModel != null) {
map.put("UploadModel", this.UploadModel.getBytes());
}
if (this.File != null) {
map.put("File", this.File);
}
if (this.FileUrl != null) {
map.put("FileUrl", this.FileUrl.getBytes());
}
if (this.InstId != null) {
map.put("InstId", this.InstId.getBytes());
}
return map;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy