code: public void marshall(MetricDatapoint metricDatapoint, ProtocolMarshaller protocolMarshaller) {
  
          if (metricDatapoint == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(metricDatapoint.getAverage(), AVERAGE_BINDING);
              protocolMarshaller.marshall(metricDatapoint.getMaximum(), MAXIMUM_BINDING);
              protocolMarshaller.marshall(metricDatapoint.getMinimum(), MINIMUM_BINDING);
              protocolMarshaller.marshall(metricDatapoint.getSampleCount(), SAMPLECOUNT_BINDING);
              protocolMarshaller.marshall(metricDatapoint.getSum(), SUM_BINDING);
              protocolMarshaller.marshall(metricDatapoint.getTimestamp(), TIMESTAMP_BINDING);
              protocolMarshaller.marshall(metricDatapoint.getUnit(), UNIT_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.