eleme.openapi.sdk.media.upload.MultipartCompleteRequest Maven / Gradle / Ivy
The newest version!
package eleme.openapi.sdk.media.upload;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author jinli
*/
public class MultipartCompleteRequest extends BaseUploadRequest implements Serializable {
private static final long serialVersionUID = 1L;
private String dir; // media file dir
private String name; // media file name
private String id; // id
private String uploadId; // upload id
private String md5; // md5 of file content
private List parts = new ArrayList(); // block part infomation
private Map metas = new HashMap(); // meta vars
private Map vars = new HashMap(); // custom vars
private Map extendPars = new HashMap(); // custom extend parameters, set in http body, not be persisted
public MultipartCompleteRequest() {
}
public MultipartCompleteRequest(String token) {
super(token);
}
public MultipartCompleteRequest(UploadPolicy uploadPolicy) {
super(uploadPolicy);
}
public String getDir() {
return dir;
}
public void setDir(String dir) {
this.dir = dir;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getUploadId() {
return uploadId;
}
public void setUploadId(String uploadId) {
this.uploadId = uploadId;
}
public List getParts() {
return parts;
}
public void setParts(List parts) {
this.parts = parts;
}
public Map getMetas() {
return metas;
}
public void setMetas(Map metas) {
this.metas = metas;
}
public Map getExtendPars() {
return extendPars;
}
public void setExtendPars(Map extendPars) {
this.extendPars = extendPars;
}
public Map getVars() {
return vars;
}
public void setVars(Map vars) {
this.vars = vars;
}
public String getMd5() {
return md5;
}
public void setMd5(String md5) {
this.md5 = md5;
}
/**
* 块信息
*
* @author jinli
*/
public static class PartInfo implements Serializable {
private static final long serialVersionUID = 1L;
private int partNumber;
private String eTag;
public PartInfo() {
}
public PartInfo(int partNumber, String eTag) {
this.partNumber = partNumber;
this.eTag = eTag;
}
public int getPartNumber() {
return partNumber;
}
public void setPartNumber(int partNumber) {
this.partNumber = partNumber;
}
public String geteTag() {
return eTag;
}
public void seteTag(String eTag) {
this.eTag = eTag;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy