Class Suppression

java.lang.Object
sendpost_java_sdk.Suppression

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-12-22T13:35:12.742682+05:30[Asia/Kolkata]", comments="Generator version: 7.13.0") public class Suppression extends Object
Suppression
  • Field Details

  • Constructor Details

    • Suppression

      public Suppression()
  • Method Details

    • id

      public Suppression id(@Nullable Integer id)
    • getId

      @Nullable public Integer getId()
      The ID of the suppression
      Returns:
      id
    • setId

      public void setId(@Nullable Integer id)
    • reason

      public Suppression reason(@Nullable Integer reason)
    • getReason

      @Nullable public Integer getReason()
      The reason for the suppression (0 = manual, 1 = unsubscribe, 2 = hard bounce, 3 = spam complaint)
      Returns:
      reason
    • setReason

      public void setReason(@Nullable Integer reason)
    • type

      public Suppression type(@Nullable Integer type)
    • getType

      @Nullable public Integer getType()
      The type of the suppression (alias for reason: 0 = manual, 1 = unsubscribe, 2 = hard bounce, 3 = spam complaint)
      Returns:
      type
    • setType

      public void setType(@Nullable Integer type)
    • email

      public Suppression email(@Nullable String email)
    • getEmail

      @Nullable public String getEmail()
      The email address for the suppression
      Returns:
      email
    • setEmail

      public void setEmail(@Nullable String email)
    • created

      public Suppression created(@Nullable Long created)
    • getCreated

      @Nullable public Long getCreated()
      UNIX epoch nano timestamp when the suppression was created
      Returns:
      created
    • setCreated

      public void setCreated(@Nullable Long created)
    • 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 Suppression
    • fromJson

      public static Suppression fromJson(String jsonString) throws IOException
      Create an instance of Suppression given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Suppression
      Throws:
      IOException - if the JSON string is invalid with respect to Suppression
    • toJson

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