Class SCBClientBuilder
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.SCBClientBuilder
-
public class SCBClientBuilder extends Object
Builder class for constructing new clients.
- Since:
- 1.2.0
-
-
Constructor Summary
Constructors Constructor Description SCBClientBuilder()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SCBClient
build()
Generates aSCBClient
with the previously assigned parameters.SCBClientBuilder
setCommunicationProtocol(CommunicationProtocol communicationProtocol)
Sets theCommunicationProtocol
for this builder, and therefore the client generated from this builder.SCBClientBuilder
setLocale(Locale locale)
Sets theLocale
for this builder, and therefore the client generated from this builder.
-
-
-
Method Detail
-
setLocale
public SCBClientBuilder setLocale(Locale locale)
Sets the
Locale
for this builder, and therefore the client generated from this builder.- Parameters:
locale
- theLocale
to use- Returns:
- the instance of this builder
-
setCommunicationProtocol
public SCBClientBuilder setCommunicationProtocol(CommunicationProtocol communicationProtocol)
Sets the
CommunicationProtocol
for this builder, and therefore the client generated from this builder.- Parameters:
communicationProtocol
- theCommunicationProtocol
to use- Returns:
- the instance of this builder
-
-