public void marshall(Hits hits, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(hits.getFound(), FOUND_BINDING);
            protocolMarshaller.marshall(hits.getStart(), START_BINDING);
            protocolMarshaller.marshall(hits.getCursor(), CURSOR_BINDING);
            protocolMarshaller.marshall(hits.getHit(), HIT_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Hits hits , ProtocolMarshaller protocolMarshaller ) { if ( hits == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( hits . getFound ( ) , FOUND_BINDING ) ; protocolMarshaller . marshall ( hits . getStart ( ) , START_BINDING ) ; protocolMarshaller . marshall ( hits . getCursor ( ) , CURSOR_BINDING ) ; protocolMarshaller . marshall ( hits . getHit ( ) , HIT_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.