Class RoleTemplateInlineQuery

java.lang.Object
co.elastic.clients.elasticsearch.security.RoleTemplateInlineQuery
All Implemented Interfaces:
JsonpSerializable, TaggedUnion<RoleTemplateInlineQuery.Kind,​java.lang.Object>

@JsonpDeserializable
public class RoleTemplateInlineQuery
extends java.lang.Object
implements TaggedUnion<RoleTemplateInlineQuery.Kind,​java.lang.Object>, JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • _kind

      public final RoleTemplateInlineQuery.Kind _kind()
      Description copied from interface: TaggedUnion
      Get the of the kind of variant held by this object.
      Specified by:
      _kind in interface TaggedUnion<RoleTemplateInlineQuery.Kind,​java.lang.Object>
      Returns:
      the variant kind
    • _get

      public final java.lang.Object _get()
      Specified by:
      _get in interface TaggedUnion<RoleTemplateInlineQuery.Kind,​java.lang.Object>
    • of

      public static RoleTemplateInlineQuery of​(java.util.function.Function<RoleTemplateInlineQuery.Builder,​ObjectBuilder<RoleTemplateInlineQuery>> fn)
    • isQueryObject

      public boolean isQueryObject()
      Is this variant instance of kind query_object?
    • queryObject

      public Query queryObject()
      Get the query_object variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the query_object kind.
    • isQueryString

      public boolean isQueryString()
      Is this variant instance of kind query_string?
    • queryString

      public java.lang.String queryString()
      Get the query_string variant value.
      Throws:
      java.lang.IllegalStateException - if the current variant is not of the query_string kind.
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Specified by:
      serialize in interface JsonpSerializable
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object