Class CreateBucketRequest


  • public class CreateBucketRequest
    extends AbstractBucketRequest
    Encapsulates parameters for a create bucket request.
    • Constructor Detail

      • CreateBucketRequest

        public CreateBucketRequest​(java.lang.String bucketName)
    • Method Detail

      • getHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> getHeaders()
        Description copied from class: ObjectRequest
        Override to return request-specific headers based on properties of the request. Always call super() first and modify the result.
        Overrides:
        getHeaders in class ObjectRequest
      • getCannedAcl

        public CannedAcl getCannedAcl()
      • setCannedAcl

        public void setCannedAcl​(CannedAcl cannedAcl)
      • getvPoolId

        public java.lang.String getvPoolId()
      • setvPoolId

        public void setvPoolId​(java.lang.String vPoolId)
      • getFileSystemEnabled

        public java.lang.Boolean getFileSystemEnabled()
      • setFileSystemEnabled

        public void setFileSystemEnabled​(java.lang.Boolean fileSystemEnabled)
        Sets whether the bucket can be access via filesystem (i.e. HDFS). This will enable some internal semantics for directories and may affect other features (i.e. TSO support)
      • getStaleReadAllowed

        public java.lang.Boolean getStaleReadAllowed()
      • getEncryptionEnabled

        public java.lang.Boolean getEncryptionEnabled()
      • setEncryptionEnabled

        public void setEncryptionEnabled​(java.lang.Boolean encryptionEnabled)
        Enables transparent server-side encryption (D@RE) on the bucket. This can only be enabled at create time
      • getRetentionPeriod

        public java.lang.Long getRetentionPeriod()
      • setRetentionPeriod

        public void setRetentionPeriod​(java.lang.Long retentionPeriod)
        Enables a default retention period that will be applied to all objects created in the bucket
        Parameters:
        retentionPeriod - The default number of seconds each object will be in retention after creation
      • setMetadataSearchKeys

        public void setMetadataSearchKeys​(java.util.List<MetadataSearchKey> metadataSearchKeys)
        Assigns a list of system- and user-metadata keynames that can be used later in bucket searches for the purpose of filtering object lists based querying these keys.
        Parameters:
        metadataSearchKeys - The set of keys to index.
      • getObjectLockEnabled

        public boolean getObjectLockEnabled()
      • setObjectLockEnabled

        public void setObjectLockEnabled​(boolean objectLockEnabled)
        Sets whether S3 Object Lock will be enabled for the new bucket.
      • withFileSystemEnabled

        public CreateBucketRequest withFileSystemEnabled​(boolean fileSystemEnabled)
      • withStaleReadAllowed

        public CreateBucketRequest withStaleReadAllowed​(boolean staleReadAllowed)
      • withEncryptionEnabled

        public CreateBucketRequest withEncryptionEnabled​(java.lang.Boolean encryptionEnabled)
      • withRetentionPeriod

        public CreateBucketRequest withRetentionPeriod​(long retentionPeriod)
      • withObjectLockEnabled

        public CreateBucketRequest withObjectLockEnabled​(boolean objectLockEnabled)