public class DataClientBuilder
extends java.lang.Object
DataClient
instances.Modifier | Constructor and Description |
---|---|
protected |
DataClientBuilder()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
DataClientBuilder |
authenticateWith(UserClient userClient)
Specifies that authentication should be enabled for the DataClient instance that will be constructed
by this builder.
|
DataClient |
build()
Make an instance of DataClient based on the properties set on this builder.
|
static DataClientBuilder |
create()
Create a new instance of DataClientBuilder that can be used to build instances of DataClient.
|
DataClientBuilder |
operationMode(OperationMode operationMode)
Set the value of the operation mode for the DataClient instance constructed by this builder.
|
public static DataClientBuilder create()
public DataClientBuilder authenticateWith(UserClient userClient)
userClient
- the instance of the UserClient to use for authenticationpublic DataClientBuilder operationMode(OperationMode operationMode)
OperationMode.CLOUD_FIRST
.operationMode
- the operation mode used when working with dataDataClient.getOperationMode()
public DataClient build()