API Docs for: 2.2.2
Show:

ResetBucketProps.Builder Class

A builder for constructing ResetBucketProps instances.

Rather than having to manually construct the options and instantiating a ResetBucketProps directly, this builder may be used.

var fetchValue = new ResetBucketProps.Builder()
     .withBucketType('myBucketType')
     .withBucket('myBucket')
     .build();

Constructor

ResetBucketProps.Builder

()

Methods

build

() ResetBucketProps

Construct a ResetBucketProps command.

Returns:

withBucket

(
  • bucket
)
chainable

Set the bucket.

Parameters:

  • bucket String

    the bucket in Riak

withBucketType

(
  • bucketType
)
chainable

Set the bucket type. If not supplied, 'default' is used.

Parameters:

  • bucketType String

    the bucket type in riak

withCallback

(
  • callback
)
chainable

Set the callback to be executed when the operation completes.

Parameters:

  • callback Function

    The callback to be executed when the operation completes.

    • err String

      An error message. Will ne null if no error.

    • response Object

      the response from Riak.

      • preflist Object
        An array of one or more preflist items.