public Attachment getAttachmentById(
            Long attachmentIdParam,
            boolean includeAttachmentDataParam)
    {
        Attachment attachment = new Attachment(attachmentIdParam);

        if(this.serviceTicket != null)
        {
            attachment.setServiceTicket(this.serviceTicket);
        }

        return new Attachment(this.postJson(
                attachment, WS.Path.Attachment.Version1.getById(
                        includeAttachmentDataParam)));
    }
public Attachment getAttachmentById ( Long attachmentIdParam , boolean includeAttachmentDataParam ) { Attachment attachment = new Attachment ( attachmentIdParam ) ; if ( this . serviceTicket != null ) { attachment . setServiceTicket ( this . serviceTicket ) ; } return new Attachment ( this . postJson ( attachment , WS . Path . Attachment . Version1 . getById ( includeAttachmentDataParam ) ) ) ; }
Retrieves a Attachment by Primary Key.

@param attachmentIdParam The Attachment primary key.
@param includeAttachmentDataParam Include the attachment data (Base-64).

@return The Attachment associated with {@code attachmentIdParam}.