Class GetModelResponse

java.lang.Object
org.opensearch.client.opensearch.ml.GetModelResponse
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<GetModelResponse.Builder,GetModelResponse>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class GetModelResponse extends Object implements PlainJsonSerializable, ToCopyableBuilder<GetModelResponse.Builder,GetModelResponse>
  • Field Details

  • Method Details

    • of

    • algorithm

      @Nullable public final String algorithm()
      The algorithm.

      API name: algorithm

    • createdTime

      @Nullable public final Long createdTime()
      The created time.

      API name: created_time

    • isHidden

      @Nullable public final Boolean isHidden()
      Whether the model is hidden.

      API name: is_hidden

    • lastRegisteredTime

      @Nullable public final Long lastRegisteredTime()
      The last registered time.

      API name: last_registered_time

    • lastUpdatedTime

      @Nullable public final Long lastUpdatedTime()
      The last updated time.

      API name: last_updated_time

    • modelConfig

      @Nullable public final ModelConfig modelConfig()
      API name: model_config
    • modelContentHashValue

      @Nullable public final String modelContentHashValue()
      The model content hash value.

      API name: model_content_hash_value

    • modelContentSizeInBytes

      @Nullable public final Long modelContentSizeInBytes()
      The model content size in bytes.

      API name: model_content_size_in_bytes

    • modelFormat

      @Nullable public final ModelFormat modelFormat()
      API name: model_format
    • modelGroupId

      @Nullable public final String modelGroupId()
      The model group ID.

      API name: model_group_id

    • modelState

      @Nonnull public final String modelState()
      Required - The model state.

      API name: model_state

    • modelVersion

      @Nullable public final String modelVersion()
      The model version.

      API name: model_version

    • name

      @Nullable public final String name()
      The model name.

      API name: name

    • totalChunks

      @Nullable public final Long totalChunks()
      The total chunks.

      API name: total_chunks

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toBuilder

      @Nonnull public GetModelResponse.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<GetModelResponse.Builder,GetModelResponse>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static GetModelResponse.Builder builder()
    • setupGetModelResponseDeserializer

      protected static void setupGetModelResponseDeserializer(ObjectDeserializer<GetModelResponse.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object