public void marshall(PutTelemetryRecordsRequest putTelemetryRecordsRequest, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(putTelemetryRecordsRequest.getTelemetryRecords(), TELEMETRYRECORDS_BINDING);
            protocolMarshaller.marshall(putTelemetryRecordsRequest.getEC2InstanceId(), EC2INSTANCEID_BINDING);
            protocolMarshaller.marshall(putTelemetryRecordsRequest.getHostname(), HOSTNAME_BINDING);
            protocolMarshaller.marshall(putTelemetryRecordsRequest.getResourceARN(), RESOURCEARN_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( PutTelemetryRecordsRequest putTelemetryRecordsRequest , ProtocolMarshaller protocolMarshaller ) { if ( putTelemetryRecordsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( putTelemetryRecordsRequest . getTelemetryRecords ( ) , TELEMETRYRECORDS_BINDING ) ; protocolMarshaller . marshall ( putTelemetryRecordsRequest . getEC2InstanceId ( ) , EC2INSTANCEID_BINDING ) ; protocolMarshaller . marshall ( putTelemetryRecordsRequest . getHostname ( ) , HOSTNAME_BINDING ) ; protocolMarshaller . marshall ( putTelemetryRecordsRequest . getResourceARN ( ) , RESOURCEARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.