Class ExecuteAgentRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.ml.ExecuteAgentRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ExecuteAgentRequest.Builder,ExecuteAgentRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class ExecuteAgentRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<ExecuteAgentRequest.Builder,ExecuteAgentRequest>
Execute an agent.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ExecuteAgentRequest> Json deserializer forExecuteAgentRequeststatic final Endpoint<ExecuteAgentRequest, ExecuteAgentResponse, ErrorResponse> Endpoint "ml.execute_agent". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringagentId()Required - API name:agent_idstatic ExecuteAgentRequest.Builderbuilder()booleaninthashCode()static ExecuteAgentRequestRequired - API name:parametersfinal BooleanWhether to provide verbose output.voidserialize(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 org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods 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 forExecuteAgentRequest -
_ENDPOINT
Endpoint "ml.execute_agent".
-
-
Method Details
-
of
public static ExecuteAgentRequest of(Function<ExecuteAgentRequest.Builder, ObjectBuilder<ExecuteAgentRequest>> fn) -
agentId
Required - API name:agent_id -
parameters
Required - API name:parameters -
parametersVerbose
Whether to provide verbose output.API name:
parameters.verbose -
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<ExecuteAgentRequest.Builder,ExecuteAgentRequest> - Returns:
- a new builder instance.
-
builder
-
setupExecuteAgentRequestDeserializer
protected static void setupExecuteAgentRequestDeserializer(ObjectDeserializer<ExecuteAgentRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-