public void marshall(Rule rule, ProtocolMarshaller protocolMarshaller) {

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

        try {
            protocolMarshaller.marshall(rule.getRuleId(), RULEID_BINDING);
            protocolMarshaller.marshall(rule.getName(), NAME_BINDING);
            protocolMarshaller.marshall(rule.getMetricName(), METRICNAME_BINDING);
            protocolMarshaller.marshall(rule.getPredicates(), PREDICATES_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( Rule rule , ProtocolMarshaller protocolMarshaller ) { if ( rule == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( rule . getRuleId ( ) , RULEID_BINDING ) ; protocolMarshaller . marshall ( rule . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( rule . getMetricName ( ) , METRICNAME_BINDING ) ; protocolMarshaller . marshall ( rule . getPredicates ( ) , PREDICATES_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.