docs: public void marshall(AlgorithmSpecification algorithmSpecification, ProtocolMarshaller protocolMarshaller) {
  
          if (algorithmSpecification == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(algorithmSpecification.getTrainingImage(), TRAININGIMAGE_BINDING);
              protocolMarshaller.marshall(algorithmSpecification.getAlgorithmName(), ALGORITHMNAME_BINDING);
              protocolMarshaller.marshall(algorithmSpecification.getTrainingInputMode(), TRAININGINPUTMODE_BINDING);
              protocolMarshaller.marshall(algorithmSpecification.getMetricDefinitions(), METRICDEFINITIONS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }