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
ConstructorsConstructorDescriptionCategories(@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 aCategoriesrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Booleancriminal()Returns the value of thecriminalrecord component.@Nullable BooleanReturns the value of thedangerousrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable BooleanReturns the value of thefinancialrecord component.final inthashCode()Returns a hash code value for this object.@Nullable BooleanReturns the value of thehateAndDiscriminationrecord component.@Nullable Booleanhealth()Returns the value of thehealthrecord component.@Nullable BooleanReturns the value of thejailbreakingrecord component.@Nullable Booleanlaw()Returns the value of thelawrecord component.@Nullable Booleanpii()Returns the value of thepiirecord component.@Nullable BooleanselfHarm()Returns the value of theselfHarmrecord component.@Nullable Booleansexual()Returns the value of thesexualrecord component.final StringtoString()Returns a string representation of this record class.@Nullable BooleanReturns the value of theviolenceAndThreatsrecord component.
-
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 aCategoriesrecord class.- Parameters:
sexual- the value for thesexualrecord componenthateAndDiscrimination- the value for thehateAndDiscriminationrecord componentviolenceAndThreats- the value for theviolenceAndThreatsrecord componentselfHarm- the value for theselfHarmrecord componentdangerous- the value for thedangerousrecord componentcriminal- the value for thecriminalrecord componenthealth- the value for thehealthrecord componentfinancial- the value for thefinancialrecord componentlaw- the value for thelawrecord componentpii- the value for thepiirecord componentjailbreaking- the value for thejailbreakingrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
sexual
Returns the value of thesexualrecord component.- Returns:
- the value of the
sexualrecord component
-
hateAndDiscrimination
Returns the value of thehateAndDiscriminationrecord component.- Returns:
- the value of the
hateAndDiscriminationrecord component
-
violenceAndThreats
Returns the value of theviolenceAndThreatsrecord component.- Returns:
- the value of the
violenceAndThreatsrecord component
-
selfHarm
Returns the value of theselfHarmrecord component.- Returns:
- the value of the
selfHarmrecord component
-
dangerous
Returns the value of thedangerousrecord component.- Returns:
- the value of the
dangerousrecord component
-
criminal
Returns the value of thecriminalrecord component.- Returns:
- the value of the
criminalrecord component
-
health
Returns the value of thehealthrecord component.- Returns:
- the value of the
healthrecord component
-
financial
Returns the value of thefinancialrecord component.- Returns:
- the value of the
financialrecord component
-
law
Returns the value of thelawrecord component.- Returns:
- the value of the
lawrecord component
-
pii
Returns the value of thepiirecord component.- Returns:
- the value of the
piirecord component
-
jailbreaking
Returns the value of thejailbreakingrecord component.- Returns:
- the value of the
jailbreakingrecord component
-