code: public void marshall(GenericAttachment genericAttachment, ProtocolMarshaller protocolMarshaller) {
  
          if (genericAttachment == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(genericAttachment.getTitle(), TITLE_BINDING);
              protocolMarshaller.marshall(genericAttachment.getSubTitle(), SUBTITLE_BINDING);
              protocolMarshaller.marshall(genericAttachment.getAttachmentLinkUrl(), ATTACHMENTLINKURL_BINDING);
              protocolMarshaller.marshall(genericAttachment.getImageUrl(), IMAGEURL_BINDING);
              protocolMarshaller.marshall(genericAttachment.getButtons(), BUTTONS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.