public void marshall(SendBonusRequest sendBonusRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(sendBonusRequest.getWorkerId(), WORKERID_BINDING);
            protocolMarshaller.marshall(sendBonusRequest.getBonusAmount(), BONUSAMOUNT_BINDING);
            protocolMarshaller.marshall(sendBonusRequest.getAssignmentId(), ASSIGNMENTID_BINDING);
            protocolMarshaller.marshall(sendBonusRequest.getReason(), REASON_BINDING);
            protocolMarshaller.marshall(sendBonusRequest.getUniqueRequestToken(), UNIQUEREQUESTTOKEN_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( SendBonusRequest sendBonusRequest , ProtocolMarshaller protocolMarshaller ) { if ( sendBonusRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( sendBonusRequest . getWorkerId ( ) , WORKERID_BINDING ) ; protocolMarshaller . marshall ( sendBonusRequest . getBonusAmount ( ) , BONUSAMOUNT_BINDING ) ; protocolMarshaller . marshall ( sendBonusRequest . getAssignmentId ( ) , ASSIGNMENTID_BINDING ) ; protocolMarshaller . marshall ( sendBonusRequest . getReason ( ) , REASON_BINDING ) ; protocolMarshaller . marshall ( sendBonusRequest . getUniqueRequestToken ( ) , UNIQUEREQUESTTOKEN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.