Package com.exasol.bucketfs.jsonrpc
Class CreateBucketCommand.CreateBucketCommandBuilder
- java.lang.Object
-
- com.exasol.bucketfs.jsonrpc.CreateBucketCommand.CreateBucketCommandBuilder
-
- Enclosing class:
- CreateBucketCommand
public static final class CreateBucketCommand.CreateBucketCommandBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateBucketCommand.CreateBucketCommandBuilderbucketFsName(String bucketFsName)Set the name of the BucketFS in which to create the bucket, e.g.CreateBucketCommand.CreateBucketCommandBuilderbucketName(String bucketName)Set the name of bucket to create.voidexecute()Create a new bucket using the configured values.CreateBucketCommand.CreateBucketCommandBuilderisPublic(boolean isPublic)Define if the new bucket should be public or not.CreateBucketCommand.CreateBucketCommandBuilderreadPassword(String readPassword)Set the read password for the new bucket.CreateBucketCommand.CreateBucketCommandBuilderwritePassword(String writePassword)Set the write password for the new bucket.
-
-
-
Method Detail
-
bucketFsName
public CreateBucketCommand.CreateBucketCommandBuilder bucketFsName(String bucketFsName)
Set the name of the BucketFS in which to create the bucket, e.g."bfsdefault".- Parameters:
bucketFsName- name of the BucketFS in which to create the bucket- Returns:
- this instance for method chaining
-
bucketName
public CreateBucketCommand.CreateBucketCommandBuilder bucketName(String bucketName)
Set the name of bucket to create.- Parameters:
bucketName- name of bucket to create- Returns:
- this instance for method chaining
-
isPublic
public CreateBucketCommand.CreateBucketCommandBuilder isPublic(boolean isPublic)
Define if the new bucket should be public or not. Defaults tofalse.- Parameters:
isPublic-trueif the bucket should be public, elsefalse(default)- Returns:
- this instance for method chaining
-
readPassword
public CreateBucketCommand.CreateBucketCommandBuilder readPassword(String readPassword)
Set the read password for the new bucket.- Parameters:
readPassword- read password ornullfor no read password (default)- Returns:
- this instance for method chaining
-
writePassword
public CreateBucketCommand.CreateBucketCommandBuilder writePassword(String writePassword)
Set the write password for the new bucket.- Parameters:
writePassword- write password ornullfor no write password (default)- Returns:
- this instance for method chaining
-
execute
public void execute()
Create a new bucket using the configured values.- Throws:
NullPointerException- in case mandatory fields are not defined
-
-