Class StoredScript
java.lang.Object
org.opensearch.client.opensearch._types.StoredScript
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<StoredScript.Builder,StoredScript>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class StoredScript
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<StoredScript.Builder,StoredScript>
The definition of a stored script.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<StoredScript> Json deserializer forStoredScript -
Method Summary
Modifier and TypeMethodDescriptionstatic StoredScript.Builderbuilder()booleaninthashCode()final ScriptLanguagelang()Required - API name:langstatic StoredScriptoptions()The options for the script.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringsource()Required - The location of the source code for the script.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forStoredScript
-
-
Method Details
-
of
-
lang
Required - API name:lang -
options
The options for the script.API name:
options -
source
Required - The location of the source code for the script.API name:
source -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<StoredScript.Builder,StoredScript> - Returns:
- a new builder instance.
-
builder
-
setupStoredScriptDeserializer
-
hashCode
public int hashCode() -
equals
-