Class Guardrails

java.lang.Object
org.opensearch.ml.common.model.Guardrails
All Implemented Interfaces:
org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject

public class Guardrails extends Object implements org.opensearch.core.xcontent.ToXContentObject
  • Field Details

  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Throws:
      IOException
    • 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:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • parse

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

      public static Guardrails.GuardrailsBuilder builder()
    • toBuilder

      public Guardrails.GuardrailsBuilder toBuilder()
    • 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
    • getType

      public String getType()
    • getInputGuardrail

      public Guardrail getInputGuardrail()
    • getOutputGuardrail

      public Guardrail getOutputGuardrail()