All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qcloud.cos.model.AppendObjectRequest Maven / Gradle / Ivy

Go to download

A single bundled dependency that includes all service and dependent JARs with third-party libraries relocated to different namespaces.

There is a newer version: 5.6.228
Show newest version
package com.qcloud.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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy