public class GluonClientBuilder
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
GluonClientBuilder()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
GluonClient |
build()
Make an instance of GluonClient based on the properties set on this
builder.
|
static GluonClientBuilder |
create()
Create a new instance of GluonClientBuilder
|
GluonClientBuilder |
credentials(GluonCredentials credentials)
Set the value of the credentials for the GluonClient instance constructed
by this builder.
|
GluonClientBuilder |
host(java.lang.String host)
Set the value of the hostname for the GluonClient instance constructed by
this builder.
|
public static GluonClientBuilder create()
public GluonClientBuilder host(java.lang.String host)
http
, the string http://
will be prepended.
When the provided host ends with a slash, it will be removed.host
- the name of the host to use when connecting with Gluon Cloud.public GluonClientBuilder credentials(GluonCredentials credentials)
credentials
- the credentials used for authorizing with Gluon Cloud.public GluonClient build()