Class Latest.Builder

java.lang.Object
All Implemented Interfaces:
WithJson<Latest.Builder>, ObjectBuilder<Latest>
Enclosing class:
Latest

public static class Latest.Builder
extends WithJsonObjectBuilderBase<Latest.Builder>
implements ObjectBuilder<Latest>
Builder for Latest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • sort

      public final Latest.Builder sort​(java.lang.String value)
      Required - Specifies the date field that is used to identify the latest documents.

      API name: sort

    • uniqueKey

      public final Latest.Builder uniqueKey​(java.util.List<java.lang.String> list)
      Required - Specifies an array of one or more fields that are used to group the data.

      API name: unique_key

      Adds all elements of list to uniqueKey.

    • uniqueKey

      public final Latest.Builder uniqueKey​(java.lang.String value, java.lang.String... values)
      Required - Specifies an array of one or more fields that are used to group the data.

      API name: unique_key

      Adds one or more values to uniqueKey.

    • self

      protected Latest.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<Latest.Builder>
    • build

      public Latest build()
      Builds a Latest.
      Specified by:
      build in interface ObjectBuilder<Latest>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.