Class PutObjectBaseArguments

All Implemented Interfaces:
cn.herodotus.engine.assistant.definition.domain.base.Entity, OssArguments, Serializable
Direct Known Subclasses:
PutObjectArguments, UploadObjectArguments

public abstract class PutObjectBaseArguments extends ObjectWriteArguments

Description: 基础 PutObjectBase 请求参数实体

Author:
: gengwei.zheng
See Also:
Date:
: 2023/8/15 15:16
  • Field Details

    • objectSize

      @NotNull(message="\u5fc5\u987b\u8bbe\u7f6e\u5bf9\u8c61\u5927\u5c0f") @Max(value=5497558138880L, message="\u5bf9\u8c61\u5141\u8bb8\u7684\u6700\u5927 Size \u4e3a 5TiB") protected @NotNull(message="\u5fc5\u987b\u8bbe\u7f6e\u5bf9\u8c61\u5927\u5c0f") @Max(value=5497558138880L,message="\u5bf9\u8c61\u5141\u8bb8\u7684\u6700\u5927 Size \u4e3a 5TiB") Long objectSize
      Sets stream to upload. Two ways to provide object/part sizes. If object size is unknown, pass -1 to objectSize and pass valid partSize. If object size is known, pass -1 to partSize for auto detect; else pass valid partSize to control memory usage and no. of parts in upload. If partSize is greater than objectSize, objectSize is used as partSize. A valid part size is between 5MiB to 5GiB (both limits inclusive).
    • partSize

      @Min(value=5242880L, message="\u5206\u7247\u6700\u5c0fSize\u4e0d\u80fd\u5c0f\u4e8e 5MiB") @Max(value=5368709120L, message="\u5206\u7247\u6700\u5c0fSize\u4e0d\u80fd\u8d85\u8fc7 is 5GiB ") protected @Min(value=5242880L,message="\u5206\u7247\u6700\u5c0fSize\u4e0d\u80fd\u5c0f\u4e8e 5MiB") @Max(value=5368709120L,message="\u5206\u7247\u6700\u5c0fSize\u4e0d\u80fd\u8d85\u8fc7 is 5GiB ") Long partSize
    • contentType

      protected String contentType
  • Constructor Details

    • PutObjectBaseArguments

      public PutObjectBaseArguments()
  • Method Details

    • getObjectSize

      public Long getObjectSize()
    • setObjectSize

      public void setObjectSize(Long objectSize)
    • getPartSize

      public Long getPartSize()
    • setPartSize

      public void setPartSize(Long partSize)
    • getContentType

      public String getContentType()
    • setContentType

      public void setContentType(String contentType)