public void marshall(CommentMetadata commentMetadata, ProtocolMarshaller protocolMarshaller) {

        if (commentMetadata == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(commentMetadata.getCommentId(), COMMENTID_BINDING);
            protocolMarshaller.marshall(commentMetadata.getContributor(), CONTRIBUTOR_BINDING);
            protocolMarshaller.marshall(commentMetadata.getCreatedTimestamp(), CREATEDTIMESTAMP_BINDING);
            protocolMarshaller.marshall(commentMetadata.getCommentStatus(), COMMENTSTATUS_BINDING);
            protocolMarshaller.marshall(commentMetadata.getRecipientId(), RECIPIENTID_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( CommentMetadata commentMetadata , ProtocolMarshaller protocolMarshaller ) { if ( commentMetadata == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( commentMetadata . getCommentId ( ) , COMMENTID_BINDING ) ; protocolMarshaller . marshall ( commentMetadata . getContributor ( ) , CONTRIBUTOR_BINDING ) ; protocolMarshaller . marshall ( commentMetadata . getCreatedTimestamp ( ) , CREATEDTIMESTAMP_BINDING ) ; protocolMarshaller . marshall ( commentMetadata . getCommentStatus ( ) , COMMENTSTATUS_BINDING ) ; protocolMarshaller . marshall ( commentMetadata . getRecipientId ( ) , RECIPIENTID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.