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
  • Field Details

  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • content

      public Attachment content(@Nullable String content)
    • getContent

      @Nullable public String getContent()
      Base64 encoded attachment content
      Returns:
      content
    • setContent

      public void setContent(@Nullable String content)
    • filename

      public Attachment filename(@Nullable String filename)
    • getFilename

      @Nullable public String getFilename()
      Name of the attachment file
      Returns:
      filename
    • setFilename

      public void setFilename(@Nullable String filename)
    • 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 Attachment
    • fromJson

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

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