Package com.google.cloud.hadoop.gcsio
Class CreateBucketOptions
- java.lang.Object
-
- com.google.cloud.hadoop.gcsio.CreateBucketOptions
-
public abstract class CreateBucketOptions extends Object
Options that can be specified when creating a bucket in theGoogleCloudStorage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateBucketOptions.BuilderBuilder forCreateBucketOptions
-
Field Summary
Fields Modifier and Type Field Description static CreateBucketOptionsDEFAULTCreate bucket with all default settings.
-
Constructor Summary
Constructors Constructor Description CreateBucketOptions()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CreateBucketOptions.Builderbuilder()abstract booleangetHierarchicalNamespaceEnabled()abstract StringgetLocation()Returns the bucket location.abstract StringgetStorageClass()Returns the bucket storage class.abstract DurationgetTtl()Returns the bucket retention period.abstract CreateBucketOptions.BuildertoBuilder()
-
-
-
Field Detail
-
DEFAULT
public static final CreateBucketOptions DEFAULT
Create bucket with all default settings.
-
-
Method Detail
-
builder
public static CreateBucketOptions.Builder builder()
-
toBuilder
public abstract CreateBucketOptions.Builder toBuilder()
-
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.
-
-