public void marshall(SummarizedCounter summarizedCounter, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(summarizedCounter.getName(), NAME_BINDING);
            protocolMarshaller.marshall(summarizedCounter.getMax(), MAX_BINDING);
            protocolMarshaller.marshall(summarizedCounter.getAverage(), AVERAGE_BINDING);
            protocolMarshaller.marshall(summarizedCounter.getSum(), SUM_BINDING);
            protocolMarshaller.marshall(summarizedCounter.getN(), N_BINDING);
            protocolMarshaller.marshall(summarizedCounter.getUnit(), UNIT_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( SummarizedCounter summarizedCounter , ProtocolMarshaller protocolMarshaller ) { if ( summarizedCounter == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( summarizedCounter . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( summarizedCounter . getMax ( ) , MAX_BINDING ) ; protocolMarshaller . marshall ( summarizedCounter . getAverage ( ) , AVERAGE_BINDING ) ; protocolMarshaller . marshall ( summarizedCounter . getSum ( ) , SUM_BINDING ) ; protocolMarshaller . marshall ( summarizedCounter . getN ( ) , N_BINDING ) ; protocolMarshaller . marshall ( summarizedCounter . getUnit ( ) , UNIT_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.