Class UpdateModelRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.ml.UpdateModelRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<UpdateModelRequest.Builder,UpdateModelRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class UpdateModelRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<UpdateModelRequest.Builder,UpdateModelRequest>
Updates 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<UpdateModelRequest> Json deserializer forUpdateModelRequeststatic final Endpoint<UpdateModelRequest, UpdateModelResponse, ErrorResponse> Endpoint "ml.update_model". -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateModelRequest.Builderbuilder()The connector to use for the model.final StringThe connector ID.final StringThe model description.booleanfinal GuardrailsAPI name:guardrailsinthashCode()The model interface.final BooleanWhether the model is enabled.final ModelConfigAPI name:model_configfinal StringmodelId()Required - API name:model_idfinal Stringname()The model name.static UpdateModelRequestfinal RateLimiterAPI name:rate_limitervoidserialize(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 forUpdateModelRequest -
_ENDPOINT
Endpoint "ml.update_model".
-
-
Method Details
-
of
public static UpdateModelRequest of(Function<UpdateModelRequest.Builder, ObjectBuilder<UpdateModelRequest>> fn) -
connector
The connector to use for the model.API name:
connector -
connectorId
The connector ID.API name:
connector_id -
description
The model description.API name:
description -
guardrails
API name:guardrails -
interface_
The model interface.API name:
interface -
isEnabled
Whether the model is enabled.API name:
is_enabled -
modelConfig
API name:model_config -
modelId
Required - API name:model_id -
name
The model name.API name:
name -
rateLimiter
API name:rate_limiter -
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<UpdateModelRequest.Builder,UpdateModelRequest> - Returns:
- a new builder instance.
-
builder
-
setupUpdateModelRequestDeserializer
protected static void setupUpdateModelRequestDeserializer(ObjectDeserializer<UpdateModelRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-