public class GluonClientBuilder
extends java.lang.Object
GluonClient instances.| Modifier | Constructor and Description |
|---|---|
protected |
GluonClientBuilder()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GluonClientBuilder |
authenticationMode(AuthenticationMode authenticationMode)
Set the value of the authentication mode for the GluonClient instance constructed by this builder.
|
GluonClient |
build()
Make an instance of GluonClient based on the properties set on this builder.
|
static GluonClientBuilder |
create()
Create a new instance of GluonClientBuilder that can be used to build instances of GluonClient.
|
GluonClientBuilder |
credentials(GluonCredentials credentials)
Set the value of the credentials for the GluonClient instance constructed by this builder.
|
GluonClientBuilder |
host(java.lang.String host)
Sets the value of the hostname for the GluonClient instance constructed by this builder.
|
GluonClientBuilder |
operationMode(OperationMode operationMode)
Set the value of the operation mode for the GluonClient instance constructed by this builder.
|
public static GluonClientBuilder create()
public GluonClientBuilder host(java.lang.String host)
When the provided host doesn't start with http, the host parameter will be prepended with
http://. When the provided host ends with a slash, that slash will be removed.
host - the name of the host to use when connecting with Gluon CloudLink.GluonClient.getHost()public GluonClientBuilder credentials(GluonCredentials credentials)
credentials - the credentials used for authorizing with Gluon CloudLink.GluonClient.getCredentials()public GluonClientBuilder authenticationMode(AuthenticationMode authenticationMode)
AuthenticationMode.PUBLIC.authenticationMode - the authentication mode used when working with data from Gluon CloudLinkGluonClient.getAuthenticationMode()public GluonClientBuilder operationMode(OperationMode operationMode)
OperationMode.CLOUD_FIRST.operationMode - the operation mode used when working with dataGluonClient.getOperationMode()public GluonClient build()