public void marshall(DeviceDescription deviceDescription, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(deviceDescription.getArn(), ARN_BINDING);
            protocolMarshaller.marshall(deviceDescription.getAttributes(), ATTRIBUTES_BINDING);
            protocolMarshaller.marshall(deviceDescription.getDeviceId(), DEVICEID_BINDING);
            protocolMarshaller.marshall(deviceDescription.getEnabled(), ENABLED_BINDING);
            protocolMarshaller.marshall(deviceDescription.getRemainingLife(), REMAININGLIFE_BINDING);
            protocolMarshaller.marshall(deviceDescription.getType(), TYPE_BINDING);
            protocolMarshaller.marshall(deviceDescription.getTags(), TAGS_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( DeviceDescription deviceDescription , ProtocolMarshaller protocolMarshaller ) { if ( deviceDescription == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deviceDescription . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( deviceDescription . getAttributes ( ) , ATTRIBUTES_BINDING ) ; protocolMarshaller . marshall ( deviceDescription . getDeviceId ( ) , DEVICEID_BINDING ) ; protocolMarshaller . marshall ( deviceDescription . getEnabled ( ) , ENABLED_BINDING ) ; protocolMarshaller . marshall ( deviceDescription . getRemainingLife ( ) , REMAININGLIFE_BINDING ) ; protocolMarshaller . marshall ( deviceDescription . getType ( ) , TYPE_BINDING ) ; protocolMarshaller . marshall ( deviceDescription . getTags ( ) , TAGS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.