All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public final class QueryUserResponse extends ActionResponse implements org.elasticsearch.xcontent.ToXContentObject
Response for the query Users API.
Model used to serialize information about the Users that were found.
  • Constructor Details

  • Method Details

    • getTotal

      public long getTotal()
    • getItems

      public QueryUserResponse.Item[] getItems()
    • getCount

      public int getCount()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException