public void marshall(Device device, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(device.getArn(), ARN_BINDING);
            protocolMarshaller.marshall(device.getName(), NAME_BINDING);
            protocolMarshaller.marshall(device.getManufacturer(), MANUFACTURER_BINDING);
            protocolMarshaller.marshall(device.getModel(), MODEL_BINDING);
            protocolMarshaller.marshall(device.getModelId(), MODELID_BINDING);
            protocolMarshaller.marshall(device.getFormFactor(), FORMFACTOR_BINDING);
            protocolMarshaller.marshall(device.getPlatform(), PLATFORM_BINDING);
            protocolMarshaller.marshall(device.getOs(), OS_BINDING);
            protocolMarshaller.marshall(device.getCpu(), CPU_BINDING);
            protocolMarshaller.marshall(device.getResolution(), RESOLUTION_BINDING);
            protocolMarshaller.marshall(device.getHeapSize(), HEAPSIZE_BINDING);
            protocolMarshaller.marshall(device.getMemory(), MEMORY_BINDING);
            protocolMarshaller.marshall(device.getImage(), IMAGE_BINDING);
            protocolMarshaller.marshall(device.getCarrier(), CARRIER_BINDING);
            protocolMarshaller.marshall(device.getRadio(), RADIO_BINDING);
            protocolMarshaller.marshall(device.getRemoteAccessEnabled(), REMOTEACCESSENABLED_BINDING);
            protocolMarshaller.marshall(device.getRemoteDebugEnabled(), REMOTEDEBUGENABLED_BINDING);
            protocolMarshaller.marshall(device.getFleetType(), FLEETTYPE_BINDING);
            protocolMarshaller.marshall(device.getFleetName(), FLEETNAME_BINDING);
            protocolMarshaller.marshall(device.getInstances(), INSTANCES_BINDING);
            protocolMarshaller.marshall(device.getAvailability(), AVAILABILITY_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Device device , ProtocolMarshaller protocolMarshaller ) { if ( device == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( device . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( device . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( device . getManufacturer ( ) , MANUFACTURER_BINDING ) ; protocolMarshaller . marshall ( device . getModel ( ) , MODEL_BINDING ) ; protocolMarshaller . marshall ( device . getModelId ( ) , MODELID_BINDING ) ; protocolMarshaller . marshall ( device . getFormFactor ( ) , FORMFACTOR_BINDING ) ; protocolMarshaller . marshall ( device . getPlatform ( ) , PLATFORM_BINDING ) ; protocolMarshaller . marshall ( device . getOs ( ) , OS_BINDING ) ; protocolMarshaller . marshall ( device . getCpu ( ) , CPU_BINDING ) ; protocolMarshaller . marshall ( device . getResolution ( ) , RESOLUTION_BINDING ) ; protocolMarshaller . marshall ( device . getHeapSize ( ) , HEAPSIZE_BINDING ) ; protocolMarshaller . marshall ( device . getMemory ( ) , MEMORY_BINDING ) ; protocolMarshaller . marshall ( device . getImage ( ) , IMAGE_BINDING ) ; protocolMarshaller . marshall ( device . getCarrier ( ) , CARRIER_BINDING ) ; protocolMarshaller . marshall ( device . getRadio ( ) , RADIO_BINDING ) ; protocolMarshaller . marshall ( device . getRemoteAccessEnabled ( ) , REMOTEACCESSENABLED_BINDING ) ; protocolMarshaller . marshall ( device . getRemoteDebugEnabled ( ) , REMOTEDEBUGENABLED_BINDING ) ; protocolMarshaller . marshall ( device . getFleetType ( ) , FLEETTYPE_BINDING ) ; protocolMarshaller . marshall ( device . getFleetName ( ) , FLEETNAME_BINDING ) ; protocolMarshaller . marshall ( device . getInstances ( ) , INSTANCES_BINDING ) ; protocolMarshaller . marshall ( device . getAvailability ( ) , AVAILABILITY_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.