Class Attachment
java.lang.Object
sendpost_java_sdk.Attachment
@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 Attachment
extends Object
Attachment
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AttachmentCreate an instance of Attachment given an JSON stringBase64 encoded attachment contentName of the attachment fileinthashCode()voidsetContent(String content) voidsetFilename(String filename) toJson()Convert an instance of Attachment 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_CONTENT
- See Also:
-
SERIALIZED_NAME_FILENAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
content
-
getContent
-
setContent
-
filename
-
getFilename
-
setFilename
-
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 Attachment
-
fromJson
Create an instance of Attachment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Attachment
- Throws:
IOException- if the JSON string is invalid with respect to Attachment
-
toJson
-