Class RoleTemplateInlineQuery
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleTemplateInlineQuery
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<RoleTemplateInlineQuery.Kind,Object>
@JsonpDeserializable
public class RoleTemplateInlineQuery
extends Object
implements TaggedUnion<RoleTemplateInlineQuery.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindquery_object?booleanIs this variant instance of kindquery_string?static RoleTemplateInlineQueryGet thequery_objectvariant value.Get thequery_stringvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<RoleTemplateInlineQuery.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<RoleTemplateInlineQuery.Kind,Object>
-
of
public static RoleTemplateInlineQuery of(Function<RoleTemplateInlineQuery.Builder, ObjectBuilder<RoleTemplateInlineQuery>> fn) -
isQueryObject
public boolean isQueryObject()Is this variant instance of kindquery_object? -
queryObject
Get thequery_objectvariant value.- Throws:
IllegalStateException- if the current variant is not of thequery_objectkind.
-
isQueryString
public boolean isQueryString()Is this variant instance of kindquery_string? -
queryString
Get thequery_stringvariant value.- Throws:
IllegalStateException- if the current variant is not of thequery_stringkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-