Class AllowanceSearch.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AllowanceSearch>
co.yellowdog.platform.interaction.usage.AllowanceSearch.Builder
- Enclosing class:
AllowanceSearch
-
Method Summary
Modifier and TypeMethodDescriptionallowedHours(IntegerRange allowedHours) Builds the object without enforcing validation constraints.description(String description) effectiveFrom(InstantRange effectiveFrom) effectiveUntil(InstantRange effectiveUntil) limitEnforcement(AllowanceLimitEnforcement limitEnforcement) sortDirection(SortDirection sortDirection) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<AllowanceSearch>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
sortField
- Returns:
this.
-
sortDirection
- Returns:
this.
-
description
- Returns:
this.
-
effectiveFrom
- Returns:
this.
-
effectiveUntil
- Returns:
this.
-
limitEnforcement
- Returns:
this.
-
allowedHours
- Returns:
this.
-
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUncheckedin classValidatedBuilder<AllowanceSearch>- Returns:
- the object being built
-
toString
-