code: public void marshall(WorkGroupConfiguration workGroupConfiguration, ProtocolMarshaller protocolMarshaller) {
  
          if (workGroupConfiguration == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(workGroupConfiguration.getResultConfiguration(), RESULTCONFIGURATION_BINDING);
              protocolMarshaller.marshall(workGroupConfiguration.getEnforceWorkGroupConfiguration(), ENFORCEWORKGROUPCONFIGURATION_BINDING);
              protocolMarshaller.marshall(workGroupConfiguration.getPublishCloudWatchMetricsEnabled(), PUBLISHCLOUDWATCHMETRICSENABLED_BINDING);
              protocolMarshaller.marshall(workGroupConfiguration.getBytesScannedCutoffPerQuery(), BYTESSCANNEDCUTOFFPERQUERY_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.