code: public void marshall(MetricFilter metricFilter, ProtocolMarshaller protocolMarshaller) {
  
          if (metricFilter == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(metricFilter.getFilterName(), FILTERNAME_BINDING);
              protocolMarshaller.marshall(metricFilter.getFilterPattern(), FILTERPATTERN_BINDING);
              protocolMarshaller.marshall(metricFilter.getMetricTransformations(), METRICTRANSFORMATIONS_BINDING);
              protocolMarshaller.marshall(metricFilter.getCreationTime(), CREATIONTIME_BINDING);
              protocolMarshaller.marshall(metricFilter.getLogGroupName(), LOGGROUPNAME_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.