code: public void marshall(TrainingSpecification trainingSpecification, ProtocolMarshaller protocolMarshaller) {
  
          if (trainingSpecification == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(trainingSpecification.getTrainingImage(), TRAININGIMAGE_BINDING);
              protocolMarshaller.marshall(trainingSpecification.getTrainingImageDigest(), TRAININGIMAGEDIGEST_BINDING);
              protocolMarshaller.marshall(trainingSpecification.getSupportedHyperParameters(), SUPPORTEDHYPERPARAMETERS_BINDING);
              protocolMarshaller.marshall(trainingSpecification.getSupportedTrainingInstanceTypes(), SUPPORTEDTRAININGINSTANCETYPES_BINDING);
              protocolMarshaller.marshall(trainingSpecification.getSupportsDistributedTraining(), SUPPORTSDISTRIBUTEDTRAINING_BINDING);
              protocolMarshaller.marshall(trainingSpecification.getMetricDefinitions(), METRICDEFINITIONS_BINDING);
              protocolMarshaller.marshall(trainingSpecification.getTrainingChannels(), TRAININGCHANNELS_BINDING);
              protocolMarshaller.marshall(trainingSpecification.getSupportedTuningJobObjectiveMetrics(), SUPPORTEDTUNINGJOBOBJECTIVEMETRICS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.