Class TTPSElement

java.lang.Object
ai.reveng.model.TTPSElement

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TTPSElement extends Object
TTPSElement
  • Field Details

  • Constructor Details

    • TTPSElement

      public TTPSElement()
  • Method Details

    • name

      public TTPSElement name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • attack

      public TTPSElement attack(@Nonnull List<TTPSAttack> attack)
    • addAttackItem

      public TTPSElement addAttackItem(TTPSAttack attackItem)
    • getAttack

      @Nonnull public List<TTPSAttack> getAttack()
      Get attack
      Returns:
      attack
    • setAttack

      public void setAttack(@Nonnull List<TTPSAttack> attack)
    • occurrences

      public TTPSElement occurrences(@Nonnull List<TTPSOccurance> occurrences)
    • addOccurrencesItem

      public TTPSElement addOccurrencesItem(TTPSOccurance occurrencesItem)
    • getOccurrences

      @Nonnull public List<TTPSOccurance> getOccurrences()
      Get occurrences
      Returns:
      occurrences
    • setOccurrences

      public void setOccurrences(@Nonnull List<TTPSOccurance> occurrences)
    • score

      public TTPSElement score(@Nonnull Integer score)
    • getScore

      @Nonnull public Integer getScore()
      Get score
      Returns:
      score
    • setScore

      public void setScore(@Nonnull Integer score)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static TTPSElement fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of TTPSElement to an JSON string
      Returns:
      JSON string