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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SuppressionCreate an instance of Suppression given an JSON stringUNIX epoch nano timestamp when the suppression was createdgetEmail()The email address for the suppressiongetId()The ID of the suppressionThe reason for the suppression (0 = manual, 1 = unsubscribe, 2 = hard bounce, 3 = spam complaint)getType()The type of the suppression (alias for reason: 0 = manual, 1 = unsubscribe, 2 = hard bounce, 3 = spam complaint)inthashCode()voidsetCreated(Long created) voidvoidvoidvoidtoJson()Convert an instance of Suppression 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_ID
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Suppression
public Suppression()
-
-
Method Details
-
id
-
getId
-
setId
-
reason
-
getReason
-
setReason
-
type
-
getType
-
setType
-
email
-
getEmail
-
setEmail
-
created
-
getCreated
-
setCreated
-
equals
-
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 Suppression
-
fromJson
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
-