Class PhaseTook.Builder

java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.PhaseTook.Builder
All Implemented Interfaces:
CopyableBuilder<PhaseTook.Builder,PhaseTook>, MutableBuilder<PhaseTook.Builder,PhaseTook>, ObjectBuilder<PhaseTook>
Enclosing class:
PhaseTook

public static class PhaseTook.Builder extends ObjectBuilderBase implements CopyableBuilder<PhaseTook.Builder,PhaseTook>
Builder for PhaseTook.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • copy

      @Nonnull public PhaseTook.Builder copy()
      Description copied from interface: CopyableBuilder
      Create a new builder CopyableBuilder that is a copy of this one.
      Specified by:
      copy in interface CopyableBuilder<PhaseTook.Builder,PhaseTook>
      Returns:
      a new builder instance.
    • canMatch

      @Nonnull public final PhaseTook.Builder canMatch(int value)
      Required - The time taken for the can_match phase.

      API name: can_match

    • dfsPreQuery

      @Nonnull public final PhaseTook.Builder dfsPreQuery(int value)
      Required - The time taken for the distributed frequency search pre-query phase.

      API name: dfs_pre_query

    • dfsQuery

      @Nonnull public final PhaseTook.Builder dfsQuery(int value)
      Required - The time taken for the distributed frequency search query phase.

      API name: dfs_query

    • expand

      @Nonnull public final PhaseTook.Builder expand(int value)
      Required - The time taken for the expand phase.

      API name: expand

    • fetch

      @Nonnull public final PhaseTook.Builder fetch(int value)
      Required - The time taken for the fetch phase.

      API name: fetch

    • query

      @Nonnull public final PhaseTook.Builder query(int value)
      Required - The time taken for the query phase.

      API name: query

    • build

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