com.aliyun.oss.model

## 类 PutObjectRequest

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

- 直接已知子类:
    AppendObjectRequest

      public class PutObjectRequest
      extends GenericRequest

- - ### 字段概要

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

      `NOOP`

  - ### 构造器概要

    构造器
    构造器和说明
    `PutObjectRequest(String bucketName, String key, File file)`
    `PutObjectRequest(String bucketName, String key, File file, ObjectMetadata metadata)`
    `PutObjectRequest(String bucketName, String key, InputStream input)`
    `PutObjectRequest(String bucketName, String key, InputStream input, ObjectMetadata metadata)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `Callback` | `getCallback()`
    `File` | `getFile()`
    `InputStream` | `getInputStream()`
    `ObjectMetadata` | `getMetadata()`
    `String` | `getProcess()`
    `int` | `getTrafficLimit()` Gets traffic limit speed, its unit is bit/s
    `void` | `setCallback(Callback callback)`
    `void` | `setFile(File file)`
    `void` | `setInputStream(InputStream inputStream)`
    `void` | `setMetadata(ObjectMetadata metadata)`
    `void` | `setProcess(String process)`
    `void` | `setTrafficLimit(int trafficLimit)` Sets traffic limit speed, its unit is bit/s

    - ### 从类继承的方法 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`

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

    - #### PutObjectRequest

          public PutObjectRequest(String bucketName,
                          String key,
                          File file)

    - #### PutObjectRequest

          public PutObjectRequest(String bucketName,
                          String key,
                          File file,
                          ObjectMetadata metadata)

    - #### PutObjectRequest

          public PutObjectRequest(String bucketName,
                          String key,
                          InputStream input)

    - #### PutObjectRequest

          public PutObjectRequest(String bucketName,
                          String key,
                          InputStream input,
                          ObjectMetadata metadata)

  - ### 方法详细资料

    - #### getFile

          public File getFile()

    - #### setFile

          public void setFile(File file)

    - #### getInputStream

          public InputStream getInputStream()

    - #### setInputStream

          public void setInputStream(InputStream inputStream)

    - #### getMetadata

          public ObjectMetadata getMetadata()

    - #### setMetadata

          public void setMetadata(ObjectMetadata metadata)

    - #### getCallback

          public Callback getCallback()

    - #### setCallback

          public void setCallback(Callback callback)

    - #### getProcess

          public String getProcess()

    - #### setProcess

          public void setProcess(String process)

    - #### 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

Copyright © 2020. All Rights Reserved.