Class MLUpdateModelInput
java.lang.Object
org.opensearch.ml.common.transport.model.MLUpdateModelInput
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
public class MLUpdateModelInput
extends Object
implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMLUpdateModelInput(String modelId, String description, String version, String name, String modelGroupId, Boolean isEnabled, MLRateLimiter rateLimiter, MLModelConfig modelConfig, MLDeploySetting deploySetting, Connector updatedConnector, String connectorId, MLCreateConnectorInput connector, Instant lastUpdateTime, Guardrails guardrails) MLUpdateModelInput(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetName()inthashCode()static MLUpdateModelInputparse(org.opensearch.core.xcontent.XContentParser parser) voidsetConnector(MLCreateConnectorInput connector) voidsetConnectorId(String connectorId) voidsetDeploySetting(MLDeploySetting deploySetting) voidsetDescription(String description) voidsetGuardrails(Guardrails guardrails) voidsetIsEnabled(Boolean isEnabled) voidsetLastUpdateTime(Instant lastUpdateTime) voidsetModelConfig(MLModelConfig modelConfig) voidsetModelGroupId(String modelGroupId) voidsetModelId(String modelId) voidvoidsetRateLimiter(MLRateLimiter rateLimiter) voidsetUpdatedConnector(Connector updatedConnector) voidsetVersion(String version) toString()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) org.opensearch.core.xcontent.XContentBuildertoXContentForUpdateRequestDoc(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODEL_ID_FIELD
- See Also:
-
DESCRIPTION_FIELD
- See Also:
-
MODEL_VERSION_FIELD
- See Also:
-
MODEL_NAME_FIELD
- See Also:
-
MODEL_GROUP_ID_FIELD
- See Also:
-
IS_ENABLED_FIELD
- See Also:
-
RATE_LIMITER_FIELD
- See Also:
-
MODEL_CONFIG_FIELD
- See Also:
-
DEPLOY_SETTING_FIELD
- See Also:
-
UPDATED_CONNECTOR_FIELD
- See Also:
-
CONNECTOR_ID_FIELD
- See Also:
-
CONNECTOR_FIELD
- See Also:
-
LAST_UPDATED_TIME_FIELD
- See Also:
-
GUARDRAILS_FIELD
- See Also:
-
-
Constructor Details
-
MLUpdateModelInput
public MLUpdateModelInput(String modelId, String description, String version, String name, String modelGroupId, Boolean isEnabled, MLRateLimiter rateLimiter, MLModelConfig modelConfig, MLDeploySetting deploySetting, Connector updatedConnector, String connectorId, MLCreateConnectorInput connector, Instant lastUpdateTime, Guardrails guardrails) -
MLUpdateModelInput
- Throws:
IOException
-
-
Method Details
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
toXContentForUpdateRequestDoc
public org.opensearch.core.xcontent.XContentBuilder toXContentForUpdateRequestDoc(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
parse
public static MLUpdateModelInput parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getDescription
-
getVersion
-
getName
-
getModelGroupId
-
getIsEnabled
-
getRateLimiter
-
getModelConfig
-
getDeploySetting
-
getUpdatedConnector
-
getConnectorId
-
getConnector
-
getLastUpdateTime
-
getGuardrails
-
setModelId
-
setDescription
-
setVersion
-
setName
-
setModelGroupId
-
setIsEnabled
-
setRateLimiter
-
setModelConfig
-
setDeploySetting
-
setUpdatedConnector
-
setConnectorId
-
setConnector
-
setLastUpdateTime
-
setGuardrails
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getModelId
-