Class RoleTemplateScript
java.lang.Object
co.elastic.clients.elasticsearch.security.RoleTemplateScript
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<RoleTemplateScript.Kind,Object>
@JsonpDeserializable
public class RoleTemplateScript
extends Object
implements TaggedUnion<RoleTemplateScript.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final RoleTemplateScript.Kind_kind()Get the of the kind of variant held by this object.inline()Get theinlinevariant value.booleanisInline()Is this variant instance of kindinline?booleanisStored()Is this variant instance of kindstored?static RoleTemplateScriptvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) stored()Get thestoredvariant value.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<RoleTemplateScript.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<RoleTemplateScript.Kind,Object>
-
of
public static RoleTemplateScript of(Function<RoleTemplateScript.Builder, ObjectBuilder<RoleTemplateScript>> fn) -
isStored
public boolean isStored()Is this variant instance of kindstored? -
stored
Get thestoredvariant value.- Throws:
IllegalStateException- if the current variant is not of thestoredkind.
-
isInline
public boolean isInline()Is this variant instance of kindinline? -
inline
Get theinlinevariant value.- Throws:
IllegalStateException- if the current variant is not of theinlinekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-