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.Object
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 Type Method Description BLStagingRepositoryUploadRequestParametersbuild()Builds a newBLStagingRepositoryUploadRequestParameters.BLStagingRepositoryUploadRequestParameters.Builderfrom(BLStagingRepositoryUploadRequestParametersType instance)Fill a builder with attribute values from the providedBLStagingRepositoryUploadRequestParametersTypeinstance.BLStagingRepositoryUploadRequestParameters.BuildersetBaseDirectory(java.nio.file.Path baseDirectory)Initializes the value for thebaseDirectoryattribute.BLStagingRepositoryUploadRequestParameters.BuildersetRepositoryId(java.lang.String repositoryId)Initializes the value for therepositoryIdattribute.BLStagingRepositoryUploadRequestParameters.BuildersetRetryCount(int retryCount)Initializes the value for theretryCountattribute.BLStagingRepositoryUploadRequestParameters.BuildersetRetryDelay(java.time.Duration retryDelay)Initializes the value for theretryDelayattribute.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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(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
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:
java.lang.IllegalStateException- if any required attributes are missing
-