code: public void marshall(TrainingJobDefinition trainingJobDefinition, ProtocolMarshaller protocolMarshaller) {
  
          if (trainingJobDefinition == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(trainingJobDefinition.getTrainingInputMode(), TRAININGINPUTMODE_BINDING);
              protocolMarshaller.marshall(trainingJobDefinition.getHyperParameters(), HYPERPARAMETERS_BINDING);
              protocolMarshaller.marshall(trainingJobDefinition.getInputDataConfig(), INPUTDATACONFIG_BINDING);
              protocolMarshaller.marshall(trainingJobDefinition.getOutputDataConfig(), OUTPUTDATACONFIG_BINDING);
              protocolMarshaller.marshall(trainingJobDefinition.getResourceConfig(), RESOURCECONFIG_BINDING);
              protocolMarshaller.marshall(trainingJobDefinition.getStoppingCondition(), STOPPINGCONDITION_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.