Class GetScriptResponse
java.lang.Object
org.opensearch.client.opensearch.core.GetScriptResponse
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<GetScriptResponse.Builder,GetScriptResponse>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class GetScriptResponse
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<GetScriptResponse.Builder,GetScriptResponse>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GetScriptResponse> Json deserializer forGetScriptResponse -
Method Summary
Modifier and TypeMethodDescriptionstatic GetScriptResponse.Builderbuilder()booleanfinal booleanfound()Required - API name:foundinthashCode()final Stringid()Required - API name:_idstatic GetScriptResponsefinal StoredScriptscript()API name:scriptvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate 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 forGetScriptResponse
-
-
Method Details
-
of
public static GetScriptResponse of(Function<GetScriptResponse.Builder, ObjectBuilder<GetScriptResponse>> fn) -
found
public final boolean found()Required - API name:found -
id
Required - API name:_id -
script
API name:script -
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<GetScriptResponse.Builder,GetScriptResponse> - Returns:
- a new builder instance.
-
builder
-
setupGetScriptResponseDeserializer
protected static void setupGetScriptResponseDeserializer(ObjectDeserializer<GetScriptResponse.Builder> op) -
hashCode
public int hashCode() -
equals
-