Class CreateBucketCommand.CreateBucketCommandBuilder

    • 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
      • isPublic

        public CreateBucketCommand.CreateBucketCommandBuilder isPublic​(boolean isPublic)
        Define if the new bucket should be public or not. Defaults to false.
        Parameters:
        isPublic - true if the bucket should be public, else false (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 or null for 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 or null for 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