Class ScimPaginationConfig.Builder
java.lang.Object
com.revetsec.scim.ScimPaginationConfig.Builder
- Enclosing class:
ScimPaginationConfig
@NotThreadSafe
@CheckReturnValue
public static final class ScimPaginationConfig.Builder
extends Object
Mutable, non-thread-safe pagination configuration; null restores the stated default.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Checks bounds and advertised method/timeout consistency and creates an immutable snapshot.cursorSupported(@Nullable Boolean value) Sets cursorSupported; null restores false.cursorTimeout(@Nullable Duration value) Sets cursorTimeout; null restores absent.Sets defaultMethod; null restores INDEX.defaultPageSize(@Nullable Integer value) Sets defaultPageSize; null restores 100.indexSupported(@Nullable Boolean value) Sets indexSupported; null restores true.maximumPageSize(@Nullable Integer value) Sets maximumPageSize; null restores 1000.
-
Method Details
-
indexSupported
Sets indexSupported; null restores true.- Parameters:
value- the setting, or null to restore its default- Returns:
- this builder
- Since:
- 1.0.0
-
cursorSupported
Sets cursorSupported; null restores false.- Parameters:
value- the setting, or null to restore its default- Returns:
- this builder
- Since:
- 1.0.0
-
defaultMethod
Sets defaultMethod; null restores INDEX.- Parameters:
value- the setting, or null to restore its default- Returns:
- this builder
- Since:
- 1.0.0
-
defaultPageSize
Sets defaultPageSize; null restores 100.- Parameters:
value- the setting, or null to restore its default- Returns:
- this builder
- Since:
- 1.0.0
-
maximumPageSize
Sets maximumPageSize; null restores 1000.- Parameters:
value- the setting, or null to restore its default- Returns:
- this builder
- Since:
- 1.0.0
-
cursorTimeout
Sets cursorTimeout; null restores absent.- Parameters:
value- the setting, or null to restore its default- Returns:
- this builder
- Since:
- 1.0.0
-
build
Checks bounds and advertised method/timeout consistency and creates an immutable snapshot.- Returns:
- pagination capabilities
- Since:
- 1.0.0
-