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 Details

    • from

      @CanIgnoreReturnValue public final ImmutablePageSortingOrder.Builder<P> from(PageQuery.PageSortingOrder<P> instance)
      Fill a builder with attribute values from the provided PageSortingOrder instance. 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:
      this builder for use in a chained invocation
    • direction

      @CanIgnoreReturnValue public final ImmutablePageSortingOrder.Builder<P> direction(PageQuery.PageSortDirection direction)
      Initializes the value for the direction attribute.
      Parameters:
      direction - The value for direction
      Returns:
      this builder for use in a chained invocation
    • property

      @CanIgnoreReturnValue public final ImmutablePageSortingOrder.Builder<P> property(P property)
      Initializes the value for the property attribute.
      Parameters:
      property - The value for property
      Returns:
      this builder for use in a chained invocation
    • propertyType

      @CanIgnoreReturnValue public final ImmutablePageSortingOrder.Builder<P> propertyType(@Nullable String propertyType)
      Initializes the value for the propertyType attribute.
      Parameters:
      propertyType - The value for propertyType (can be null)
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutablePageSortingOrder<P> build()
      Returns:
      An immutable instance of PageSortingOrder
      Throws:
      IllegalStateException - if any required attributes are missing