Class GetCalendarsRequest.Builder

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

public static class GetCalendarsRequest.Builder
extends ObjectBuilderBase
implements ObjectBuilder<GetCalendarsRequest>
Builder for GetCalendarsRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • calendarId

      public final GetCalendarsRequest.Builder calendarId​(@Nullable java.lang.String value)
      A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using _all or * or by omitting the calendar identifier.

      API name: calendar_id

    • from

      public final GetCalendarsRequest.Builder from​(@Nullable java.lang.Integer value)
      Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier.

      API name: from

    • page

      public final GetCalendarsRequest.Builder page​(@Nullable Page value)
      This object is supported only when you omit the calendar identifier.

      API name: page

    • page

      public final GetCalendarsRequest.Builder page​(java.util.function.Function<Page.Builder,​ObjectBuilder<Page>> fn)
      This object is supported only when you omit the calendar identifier.

      API name: page

    • size

      public final GetCalendarsRequest.Builder size​(@Nullable java.lang.Integer value)
      Specifies the maximum number of calendars to obtain. This parameter is supported only when you omit the calendar identifier.

      API name: size

    • build

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