public void marshall(ConsumedCapacity consumedCapacity, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(consumedCapacity.getTableName(), TABLENAME_BINDING);
            protocolMarshaller.marshall(consumedCapacity.getCapacityUnits(), CAPACITYUNITS_BINDING);
            protocolMarshaller.marshall(consumedCapacity.getReadCapacityUnits(), READCAPACITYUNITS_BINDING);
            protocolMarshaller.marshall(consumedCapacity.getWriteCapacityUnits(), WRITECAPACITYUNITS_BINDING);
            protocolMarshaller.marshall(consumedCapacity.getTable(), TABLE_BINDING);
            protocolMarshaller.marshall(consumedCapacity.getLocalSecondaryIndexes(), LOCALSECONDARYINDEXES_BINDING);
            protocolMarshaller.marshall(consumedCapacity.getGlobalSecondaryIndexes(), GLOBALSECONDARYINDEXES_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ConsumedCapacity consumedCapacity , ProtocolMarshaller protocolMarshaller ) { if ( consumedCapacity == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( consumedCapacity . getTableName ( ) , TABLENAME_BINDING ) ; protocolMarshaller . marshall ( consumedCapacity . getCapacityUnits ( ) , CAPACITYUNITS_BINDING ) ; protocolMarshaller . marshall ( consumedCapacity . getReadCapacityUnits ( ) , READCAPACITYUNITS_BINDING ) ; protocolMarshaller . marshall ( consumedCapacity . getWriteCapacityUnits ( ) , WRITECAPACITYUNITS_BINDING ) ; protocolMarshaller . marshall ( consumedCapacity . getTable ( ) , TABLE_BINDING ) ; protocolMarshaller . marshall ( consumedCapacity . getLocalSecondaryIndexes ( ) , LOCALSECONDARYINDEXES_BINDING ) ; protocolMarshaller . marshall ( consumedCapacity . getGlobalSecondaryIndexes ( ) , GLOBALSECONDARYINDEXES_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.