com.qcloud.cos.model.MultipartUpload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cos_api-bundle Show documentation
Show all versions of cos_api-bundle Show documentation
A single bundled dependency that includes all service and dependent JARs with third-party libraries
relocated to different namespaces.
/*
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file 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.
* According to cos feature, we modify some class,comment, field name, etc.
*/
package com.qcloud.cos.model;
import java.io.Serializable;
import java.util.Date;
public class MultipartUpload implements Serializable {
private static final long serialVersionUID = 1L;
/** The key by which this upload is stored. */
private String key;
/** The unique ID of this multipart upload. */
private String uploadId;
/** The owner of this multipart upload. */
private Owner owner;
/** The initiator of this multipart upload. */
private Owner initiator;
/** The date at which this upload was initiated. */
private Date initiated;
/**
* Returns the key by which this upload is stored.
*
* @return The key by which this upload is stored.
*/
public String getKey() {
return key;
}
/**
* Sets the key by which this upload is stored.
*
* @param key
* The key by which this upload is stored.
*/
public void setKey(String key) {
this.key = key;
}
/**
* Returns the unique ID of this multipart upload.
*
* @return The unique ID of this multipart upload.
*/
public String getUploadId() {
return uploadId;
}
/**
* Sets the unique ID of this multipart upload.
*
* @param uploadId
* The unique ID of this multipart upload.
*/
public void setUploadId(String uploadId) {
this.uploadId = uploadId;
}
/**
* Returns the owner of this multipart upload.
*
* @return The owner of this multipart upload.
*/
public Owner getOwner() {
return owner;
}
/**
* Sets the owner of this multipart upload.
*
* @param owner
* The owner of this multipart upload.
*/
public void setOwner(Owner owner) {
this.owner = owner;
}
/**
* Returns the user who initiated this multipart upload.
*
* @return The user who initiated this multipart upload.
*/
public Owner getInitiator() {
return initiator;
}
/**
* Sets the user who initiated this multipart upload.
*
* @param owner
* The user who initiated this multipart upload.
*/
public void setInitiator(Owner initiator) {
this.initiator = initiator;
}
/**
* Returns the date at which this upload was initiated.
*
* @return The date at which this upload was initiated.
*/
public Date getInitiated() {
return initiated;
}
/**
* Sets the date at which this upload was initiated.
*
* @param initiated
* The date at which this upload was initiated.
*/
public void setInitiated(Date initiated) {
this.initiated = initiated;
}
}