Class CreateMessageResponse
- java.lang.Object
-
- org.opensearch.client.opensearch.ml.CreateMessageResponse
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateMessageResponse.Builder,CreateMessageResponse>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class CreateMessageResponse extends java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<CreateMessageResponse.Builder,CreateMessageResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateMessageResponse.BuilderBuilder forCreateMessageResponse.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CreateMessageResponse>_DESERIALIZERJson deserializer forCreateMessageResponse
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateMessageResponse.Builderbuilder()booleanequals(java.lang.Object o)inthashCode()java.lang.StringmessageId()Required - API name:message_idstatic CreateMessageResponseof(java.util.function.Function<CreateMessageResponse.Builder,ObjectBuilder<CreateMessageResponse>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCreateMessageResponseDeserializer(ObjectDeserializer<CreateMessageResponse.Builder> op)CreateMessageResponse.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<CreateMessageResponse> _DESERIALIZER
Json deserializer forCreateMessageResponse
-
-
Method Detail
-
of
public static CreateMessageResponse of(java.util.function.Function<CreateMessageResponse.Builder,ObjectBuilder<CreateMessageResponse>> fn)
-
messageId
@Nonnull public final java.lang.String messageId()
Required - API name:message_id
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public CreateMessageResponse.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateMessageResponse.Builder,CreateMessageResponse>- Returns:
- a new builder instance.
-
builder
@Nonnull public static CreateMessageResponse.Builder builder()
-
setupCreateMessageResponseDeserializer
protected static void setupCreateMessageResponseDeserializer(ObjectDeserializer<CreateMessageResponse.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-