public class ObsBucket extends S3Bucket
Buckets in OBS
  • 构造器详细资料

    • ObsBucket

      public ObsBucket()
    • ObsBucket

      public ObsBucket(String bucketName, String location)
      Constructor
      参数:
      bucketName - Bucket name
      location - Bucket location
  • 方法详细资料

    • getBucketName

      public String getBucketName()
      Obtain the bucket name.
      覆盖:
      getBucketName 在类中 S3Bucket
      返回:
      Bucket name
    • setBucketName

      public void setBucketName(String bucketName)
      Set the bucket name. The value can contain only lowercase letters, digits, hyphens (-), and periods (.).
      覆盖:
      setBucketName 在类中 S3Bucket
      参数:
      bucketName - Bucket name
    • getOwner

      public Owner getOwner()
      Obtain the owner of the bucket.
      覆盖:
      getOwner 在类中 S3Bucket
      返回:
      Owner of the bucket
    • setOwner

      public void setOwner(Owner bucketOwner)
      Set the owner of the bucket.
      覆盖:
      setOwner 在类中 S3Bucket
      参数:
      bucketOwner - Owner of the bucket
    • getCreationDate

      public Date getCreationDate()
      Obtain the creation time of the bucket.
      覆盖:
      getCreationDate 在类中 S3Bucket
      返回:
      Creation time of the bucket
    • setCreationDate

      public void setCreationDate(Date bucketCreationDate)
      Set the creation time of the bucket.
      覆盖:
      setCreationDate 在类中 S3Bucket
      参数:
      bucketCreationDate - Creation time of the bucket
    • getMetadata

      @Deprecated public Map<String,Object> getMetadata()
      已过时。
      Obtain bucket properties.
      覆盖:
      getMetadata 在类中 S3Bucket
      返回:
      Bucket properties
    • setMetadata

      @Deprecated public void setMetadata(Map<String,Object> metadata)
      已过时。
      Set bucket properties.
      覆盖:
      setMetadata 在类中 S3Bucket
      参数:
      metadata - Bucket properties
    • getLocation

      public String getLocation()
      Obtain the bucket location.
      覆盖:
      getLocation 在类中 S3Bucket
      返回:
      Bucket location
    • setLocation

      public void setLocation(String location)
      Set the bucket location.
      覆盖:
      setLocation 在类中 S3Bucket
      参数:
      location - Bucket location. This parameter is mandatory unless the endpoint belongs to the default region.
    • getAcl

      public AccessControlList getAcl()
      Obtain the bucket ACL.
      覆盖:
      getAcl 在类中 S3Bucket
      返回:
      Bucket ACL
    • setAcl

      public void setAcl(AccessControlList acl)
      Set the bucket ACL.
      覆盖:
      setAcl 在类中 S3Bucket
      参数:
      acl - Bucket ACL
    • getStorageClass

      @Deprecated public String getStorageClass()
      已过时。
      Obtain the bucket storage class.
      覆盖:
      getStorageClass 在类中 S3Bucket
      返回:
      Bucket storage class
    • setStorageClass

      @Deprecated public void setStorageClass(String storageClass)
      已过时。
      Set the bucket storage class.
      覆盖:
      setStorageClass 在类中 S3Bucket
      参数:
      storageClass - Bucket storage class
    • getBucketType

      public BucketTypeEnum getBucketType()
    • setBucketType

      public void setBucketType(BucketTypeEnum bucketTypeEnum)
    • getBucketStorageClass

      public StorageClassEnum getBucketStorageClass()
      覆盖:
      getBucketStorageClass 在类中 S3Bucket
    • setBucketStorageClass

      public void setBucketStorageClass(StorageClassEnum storageClass)
      Set the bucket storage class.
      覆盖:
      setBucketStorageClass 在类中 S3Bucket
      参数:
      storageClass - Bucket storage class
    • toString

      public String toString()
      覆盖:
      toString 在类中 S3Bucket