Package com.io7m.brooklime.api
Class BLStagingRepositoryUploadRequestParameters
java.lang.Object
com.io7m.brooklime.api.BLStagingRepositoryUploadRequestParameters
- All Implemented Interfaces:
BLStagingRepositoryUploadRequestParametersType
public final class BLStagingRepositoryUploadRequestParameters
extends Object
implements BLStagingRepositoryUploadRequestParametersType
A request to schedule the upload of a set of files to a staging repository.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBLStagingRepositoryUploadRequestParameters. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forBLStagingRepositoryUploadRequestParameters.Creates an immutable copy of aBLStagingRepositoryUploadRequestParametersTypevalue.booleanThis instance is equal to all instances ofBLStagingRepositoryUploadRequestParametersthat have equal attribute values.inthashCode()Computes a hash code from attributes:repositoryId,baseDirectory,retryDelay,retryCount.inttoString()Prints the immutable valueBLStagingRepositoryUploadRequestParameterswith attribute values.withBaseDirectory(Path value) Copy the current immutable object by setting a value for thebaseDirectoryattribute.withRepositoryId(String value) Copy the current immutable object by setting a value for therepositoryIdattribute.withRetryCount(int value) Copy the current immutable object by setting a value for theretryCountattribute.withRetryDelay(Duration value) Copy the current immutable object by setting a value for theretryDelayattribute.
-
Method Details
-
repositoryId
- Specified by:
repositoryIdin interfaceBLStagingRepositoryUploadRequestParametersType- Returns:
- The ID of the staging repository
-
baseDirectory
- Specified by:
baseDirectoryin interfaceBLStagingRepositoryUploadRequestParametersType- Returns:
- The base directory containing files
-
retryDelay
- Specified by:
retryDelayin interfaceBLStagingRepositoryUploadRequestParametersType- Returns:
- The duration by which to pause between failed upload attempts
-
retryCount
public int retryCount()- Specified by:
retryCountin interfaceBLStagingRepositoryUploadRequestParametersType- Returns:
- The maximum number of times to retry uploading any given file
-
withRepositoryId
Copy the current immutable object by setting a value for therepositoryIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repositoryId- Returns:
- A modified copy of the
thisobject
-
withBaseDirectory
Copy the current immutable object by setting a value for thebaseDirectoryattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for baseDirectory- Returns:
- A modified copy of the
thisobject
-
withRetryDelay
Copy the current immutable object by setting a value for theretryDelayattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for retryDelay- Returns:
- A modified copy of the
thisobject
-
withRetryCount
Copy the current immutable object by setting a value for theretryCountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for retryCount- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofBLStagingRepositoryUploadRequestParametersthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:repositoryId,baseDirectory,retryDelay,retryCount. -
toString
Prints the immutable valueBLStagingRepositoryUploadRequestParameterswith attribute values. -
copyOf
public static BLStagingRepositoryUploadRequestParameters copyOf(BLStagingRepositoryUploadRequestParametersType instance) Creates an immutable copy of aBLStagingRepositoryUploadRequestParametersTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable BLStagingRepositoryUploadRequestParameters instance
-
builder
Creates a builder forBLStagingRepositoryUploadRequestParameters.BLStagingRepositoryUploadRequestParameters.builder() .setRepositoryId(String) // requiredrepositoryId.setBaseDirectory(java.nio.file.Path) // requiredbaseDirectory.setRetryDelay(java.time.Duration) // requiredretryDelay.setRetryCount(int) // requiredretryCount.build();- Returns:
- A new BLStagingRepositoryUploadRequestParameters builder
-