Class Page.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.Page.Builder
All Implemented Interfaces:
ObjectBuilder<Page>
Enclosing class:
Page

public static class Page.Builder
extends ObjectBuilderBase
implements ObjectBuilder<Page>
Builder for Page.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    Page build()
    Builds a Page.
    Page.Builder from​(java.lang.Integer value)
    Skips the specified number of items.
    Page.Builder size​(java.lang.Integer value)
    Specifies the maximum number of items to obtain.

    Methods inherited from class co.elastic.clients.util.ObjectBuilderBase

    _checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll

    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

    • from

      public final Page.Builder from​(@Nullable java.lang.Integer value)
      Skips the specified number of items.

      API name: from

    • size

      public final Page.Builder size​(@Nullable java.lang.Integer value)
      Specifies the maximum number of items to obtain.

      API name: size

    • build

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