Class Latest.Builder

java.lang.Object
co.elastic.clients.elasticsearch.transform.Latest.Builder
All Implemented Interfaces:
ObjectBuilder<Latest>
Enclosing class:
Latest

public static class Latest.Builder
extends java.lang.Object
implements ObjectBuilder<Latest>
Builder for Latest.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    Latest.Builder addUniqueKey​(java.lang.String value)
    Add a value to uniqueKey(List), creating the list if needed.
    Latest build()
    Builds a Latest.
    Latest.Builder sort​(java.lang.String value)
    Specifies the date field that is used to identify the latest documents.
    Latest.Builder uniqueKey​(java.lang.String... value)
    Specifies an array of one or more fields that are used to group the data.
    Latest.Builder uniqueKey​(java.util.List<java.lang.String> value)
    Specifies an array of one or more fields that are used to group the data.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • sort

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

      API name: sort

    • uniqueKey

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

      API name: unique_key

    • uniqueKey

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

      API name: unique_key

    • addUniqueKey

      public Latest.Builder addUniqueKey​(java.lang.String value)
      Add a value to uniqueKey(List), creating the list if needed. 4
    • 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.