Class ResolvedIndices.Builder

java.lang.Object
org.elasticsearch.xpack.core.security.authz.ResolvedIndices.Builder
Enclosing class:
ResolvedIndices

public static class ResolvedIndices.Builder extends Object
Builder class for ResolvedIndices that allows for the building of a list of indices without the need to construct new objects and merging them together
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • addLocal

      public void addLocal(String index)
      add a local index name
    • addLocal

      public void addLocal(String[] indices)
      adds the array of local index names
    • addLocal

      public void addLocal(List<String> indices)
      adds the list of local index names
    • addRemote

      public void addRemote(List<String> indices)
      adds the list of remote index names
    • isEmpty

      public boolean isEmpty()
      Returns:
      true if both the local and remote index lists are empty.
    • build

      public ResolvedIndices build()
      Returns:
      a immutable ResolvedIndices instance with the local and remote index lists