com.branch.cos.model.AppendObjectRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of branch_cos_api Show documentation
Show all versions of branch_cos_api Show documentation
branch java sdk for qcloud cos
The newest version!
package com.branch.cos.model;
import java.io.File;
import java.io.InputStream;
public class AppendObjectRequest extends PutObjectRequest {
private Long position;
public AppendObjectRequest(String bucketName, String key, File file) {
super(bucketName, key, file);
}
public AppendObjectRequest(String bucketName, String key, InputStream input) {
this(bucketName, key, input, null);
}
public AppendObjectRequest(String bucketName, String key, InputStream input, ObjectMetadata metadata) {
super(bucketName, key, input, metadata);
}
public Long getPosition() {
return position;
}
public void setPosition(Long position) {
this.position = position;
}
public AppendObjectRequest withPosition(Long position) {
setPosition(position);
return this;
}
}