Class LlamaGuard38b
java.lang.Object
com.sap.ai.sdk.orchestration.model.LlamaGuard38b
Filter configuration for Llama Guard 3 8B
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchildExploitation(Boolean childExploitation) Set the childExploitation of thisLlamaGuard38binstance and return the same instance.codeInterpreterAbuse(Boolean codeInterpreterAbuse) Set the codeInterpreterAbuse of thisLlamaGuard38binstance and return the same instance.static LlamaGuard38bcreate()Create a newLlamaGuard38binstance.defamation(Boolean defamation) Set the defamation of thisLlamaGuard38binstance and return the same instance.Set the elections of thisLlamaGuard38binstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theLlamaGuard38b.inthashCode()Set the hate of thisLlamaGuard38binstance and return the same instance.indiscriminateWeapons(Boolean indiscriminateWeapons) Set the indiscriminateWeapons of thisLlamaGuard38binstance and return the same instance.intellectualProperty(Boolean intellectualProperty) Set the intellectualProperty of thisLlamaGuard38binstance and return the same instance.Get childExploitationGet codeInterpreterAbuseGet defamationGet electionsisHate()Get hateGet indiscriminateWeaponsGet intellectualPropertyGet nonViolentCrimesGet privacyGet selfHarmGet sexCrimesGet sexualContentGet specializedAdviceGet violentCrimesnonViolentCrimes(Boolean nonViolentCrimes) Set the nonViolentCrimes of thisLlamaGuard38binstance and return the same instance.Set the privacy of thisLlamaGuard38binstance and return the same instance.Set the selfHarm of thisLlamaGuard38binstance and return the same instance.voidsetChildExploitation(Boolean childExploitation) Set the childExploitation of thisLlamaGuard38binstance.voidsetCodeInterpreterAbuse(Boolean codeInterpreterAbuse) Set the codeInterpreterAbuse of thisLlamaGuard38binstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisLlamaGuard38binstance.voidsetDefamation(Boolean defamation) Set the defamation of thisLlamaGuard38binstance.voidsetElections(Boolean elections) Set the elections of thisLlamaGuard38binstance.voidSet the hate of thisLlamaGuard38binstance.voidsetIndiscriminateWeapons(Boolean indiscriminateWeapons) Set the indiscriminateWeapons of thisLlamaGuard38binstance.voidsetIntellectualProperty(Boolean intellectualProperty) Set the intellectualProperty of thisLlamaGuard38binstance.voidsetNonViolentCrimes(Boolean nonViolentCrimes) Set the nonViolentCrimes of thisLlamaGuard38binstance.voidsetPrivacy(Boolean privacy) Set the privacy of thisLlamaGuard38binstance.voidsetSelfHarm(Boolean selfHarm) Set the selfHarm of thisLlamaGuard38binstance.voidsetSexCrimes(Boolean sexCrimes) Set the sexCrimes of thisLlamaGuard38binstance.voidsetSexualContent(Boolean sexualContent) Set the sexualContent of thisLlamaGuard38binstance.voidsetSpecializedAdvice(Boolean specializedAdvice) Set the specializedAdvice of thisLlamaGuard38binstance.voidsetViolentCrimes(Boolean violentCrimes) Set the violentCrimes of thisLlamaGuard38binstance.Set the sexCrimes of thisLlamaGuard38binstance and return the same instance.sexualContent(Boolean sexualContent) Set the sexualContent of thisLlamaGuard38binstance and return the same instance.specializedAdvice(Boolean specializedAdvice) Set the specializedAdvice of thisLlamaGuard38binstance and return the same instance.toMap()Get the value of all properties of thisLlamaGuard38binstance including unrecognized properties.toString()violentCrimes(Boolean violentCrimes) Set the violentCrimes of thisLlamaGuard38binstance and return the same instance.
-
Constructor Details
-
LlamaGuard38b
protected LlamaGuard38b()Default constructor for LlamaGuard38b.
-
-
Method Details
-
violentCrimes
Set the violentCrimes of thisLlamaGuard38binstance and return the same instance.- Parameters:
violentCrimes- The violentCrimes of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isViolentCrimes
Get violentCrimes- Returns:
- violentCrimes The violentCrimes of this
LlamaGuard38binstance.
-
setViolentCrimes
Set the violentCrimes of thisLlamaGuard38binstance.- Parameters:
violentCrimes- The violentCrimes of thisLlamaGuard38b
-
nonViolentCrimes
Set the nonViolentCrimes of thisLlamaGuard38binstance and return the same instance.- Parameters:
nonViolentCrimes- The nonViolentCrimes of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isNonViolentCrimes
Get nonViolentCrimes- Returns:
- nonViolentCrimes The nonViolentCrimes of this
LlamaGuard38binstance.
-
setNonViolentCrimes
Set the nonViolentCrimes of thisLlamaGuard38binstance.- Parameters:
nonViolentCrimes- The nonViolentCrimes of thisLlamaGuard38b
-
sexCrimes
Set the sexCrimes of thisLlamaGuard38binstance and return the same instance.- Parameters:
sexCrimes- The sexCrimes of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isSexCrimes
Get sexCrimes- Returns:
- sexCrimes The sexCrimes of this
LlamaGuard38binstance.
-
setSexCrimes
Set the sexCrimes of thisLlamaGuard38binstance.- Parameters:
sexCrimes- The sexCrimes of thisLlamaGuard38b
-
childExploitation
Set the childExploitation of thisLlamaGuard38binstance and return the same instance.- Parameters:
childExploitation- The childExploitation of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isChildExploitation
Get childExploitation- Returns:
- childExploitation The childExploitation of this
LlamaGuard38binstance.
-
setChildExploitation
Set the childExploitation of thisLlamaGuard38binstance.- Parameters:
childExploitation- The childExploitation of thisLlamaGuard38b
-
defamation
Set the defamation of thisLlamaGuard38binstance and return the same instance.- Parameters:
defamation- The defamation of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isDefamation
Get defamation- Returns:
- defamation The defamation of this
LlamaGuard38binstance.
-
setDefamation
Set the defamation of thisLlamaGuard38binstance.- Parameters:
defamation- The defamation of thisLlamaGuard38b
-
specializedAdvice
Set the specializedAdvice of thisLlamaGuard38binstance and return the same instance.- Parameters:
specializedAdvice- The specializedAdvice of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isSpecializedAdvice
Get specializedAdvice- Returns:
- specializedAdvice The specializedAdvice of this
LlamaGuard38binstance.
-
setSpecializedAdvice
Set the specializedAdvice of thisLlamaGuard38binstance.- Parameters:
specializedAdvice- The specializedAdvice of thisLlamaGuard38b
-
privacy
Set the privacy of thisLlamaGuard38binstance and return the same instance.- Parameters:
privacy- The privacy of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isPrivacy
Get privacy- Returns:
- privacy The privacy of this
LlamaGuard38binstance.
-
setPrivacy
Set the privacy of thisLlamaGuard38binstance.- Parameters:
privacy- The privacy of thisLlamaGuard38b
-
intellectualProperty
Set the intellectualProperty of thisLlamaGuard38binstance and return the same instance.- Parameters:
intellectualProperty- The intellectualProperty of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isIntellectualProperty
Get intellectualProperty- Returns:
- intellectualProperty The intellectualProperty of this
LlamaGuard38binstance.
-
setIntellectualProperty
Set the intellectualProperty of thisLlamaGuard38binstance.- Parameters:
intellectualProperty- The intellectualProperty of thisLlamaGuard38b
-
indiscriminateWeapons
Set the indiscriminateWeapons of thisLlamaGuard38binstance and return the same instance.- Parameters:
indiscriminateWeapons- The indiscriminateWeapons of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isIndiscriminateWeapons
Get indiscriminateWeapons- Returns:
- indiscriminateWeapons The indiscriminateWeapons of this
LlamaGuard38binstance.
-
setIndiscriminateWeapons
Set the indiscriminateWeapons of thisLlamaGuard38binstance.- Parameters:
indiscriminateWeapons- The indiscriminateWeapons of thisLlamaGuard38b
-
hate
Set the hate of thisLlamaGuard38binstance and return the same instance.- Parameters:
hate- The hate of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isHate
Get hate- Returns:
- hate The hate of this
LlamaGuard38binstance.
-
setHate
Set the hate of thisLlamaGuard38binstance.- Parameters:
hate- The hate of thisLlamaGuard38b
-
selfHarm
Set the selfHarm of thisLlamaGuard38binstance and return the same instance.- Parameters:
selfHarm- The selfHarm of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isSelfHarm
Get selfHarm- Returns:
- selfHarm The selfHarm of this
LlamaGuard38binstance.
-
setSelfHarm
Set the selfHarm of thisLlamaGuard38binstance.- Parameters:
selfHarm- The selfHarm of thisLlamaGuard38b
-
sexualContent
Set the sexualContent of thisLlamaGuard38binstance and return the same instance.- Parameters:
sexualContent- The sexualContent of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isSexualContent
Get sexualContent- Returns:
- sexualContent The sexualContent of this
LlamaGuard38binstance.
-
setSexualContent
Set the sexualContent of thisLlamaGuard38binstance.- Parameters:
sexualContent- The sexualContent of thisLlamaGuard38b
-
elections
Set the elections of thisLlamaGuard38binstance and return the same instance.- Parameters:
elections- The elections of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isElections
Get elections- Returns:
- elections The elections of this
LlamaGuard38binstance.
-
setElections
Set the elections of thisLlamaGuard38binstance.- Parameters:
elections- The elections of thisLlamaGuard38b
-
codeInterpreterAbuse
Set the codeInterpreterAbuse of thisLlamaGuard38binstance and return the same instance.- Parameters:
codeInterpreterAbuse- The codeInterpreterAbuse of thisLlamaGuard38b- Returns:
- The same instance of this
LlamaGuard38bclass
-
isCodeInterpreterAbuse
Get codeInterpreterAbuse- Returns:
- codeInterpreterAbuse The codeInterpreterAbuse of this
LlamaGuard38binstance.
-
setCodeInterpreterAbuse
Set the codeInterpreterAbuse of thisLlamaGuard38binstance.- Parameters:
codeInterpreterAbuse- The codeInterpreterAbuse of thisLlamaGuard38b
-
getCustomFieldNames
Get the names of the unrecognizable properties of theLlamaGuard38b.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisLlamaGuard38binstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisLlamaGuard38binstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisLlamaGuard38binstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newLlamaGuard38binstance. No arguments are required.
-
toMap()instead.