Class UpdateMessageRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<UpdateMessageRequest.Builder>
org.opensearch.client.opensearch.ml.UpdateMessageRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<UpdateMessageRequest.Builder,,UpdateMessageRequest> MutableBuilder<UpdateMessageRequest.Builder,,UpdateMessageRequest> ObjectBuilder<UpdateMessageRequest>
- Enclosing class:
UpdateMessageRequest
public static class UpdateMessageRequest.Builder
extends RequestBase.AbstractBuilder<UpdateMessageRequest.Builder>
implements CopyableBuilder<UpdateMessageRequest.Builder,UpdateMessageRequest>
Builder for
UpdateMessageRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalInfo(String key, JsonData value) API name:additional_infoadditionalInfo(Map<String, JsonData> map) API name:additional_infobuild()Builds aUpdateMessageRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.The question in the message.Required - API name:message_idThe system name that generated the response.promptTemplate(String value) The prompt template.The answer to the question.protected UpdateMessageRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<UpdateMessageRequest.Builder,UpdateMessageRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<UpdateMessageRequest.Builder>
-
additionalInfo
API name:additional_infoAdds all elements of
maptoadditionalInfo. -
additionalInfo
API name:additional_infoAdds an entry to
additionalInfo. -
input
The question in the message.API name:
input -
messageId
Required - API name:message_id -
origin
The system name that generated the response.API name:
origin -
promptTemplate
The prompt template.API name:
prompt_template -
response
The answer to the question.API name:
response -
build
Builds aUpdateMessageRequest.- Specified by:
buildin interfaceObjectBuilder<UpdateMessageRequest>- Throws:
NullPointerException- if some of the required fields are null.
-