public void marshall(CampaignEmailMessage campaignEmailMessage, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(campaignEmailMessage.getBody(), BODY_BINDING);
            protocolMarshaller.marshall(campaignEmailMessage.getFromAddress(), FROMADDRESS_BINDING);
            protocolMarshaller.marshall(campaignEmailMessage.getHtmlBody(), HTMLBODY_BINDING);
            protocolMarshaller.marshall(campaignEmailMessage.getTitle(), TITLE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( CampaignEmailMessage campaignEmailMessage , ProtocolMarshaller protocolMarshaller ) { if ( campaignEmailMessage == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( campaignEmailMessage . getBody ( ) , BODY_BINDING ) ; protocolMarshaller . marshall ( campaignEmailMessage . getFromAddress ( ) , FROMADDRESS_BINDING ) ; protocolMarshaller . marshall ( campaignEmailMessage . getHtmlBody ( ) , HTMLBODY_BINDING ) ; protocolMarshaller . marshall ( campaignEmailMessage . getTitle ( ) , TITLE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.