public void marshall(ComplianceViolator complianceViolator, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(complianceViolator.getResourceId(), RESOURCEID_BINDING);
            protocolMarshaller.marshall(complianceViolator.getViolationReason(), VIOLATIONREASON_BINDING);
            protocolMarshaller.marshall(complianceViolator.getResourceType(), RESOURCETYPE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( ComplianceViolator complianceViolator , ProtocolMarshaller protocolMarshaller ) { if ( complianceViolator == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( complianceViolator . getResourceId ( ) , RESOURCEID_BINDING ) ; protocolMarshaller . marshall ( complianceViolator . getViolationReason ( ) , VIOLATIONREASON_BINDING ) ; protocolMarshaller . marshall ( complianceViolator . getResourceType ( ) , RESOURCETYPE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.