类 FetchObjectRequest


  • public class FetchObjectRequest
    extends GenericObjectRequest
    Provides options for fetching an Baidu Bos object from url.

    All FetchObjectRequest must specify a sourceUrl and mode, along with a destination bucket and key.

    • 构造器详细资料

      • FetchObjectRequest

        public FetchObjectRequest​(String bucketName,
                                  String key,
                                  String sourceUrl)
        Constructs a new FetchObjectRequest with only basic options.
        参数:
        bucketName - The name of the Bos bucket to which the new object will be fetched.
        key - The destination bucket key under which the new object will be fetched.
        sourceUrl - The name of the Bos bucket containing the object to fetch.
    • 方法详细资料

      • getSourceUrl

        public String getSourceUrl()
        Gets the url string of the sourceUrl to be fetched.
        返回:
        The url string of the sourceUrl to be fetched.
      • setSourceUrl

        public void setSourceUrl​(String sourceUrl)
        Sets the url string of the sourceUrl to be fetched.
        参数:
        sourceUrl - The url string of the sourceUrl to be fetched.
      • withSourceUrl

        public FetchObjectRequest withSourceUrl​(String sourceUrl)
        Sets the url string of the sourceUrl to be fetched, and returns this object, enabling additional method calls to be chained together.
        参数:
        sourceUrl - The url string of the sourceUrl to be fetched.
        返回:
        This FetchObjectRequest instance, enabling additional method calls to be chained together.
      • getMode

        public String getMode()
        Gets the mode of this fetching job.
        返回:
        The mode of this fetching job.
      • setMode

        public void setMode​(String mode)
        Sets the mode of this fetching job.
        参数:
        mode - The mode of this fetching job.
      • withMode

        public FetchObjectRequest withMode​(String mode)
        Sets the mode of this fetching job, enabling additional method calls to be chained together.
        参数:
        mode - The mode of this fetching job.
        返回:
        This FetchObjectRequest instance, enabling additional method calls to be chained together.
      • withBucketName

        public FetchObjectRequest withBucketName​(String bucketName)
        Sets the name of the destination bucket which will contain the new, fetched object and returns this object, enabling additional method calls to be chained together.
        指定者:
        withBucketName 在类中 GenericBucketRequest
        参数:
        bucketName - The name of the destination bucket which will contain the new object of fetching job.
        返回:
        This FetchObjectRequest, enabling additional method calls to be chained together.
      • withKey

        public FetchObjectRequest withKey​(String key)
        Sets the destination bucket key under which the new, fetched object will be stored and returns this object, enabling additional method calls can be chained together.
        指定者:
        withKey 在类中 GenericObjectRequest
        参数:
        key - The destination bucket key under which the new, fetched object will be stored.
        返回:
        This FetchObjectRequest, enabling additional method calls to be chained together.
      • getStorageClass

        public String getStorageClass()
        Gets the storageClass of the input file which is to be fetched to Baidu Bos.
        返回:
        storageClass The storageClass is an identification that distinguish between infrequent access bos and standard bos.
      • setStorageClass

        public void setStorageClass​(String storageClass)
        Sets the storageClass of the input file which is to be fetched to Baidu Bos.
        参数:
        storageClass - The storageClass is an identification that distinguish between infrequent access bos and standard bos.
      • withStorageClass

        public FetchObjectRequest withStorageClass​(String storageClass)
        Sets the storageClass of the input file which is to be fetched to Baidu Bos.
        参数:
        storageClass - The StorageClass is an identification that distinguish between infrequent access bos and standard bos.
        返回:
        This FetchObjectRequest, so that additional method calls can be chained together.
      • getCallbackAddress

        public String getCallbackAddress()
      • setCallbackAddress

        public void setCallbackAddress​(String callbackAddress)
      • getReferer

        public String getReferer()
      • setReferer

        public void setReferer​(String referer)
      • getUserAgent

        public String getUserAgent()
      • setUserAgent

        public void setUserAgent​(String userAgent)