Package ai.reveng.model
Class TTPSElement
java.lang.Object
ai.reveng.model.TTPSElement
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TTPSElement
extends Object
TTPSElement
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttackItem(TTPSAttack attackItem) addOccurrencesItem(TTPSOccurance occurrencesItem) attack(List<TTPSAttack> attack) booleanstatic TTPSElementCreate an instance of TTPSElement given an JSON stringGet attackgetName()Get nameGet occurrencesgetScore()Get scoreinthashCode()occurrences(List<TTPSOccurance> occurrences) voidsetAttack(List<TTPSAttack> attack) voidvoidsetOccurrences(List<TTPSOccurance> occurrences) voidtoJson()Convert an instance of TTPSElement to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_ATTACK
- See Also:
-
SERIALIZED_NAME_OCCURRENCES
- See Also:
-
SERIALIZED_NAME_SCORE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TTPSElement
public TTPSElement()
-
-
Method Details
-
name
-
getName
Get name- Returns:
- name
-
setName
-
attack
-
addAttackItem
-
getAttack
Get attack- Returns:
- attack
-
setAttack
-
occurrences
-
addOccurrencesItem
-
getOccurrences
Get occurrences- Returns:
- occurrences
-
setOccurrences
-
score
-
getScore
Get score- Returns:
- score
-
setScore
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to TTPSElement
-
fromJson
Create an instance of TTPSElement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TTPSElement
- Throws:
IOException- if the JSON string is invalid with respect to TTPSElement
-
toJson
Convert an instance of TTPSElement to an JSON string- Returns:
- JSON string
-