Class SnapshotsRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • ignoreUnavailable

      public final SnapshotsRequest.Builder ignoreUnavailable​(@Nullable java.lang.Boolean value)
      Set to true to ignore unavailable snapshots

      API name: ignore_unavailable

    • repository

      public final SnapshotsRequest.Builder repository​(java.util.List<java.lang.String> list)
      Name of repository from which to fetch the snapshot information

      API name: repository

      Adds all elements of list to repository.

    • repository

      public final SnapshotsRequest.Builder repository​(java.lang.String value, java.lang.String... values)
      Name of repository from which to fetch the snapshot information

      API name: repository

      Adds one or more values to repository.

    • build

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