public void marshall(Service service, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(service.getAction(), ACTION_BINDING);
            protocolMarshaller.marshall(service.getArchived(), ARCHIVED_BINDING);
            protocolMarshaller.marshall(service.getCount(), COUNT_BINDING);
            protocolMarshaller.marshall(service.getDetectorId(), DETECTORID_BINDING);
            protocolMarshaller.marshall(service.getEventFirstSeen(), EVENTFIRSTSEEN_BINDING);
            protocolMarshaller.marshall(service.getEventLastSeen(), EVENTLASTSEEN_BINDING);
            protocolMarshaller.marshall(service.getResourceRole(), RESOURCEROLE_BINDING);
            protocolMarshaller.marshall(service.getServiceName(), SERVICENAME_BINDING);
            protocolMarshaller.marshall(service.getUserFeedback(), USERFEEDBACK_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Service service , ProtocolMarshaller protocolMarshaller ) { if ( service == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( service . getAction ( ) , ACTION_BINDING ) ; protocolMarshaller . marshall ( service . getArchived ( ) , ARCHIVED_BINDING ) ; protocolMarshaller . marshall ( service . getCount ( ) , COUNT_BINDING ) ; protocolMarshaller . marshall ( service . getDetectorId ( ) , DETECTORID_BINDING ) ; protocolMarshaller . marshall ( service . getEventFirstSeen ( ) , EVENTFIRSTSEEN_BINDING ) ; protocolMarshaller . marshall ( service . getEventLastSeen ( ) , EVENTLASTSEEN_BINDING ) ; protocolMarshaller . marshall ( service . getResourceRole ( ) , RESOURCEROLE_BINDING ) ; protocolMarshaller . marshall ( service . getServiceName ( ) , SERVICENAME_BINDING ) ; protocolMarshaller . marshall ( service . getUserFeedback ( ) , USERFEEDBACK_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.