code: public void marshall(CustomizedMetricSpecification customizedMetricSpecification, ProtocolMarshaller protocolMarshaller) {
  
          if (customizedMetricSpecification == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(customizedMetricSpecification.getMetricName(), METRICNAME_BINDING);
              protocolMarshaller.marshall(customizedMetricSpecification.getNamespace(), NAMESPACE_BINDING);
              protocolMarshaller.marshall(customizedMetricSpecification.getDimensions(), DIMENSIONS_BINDING);
              protocolMarshaller.marshall(customizedMetricSpecification.getStatistic(), STATISTIC_BINDING);
              protocolMarshaller.marshall(customizedMetricSpecification.getUnit(), UNIT_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.