public void marshall(Trace trace, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(trace.getId(), ID_BINDING);
            protocolMarshaller.marshall(trace.getDuration(), DURATION_BINDING);
            protocolMarshaller.marshall(trace.getSegments(), SEGMENTS_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Trace trace , ProtocolMarshaller protocolMarshaller ) { if ( trace == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( trace . getId ( ) , ID_BINDING ) ; protocolMarshaller . marshall ( trace . getDuration ( ) , DURATION_BINDING ) ; protocolMarshaller . marshall ( trace . getSegments ( ) , SEGMENTS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.