Class DeleteRepositoryRequest.Builder

All Implemented Interfaces:
WithJson<DeleteRepositoryRequest.Builder>, ObjectBuilder<DeleteRepositoryRequest>
Enclosing class:
DeleteRepositoryRequest

public static class DeleteRepositoryRequest.Builder extends RequestBase.AbstractBuilder<DeleteRepositoryRequest.Builder> implements ObjectBuilder<DeleteRepositoryRequest>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • masterTimeout

      public final DeleteRepositoryRequest.Builder masterTimeout(@Nullable Time value)
      The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to -1.

      API name: master_timeout

    • masterTimeout

      The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to -1.

      API name: master_timeout

    • name

      public final DeleteRepositoryRequest.Builder name(List<String> list)
      Required - The ame of the snapshot repositories to unregister. Wildcard (*) patterns are supported.

      API name: repository

      Adds all elements of list to name.

    • name

      public final DeleteRepositoryRequest.Builder name(String value, String... values)
      Required - The ame of the snapshot repositories to unregister. Wildcard (*) patterns are supported.

      API name: repository

      Adds one or more values to name.

    • timeout

      public final DeleteRepositoryRequest.Builder timeout(@Nullable Time value)
      The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. To indicate that the request should never timeout, set it to -1.

      API name: timeout

    • timeout

      The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. To indicate that the request should never timeout, set it to -1.

      API name: timeout

    • self

      Specified by:
      self in class RequestBase.AbstractBuilder<DeleteRepositoryRequest.Builder>
    • build

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