Package com.io7m.brooklime.api
Class BLStagingRepositoryUploadRequestParameters.Builder
- java.lang.Object
-
- com.io7m.brooklime.api.BLStagingRepositoryUploadRequestParameters.Builder
-
- Enclosing class:
- BLStagingRepositoryUploadRequestParameters
public static final class BLStagingRepositoryUploadRequestParameters.Builder extends java.lang.ObjectBuilds instances of typeBLStagingRepositoryUploadRequestParameters. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
-
-
-
Method Detail
-
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(java.lang.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(java.nio.file.Path baseDirectory)
Initializes the value for thebaseDirectoryattribute.- Parameters:
baseDirectory- The value for baseDirectory- Returns:
thisbuilder for use in a chained invocation
-
setRetryDelay
public final BLStagingRepositoryUploadRequestParameters.Builder setRetryDelay(java.time.Duration retryDelay)
Initializes the value for theretryDelayattribute.- Parameters:
retryDelay- The value for retryDelay- Returns:
thisbuilder for use in a chained invocation
-
setRetryCount
public final BLStagingRepositoryUploadRequestParameters.Builder setRetryCount(int retryCount)
Initializes the value for theretryCountattribute.- Parameters:
retryCount- The value for retryCount- Returns:
thisbuilder for use in a chained invocation
-
build
public BLStagingRepositoryUploadRequestParameters build()
Builds a newBLStagingRepositoryUploadRequestParameters.- Returns:
- An immutable instance of BLStagingRepositoryUploadRequestParameters
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
-