Class CreateBucketOptions


  • public abstract class CreateBucketOptions
    extends Object
    Options that can be specified when creating a bucket in the GoogleCloudStorage.
    • Field Detail

      • DEFAULT

        public static final CreateBucketOptions DEFAULT
        Create bucket with all default settings.
    • Constructor Detail

      • CreateBucketOptions

        public CreateBucketOptions()
    • Method Detail

      • getLocation

        @Nullable
        public abstract String getLocation()
        Returns the bucket location.
      • getStorageClass

        @Nullable
        public abstract String getStorageClass()
        Returns the bucket storage class.
      • getHierarchicalNamespaceEnabled

        public abstract boolean getHierarchicalNamespaceEnabled()
      • getTtl

        @Nullable
        public abstract Duration getTtl()
        Returns the bucket retention period.