Package com.io7m.brooklime.api
Class BLStagingRepositoryUploadRequestParameters.Builder
java.lang.Object
com.io7m.brooklime.api.BLStagingRepositoryUploadRequestParameters.Builder
- Enclosing class:
BLStagingRepositoryUploadRequestParameters
Builds instances of type
BLStagingRepositoryUploadRequestParameters.
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 newBLStagingRepositoryUploadRequestParameters.Fill a builder with attribute values from the providedBLStagingRepositoryUploadRequestParametersTypeinstance.setBaseDirectory(Path baseDirectory) Initializes the value for thebaseDirectoryattribute.setRepositoryId(String repositoryId) Initializes the value for therepositoryIdattribute.setRetryCount(int retryCount) Initializes the value for theretryCountattribute.setRetryDelay(Duration retryDelay) Initializes the value for theretryDelayattribute.
-
Method Details
-
from
public final BLStagingRepositoryUploadRequestParameters.Builder from(BLStagingRepositoryUploadRequestParametersType instance) Fill a builder with attribute values from the providedBLStagingRepositoryUploadRequestParametersTypeinstance. 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
-
setRepositoryId
public final BLStagingRepositoryUploadRequestParameters.Builder setRepositoryId(String repositoryId) Initializes the value for therepositoryIdattribute.- Parameters:
repositoryId- The value for repositoryId- Returns:
thisbuilder for use in a chained invocation
-
setBaseDirectory
public final BLStagingRepositoryUploadRequestParameters.Builder setBaseDirectory(Path baseDirectory) Initializes the value for thebaseDirectoryattribute.- Parameters:
baseDirectory- The value for baseDirectory- 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 newBLStagingRepositoryUploadRequestParameters.- Returns:
- An immutable instance of BLStagingRepositoryUploadRequestParameters
- Throws:
IllegalStateException- if any required attributes are missing
-