com.aliyun.oss.model

## 类 UploadFileRequest

- java.lang.Object
- - com.aliyun.oss.model.WebServiceRequest
  - - com.aliyun.oss.model.GenericRequest
    - - com.aliyun.oss.model.UploadFileRequest

-     public class UploadFileRequest
      extends GenericRequest

  The file upload request to start a multipart upload.

- - ### 字段概要

    - ### 从类继承的字段 com.aliyun.oss.model.WebServiceRequest

      `NOOP`

  - ### 构造器概要

    构造器
    构造器和说明
    `UploadFileRequest(String bucketName, String key)`
    `UploadFileRequest(String bucketName, String key, String uploadFile, long partSize, int taskNum)`
    `UploadFileRequest(String bucketName, String key, String uploadFile, long partSize, int taskNum, boolean enableCheckpoint)`
    `UploadFileRequest(String bucketName, String key, String uploadFile, long partSize, int taskNum, boolean enableCheckpoint, String checkpointFile)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `Callback` | `getCallback()`
    `String` | `getCheckpointFile()`
    `ObjectMetadata` | `getObjectMetadata()`
    `long` | `getPartSize()`
    `Boolean` | `getSequentialMode()` Gets the sequential mode setting.
    `int` | `getTaskNum()`
    `int` | `getTrafficLimit()` Gets traffic limit speed, its unit is bit/s
    `String` | `getUploadFile()`
    `boolean` | `isEnableCheckpoint()`
    `void` | `setCallback(Callback callback)`
    `void` | `setCheckpointFile(String checkpointFile)`
    `void` | `setEnableCheckpoint(boolean enableCheckpoint)`
    `void` | `setObjectMetadata(ObjectMetadata objectMetadata)`
    `void` | `setPartSize(long partSize)`
    `void` | `setSequentialMode(Boolean sequentialMode)` Sets upload in sequential mode or not.
    `void` | `setTaskNum(int taskNum)`
    `void` | `setTrafficLimit(int trafficLimit)` Sets traffic limit speed, its unit is bit/s
    `void` | `setUploadFile(String uploadFile)`

    - ### 从类继承的方法 com.aliyun.oss.model.GenericRequest

      `getBucketName, getKey, getRequestPayer, getVersionId, setBucketName, setKey, setRequestPayer, setVersionId, withBucketName, withKey, withRequestPayer, withVersionId`

    - ### 从类继承的方法 com.aliyun.oss.model.WebServiceRequest

      `addAdditionalHeaderName, addHeader, addParameter, getAdditionalHeaderNames, getHeaders, getParameters, getProgressListener, isLogEnabled, setAdditionalHeaderNames, setHeaders, setLogEnabled, setParameters, setProgressListener, withProgressListener`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### UploadFileRequest

          public UploadFileRequest(String bucketName,
                           String key)

    - #### UploadFileRequest

          public UploadFileRequest(String bucketName,
                           String key,
                           String uploadFile,
                           long partSize,
                           int taskNum)

    - #### UploadFileRequest

          public UploadFileRequest(String bucketName,
                           String key,
                           String uploadFile,
                           long partSize,
                           int taskNum,
                           boolean enableCheckpoint)

    - #### UploadFileRequest

          public UploadFileRequest(String bucketName,
                           String key,
                           String uploadFile,
                           long partSize,
                           int taskNum,
                           boolean enableCheckpoint,
                           String checkpointFile)

  - ### 方法详细资料

    - #### getPartSize

          public long getPartSize()

    - #### setPartSize

          public void setPartSize(long partSize)

    - #### getTaskNum

          public int getTaskNum()

    - #### setTaskNum

          public void setTaskNum(int taskNum)

    - #### getUploadFile

          public String getUploadFile()

    - #### setUploadFile

          public void setUploadFile(String uploadFile)

    - #### isEnableCheckpoint

          public boolean isEnableCheckpoint()

    - #### setEnableCheckpoint

          public void setEnableCheckpoint(boolean enableCheckpoint)

    - #### getCheckpointFile

          public String getCheckpointFile()

    - #### setCheckpointFile

          public void setCheckpointFile(String checkpointFile)

    - #### getObjectMetadata

          public ObjectMetadata getObjectMetadata()

    - #### setObjectMetadata

          public void setObjectMetadata(ObjectMetadata objectMetadata)

    - #### getCallback

          public Callback getCallback()

    - #### setCallback

          public void setCallback(Callback callback)

    - #### setTrafficLimit

          public void setTrafficLimit(int trafficLimit)

      Sets traffic limit speed, its unit is bit/s

    - #### getTrafficLimit

          public int getTrafficLimit()

      Gets traffic limit speed, its unit is bit/s
      返回:
        traffic limit speed

    - #### getSequentialMode

          public Boolean getSequentialMode()

      Gets the sequential mode setting.

    - #### setSequentialMode

          public void setSequentialMode(Boolean sequentialMode)

      Sets upload in sequential mode or not.

Copyright © 2020. All Rights Reserved.