Class ImmutableSortRequestParametersDto.Builder
- java.lang.Object
-
- com.chutneytesting.server.core.domain.tools.ImmutableSortRequestParametersDto.Builder
-
- Enclosing class:
- ImmutableSortRequestParametersDto
@NotThreadSafe public static final class ImmutableSortRequestParametersDto.Builder extends Object
Builds instances of typeImmutableSortRequestParametersDto. 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableSortRequestParametersDtobuild()Builds a newImmutableSortRequestParametersDto.ImmutableSortRequestParametersDto.Builderdesc(String desc)Initializes the value for thedescattribute.ImmutableSortRequestParametersDto.Builderfrom(SortRequestParametersDto instance)Fill a builder with attribute values from the providedSortRequestParametersDtoinstance.ImmutableSortRequestParametersDto.Buildersort(String sort)Initializes the value for thesortattribute.
-
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final ImmutableSortRequestParametersDto.Builder from(SortRequestParametersDto instance)
Fill a builder with attribute values from the providedSortRequestParametersDtoinstance. 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
-
sort
@CanIgnoreReturnValue public final ImmutableSortRequestParametersDto.Builder sort(@Nullable String sort)
Initializes the value for thesortattribute.- Parameters:
sort- The value for sort (can benull)- Returns:
thisbuilder for use in a chained invocation
-
desc
@CanIgnoreReturnValue public final ImmutableSortRequestParametersDto.Builder desc(@Nullable String desc)
Initializes the value for thedescattribute.- Parameters:
desc- The value for desc (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableSortRequestParametersDto build()
Builds a newImmutableSortRequestParametersDto.- Returns:
- An immutable instance of SortRequestParametersDto
- Throws:
IllegalStateException- if any required attributes are missing
-
-