Record Class OpenAiModerationApi.Categories
java.lang.Object
java.lang.Record
org.springframework.ai.openai.api.OpenAiModerationApi.Categories
- Enclosing class:
- OpenAiModerationApi
public static record OpenAiModerationApi.Categories(boolean sexual, boolean hate, boolean harassment, boolean selfHarm, boolean sexualMinors, boolean hateThreatening, boolean violenceGraphic, boolean selfHarmIntent, boolean selfHarmInstructions, boolean harassmentThreatening, boolean violence)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCategories(boolean sexual, boolean hate, boolean harassment, boolean selfHarm, boolean sexualMinors, boolean hateThreatening, boolean violenceGraphic, boolean selfHarmIntent, boolean selfHarmInstructions, boolean harassmentThreatening, boolean violence) Creates an instance of aCategoriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theharassmentrecord component.booleanReturns the value of theharassmentThreateningrecord component.final inthashCode()Returns a hash code value for this object.booleanhate()Returns the value of thehaterecord component.booleanReturns the value of thehateThreateningrecord component.booleanselfHarm()Returns the value of theselfHarmrecord component.booleanReturns the value of theselfHarmInstructionsrecord component.booleanReturns the value of theselfHarmIntentrecord component.booleansexual()Returns the value of thesexualrecord component.booleanReturns the value of thesexualMinorsrecord component.final StringtoString()Returns a string representation of this record class.booleanviolence()Returns the value of theviolencerecord component.booleanReturns the value of theviolenceGraphicrecord component.
-
Constructor Details
-
Categories
public Categories(boolean sexual, boolean hate, boolean harassment, boolean selfHarm, boolean sexualMinors, boolean hateThreatening, boolean violenceGraphic, boolean selfHarmIntent, boolean selfHarmInstructions, boolean harassmentThreatening, boolean violence) Creates an instance of aCategoriesrecord class.- Parameters:
sexual- the value for thesexualrecord componenthate- the value for thehaterecord componentharassment- the value for theharassmentrecord componentselfHarm- the value for theselfHarmrecord componentsexualMinors- the value for thesexualMinorsrecord componenthateThreatening- the value for thehateThreateningrecord componentviolenceGraphic- the value for theviolenceGraphicrecord componentselfHarmIntent- the value for theselfHarmIntentrecord componentselfHarmInstructions- the value for theselfHarmInstructionsrecord componentharassmentThreatening- the value for theharassmentThreateningrecord componentviolence- the value for theviolencerecord 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 with '=='. -
sexual
public boolean sexual()Returns the value of thesexualrecord component.- Returns:
- the value of the
sexualrecord component
-
hate
public boolean hate()Returns the value of thehaterecord component.- Returns:
- the value of the
haterecord component
-
harassment
public boolean harassment()Returns the value of theharassmentrecord component.- Returns:
- the value of the
harassmentrecord component
-
selfHarm
public boolean selfHarm()Returns the value of theselfHarmrecord component.- Returns:
- the value of the
selfHarmrecord component
-
sexualMinors
public boolean sexualMinors()Returns the value of thesexualMinorsrecord component.- Returns:
- the value of the
sexualMinorsrecord component
-
hateThreatening
public boolean hateThreatening()Returns the value of thehateThreateningrecord component.- Returns:
- the value of the
hateThreateningrecord component
-
violenceGraphic
public boolean violenceGraphic()Returns the value of theviolenceGraphicrecord component.- Returns:
- the value of the
violenceGraphicrecord component
-
selfHarmIntent
public boolean selfHarmIntent()Returns the value of theselfHarmIntentrecord component.- Returns:
- the value of the
selfHarmIntentrecord component
-
selfHarmInstructions
public boolean selfHarmInstructions()Returns the value of theselfHarmInstructionsrecord component.- Returns:
- the value of the
selfHarmInstructionsrecord component
-
harassmentThreatening
public boolean harassmentThreatening()Returns the value of theharassmentThreateningrecord component.- Returns:
- the value of the
harassmentThreateningrecord component
-
violence
public boolean violence()Returns the value of theviolencerecord component.- Returns:
- the value of the
violencerecord component
-