Record Class MistralAiModerationApi.Categories

java.lang.Object
java.lang.Record
org.springframework.ai.mistralai.api.MistralAiModerationApi.Categories
Enclosing class:
MistralAiModerationApi

public static record MistralAiModerationApi.Categories(@Nullable Boolean sexual, @Nullable Boolean hateAndDiscrimination, @Nullable Boolean violenceAndThreats, @Nullable Boolean selfHarm, @Nullable Boolean dangerous, @Nullable Boolean criminal, @Nullable Boolean health, @Nullable Boolean financial, @Nullable Boolean law, @Nullable Boolean pii, @Nullable Boolean jailbreaking) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Categories(@Nullable Boolean sexual, @Nullable Boolean hateAndDiscrimination, @Nullable Boolean violenceAndThreats, @Nullable Boolean selfHarm, @Nullable Boolean dangerous, @Nullable Boolean criminal, @Nullable Boolean health, @Nullable Boolean financial, @Nullable Boolean law, @Nullable Boolean pii, @Nullable Boolean jailbreaking)
    Creates an instance of a Categories record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Boolean
    Returns the value of the criminal record component.
    @Nullable Boolean
    Returns the value of the dangerous record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @Nullable Boolean
    Returns the value of the financial record component.
    final int
    Returns a hash code value for this object.
    @Nullable Boolean
    Returns the value of the hateAndDiscrimination record component.
    @Nullable Boolean
    Returns the value of the health record component.
    @Nullable Boolean
    Returns the value of the jailbreaking record component.
    @Nullable Boolean
    law()
    Returns the value of the law record component.
    @Nullable Boolean
    pii()
    Returns the value of the pii record component.
    @Nullable Boolean
    Returns the value of the selfHarm record component.
    @Nullable Boolean
    Returns the value of the sexual record component.
    final String
    Returns a string representation of this record class.
    @Nullable Boolean
    Returns the value of the violenceAndThreats record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Categories

      public Categories(@Nullable Boolean sexual, @Nullable Boolean hateAndDiscrimination, @Nullable Boolean violenceAndThreats, @Nullable Boolean selfHarm, @Nullable Boolean dangerous, @Nullable Boolean criminal, @Nullable Boolean health, @Nullable Boolean financial, @Nullable Boolean law, @Nullable Boolean pii, @Nullable Boolean jailbreaking)
      Creates an instance of a Categories record class.
      Parameters:
      sexual - the value for the sexual record component
      hateAndDiscrimination - the value for the hateAndDiscrimination record component
      violenceAndThreats - the value for the violenceAndThreats record component
      selfHarm - the value for the selfHarm record component
      dangerous - the value for the dangerous record component
      criminal - the value for the criminal record component
      health - the value for the health record component
      financial - the value for the financial record component
      law - the value for the law record component
      pii - the value for the pii record component
      jailbreaking - the value for the jailbreaking record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sexual

      public @Nullable Boolean sexual()
      Returns the value of the sexual record component.
      Returns:
      the value of the sexual record component
    • hateAndDiscrimination

      public @Nullable Boolean hateAndDiscrimination()
      Returns the value of the hateAndDiscrimination record component.
      Returns:
      the value of the hateAndDiscrimination record component
    • violenceAndThreats

      public @Nullable Boolean violenceAndThreats()
      Returns the value of the violenceAndThreats record component.
      Returns:
      the value of the violenceAndThreats record component
    • selfHarm

      public @Nullable Boolean selfHarm()
      Returns the value of the selfHarm record component.
      Returns:
      the value of the selfHarm record component
    • dangerous

      public @Nullable Boolean dangerous()
      Returns the value of the dangerous record component.
      Returns:
      the value of the dangerous record component
    • criminal

      public @Nullable Boolean criminal()
      Returns the value of the criminal record component.
      Returns:
      the value of the criminal record component
    • health

      public @Nullable Boolean health()
      Returns the value of the health record component.
      Returns:
      the value of the health record component
    • financial

      public @Nullable Boolean financial()
      Returns the value of the financial record component.
      Returns:
      the value of the financial record component
    • law

      public @Nullable Boolean law()
      Returns the value of the law record component.
      Returns:
      the value of the law record component
    • pii

      public @Nullable Boolean pii()
      Returns the value of the pii record component.
      Returns:
      the value of the pii record component
    • jailbreaking

      public @Nullable Boolean jailbreaking()
      Returns the value of the jailbreaking record component.
      Returns:
      the value of the jailbreaking record component