Package com.io7m.brooklime.api
Class BLNexusClientConfiguration.Builder
java.lang.Object
com.io7m.brooklime.api.BLNexusClientConfiguration.Builder
- Enclosing class:
BLNexusClientConfiguration
Builds instances of type
BLNexusClientConfiguration.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newBLNexusClientConfiguration.from(BLNexusClientConfigurationType instance) Fill a builder with attribute values from the providedBLNexusClientConfigurationTypeinstance.setApplicationVersion(BLApplicationVersion applicationVersion) Initializes the value for theapplicationVersionattribute.setBaseURI(URI baseURI) Initializes the value for thebaseURIattribute.setPassword(String password) Initializes the value for thepasswordattribute.setRetryCount(int retryCount) Initializes the value for theretryCountattribute.setRetryDelay(Duration retryDelay) Initializes the value for theretryDelayattribute.setStagingProfileId(String stagingProfileId) Initializes the value for thestagingProfileIdattribute.setUserName(String userName) Initializes the value for theuserNameattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedBLNexusClientConfigurationTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setApplicationVersion
public final BLNexusClientConfiguration.Builder setApplicationVersion(BLApplicationVersion applicationVersion) Initializes the value for theapplicationVersionattribute.- Parameters:
applicationVersion- The value for applicationVersion- Returns:
thisbuilder for use in a chained invocation
-
setUserName
Initializes the value for theuserNameattribute.- Parameters:
userName- The value for userName- Returns:
thisbuilder for use in a chained invocation
-
setPassword
Initializes the value for thepasswordattribute.- Parameters:
password- The value for password- Returns:
thisbuilder for use in a chained invocation
-
setStagingProfileId
Initializes the value for thestagingProfileIdattribute.- Parameters:
stagingProfileId- The value for stagingProfileId- Returns:
thisbuilder for use in a chained invocation
-
setBaseURI
Initializes the value for thebaseURIattribute.If not set, this attribute will have a default value as returned by the initializer of
baseURI.- Parameters:
baseURI- The value for baseURI- Returns:
thisbuilder for use in a chained invocation
-
setRetryDelay
Initializes the value for theretryDelayattribute.- Parameters:
retryDelay- The value for retryDelay- Returns:
thisbuilder for use in a chained invocation
-
setRetryCount
Initializes the value for theretryCountattribute.- Parameters:
retryCount- The value for retryCount- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBLNexusClientConfiguration.- Returns:
- An immutable instance of BLNexusClientConfiguration
- Throws:
IllegalStateException- if any required attributes are missing
-