Class MLConfig

java.lang.Object
org.opensearch.ml.common.MLConfig
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject

public class MLConfig extends Object implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
  • Field Details

  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder xContentBuilder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • fromStream

      public static MLConfig fromStream(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
    • parse

      public static MLConfig parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • builder

      public static MLConfig.MLConfigBuilder builder()
    • toBuilder

      public MLConfig.MLConfigBuilder toBuilder()
    • getType

      public String getType()
    • getConfiguration

      public Configuration getConfiguration()
    • getCreateTime

      public Instant getCreateTime()
    • getLastUpdateTime

      public Instant getLastUpdateTime()
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public void setType(String type)