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 SCBClientbuild()Generates aSCBClientwith the previously assigned parameters.SCBClientBuildersetCommunicationProtocol(CommunicationProtocol communicationProtocol)Sets theCommunicationProtocolfor this builder, and therefore the client generated from this builder.SCBClientBuildersetLocale(Locale locale)Sets theLocalefor this builder, and therefore the client generated from this builder.
-
-
-
Method Detail
-
setLocale
public SCBClientBuilder setLocale(Locale locale)
Sets the
Localefor this builder, and therefore the client generated from this builder.- Parameters:
locale- theLocaleto use- Returns:
- the instance of this builder
-
setCommunicationProtocol
public SCBClientBuilder setCommunicationProtocol(CommunicationProtocol communicationProtocol)
Sets the
CommunicationProtocolfor this builder, and therefore the client generated from this builder.- Parameters:
communicationProtocol- theCommunicationProtocolto use- Returns:
- the instance of this builder
-
-