Package com.io7m.brooklime.api
Class BLStagingRepositoryUpload.Builder
java.lang.Object
com.io7m.brooklime.api.BLStagingRepositoryUpload.Builder
- Enclosing class:
BLStagingRepositoryUpload
Builds instances of type
BLStagingRepositoryUpload.
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 TypeMethodDescriptionaddAllFiles(Iterable<? extends Path> elements) Adds elements tofileslist.Adds one element tofileslist.Adds elements tofileslist.build()Builds a newBLStagingRepositoryUpload.from(BLStagingRepositoryUploadType instance) Fill a builder with attribute values from the providedBLStagingRepositoryUploadTypeinstance.setBaseDirectory(Path baseDirectory) Initializes the value for thebaseDirectoryattribute.Sets or replaces all elements forfileslist.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
Fill a builder with attribute values from the providedBLStagingRepositoryUploadTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setRepositoryId
Initializes the value for therepositoryIdattribute.- Parameters:
repositoryId- The value for repositoryId- Returns:
thisbuilder for use in a chained invocation
-
setBaseDirectory
Initializes the value for thebaseDirectoryattribute.- Parameters:
baseDirectory- The value for baseDirectory- Returns:
thisbuilder for use in a chained invocation
-
addFiles
Adds one element tofileslist.- Parameters:
element- A files element- Returns:
thisbuilder for use in a chained invocation
-
addFiles
Adds elements tofileslist.- Parameters:
elements- An array of files elements- Returns:
thisbuilder for use in a chained invocation
-
setFiles
Sets or replaces all elements forfileslist.- Parameters:
elements- An iterable of files elements- Returns:
thisbuilder for use in a chained invocation
-
addAllFiles
Adds elements tofileslist.- Parameters:
elements- An iterable of files elements- 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 newBLStagingRepositoryUpload.- Returns:
- An immutable instance of BLStagingRepositoryUpload
- Throws:
IllegalStateException- if any required attributes are missing
-