Class RegisterModelRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.ml.RegisterModelRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RegisterModelRequest.Builder,RegisterModelRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class RegisterModelRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<RegisterModelRequest.Builder,RegisterModelRequest>
Registers a model.
-
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<RegisterModelRequest> Json deserializer forRegisterModelRequeststatic final Endpoint<RegisterModelRequest, RegisterModelResponse, ErrorResponse> Endpoint "ml.register_model". -
Method Summary
Modifier and TypeMethodDescriptionstatic RegisterModelRequest.Builderbuilder()final StringThe connector ID.final StringThe model description.booleanfinal StringThe function name.inthashCode()final ModelFormatAPI name:model_formatfinal StringAPI name:model_group_idfinal Stringname()Required - The model name.static RegisterModelRequestvoidserialize(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.final Stringversion()API name:versionMethods 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 forRegisterModelRequest -
_ENDPOINT
Endpoint "ml.register_model".
-
-
Method Details
-
of
public static RegisterModelRequest of(Function<RegisterModelRequest.Builder, ObjectBuilder<RegisterModelRequest>> fn) -
connectorId
The connector ID.API name:
connector_id -
description
The model description.API name:
description -
functionName
The function name.API name:
function_name -
modelFormat
API name:model_format -
modelGroupId
API name:model_group_id -
name
Required - The model name.API name:
name -
version
API name:version -
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<RegisterModelRequest.Builder,RegisterModelRequest> - Returns:
- a new builder instance.
-
builder
-
setupRegisterModelRequestDeserializer
protected static void setupRegisterModelRequestDeserializer(ObjectDeserializer<RegisterModelRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-