Package io.resys.thena.api.entities
Class ImmutablePageSortingOrder.Builder<P>
java.lang.Object
io.resys.thena.api.entities.ImmutablePageSortingOrder.Builder<P>
- Enclosing class:
ImmutablePageSortingOrder<P>
@Generated(from="PageQuery.PageSortingOrder",
generator="Immutables")
public static final class ImmutablePageSortingOrder.Builder<P>
extends Object
Builds instances of type
ImmutablePageSortingOrder.
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 TypeMethodDescriptionbuild()Builds a newImmutablePageSortingOrder.direction(PageQuery.PageSortDirection direction) Initializes the value for thedirectionattribute.from(PageQuery.PageSortingOrder<P> instance) Fill a builder with attribute values from the providedPageSortingOrderinstance.Initializes the value for thepropertyattribute.propertyType(String propertyType) Initializes the value for thepropertyTypeattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutablePageSortingOrder.Builder<P> from(PageQuery.PageSortingOrder<P> instance) Fill a builder with attribute values from the providedPageSortingOrderinstance. 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
-
direction
@CanIgnoreReturnValue public final ImmutablePageSortingOrder.Builder<P> direction(PageQuery.PageSortDirection direction) Initializes the value for thedirectionattribute.- Parameters:
direction- The value for direction- Returns:
thisbuilder for use in a chained invocation
-
property
Initializes the value for thepropertyattribute.- Parameters:
property- The value for property- Returns:
thisbuilder for use in a chained invocation
-
propertyType
@CanIgnoreReturnValue public final ImmutablePageSortingOrder.Builder<P> propertyType(@Nullable String propertyType) Initializes the value for thepropertyTypeattribute.- Parameters:
propertyType- The value for propertyType (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutablePageSortingOrder.- Returns:
- An immutable instance of PageSortingOrder
- Throws:
IllegalStateException- if any required attributes are missing
-