docs: public void marshall(TaskDefinition taskDefinition, ProtocolMarshaller protocolMarshaller) {
  
          if (taskDefinition == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(taskDefinition.getTaskDefinitionArn(), TASKDEFINITIONARN_BINDING);
              protocolMarshaller.marshall(taskDefinition.getContainerDefinitions(), CONTAINERDEFINITIONS_BINDING);
              protocolMarshaller.marshall(taskDefinition.getFamily(), FAMILY_BINDING);
              protocolMarshaller.marshall(taskDefinition.getTaskRoleArn(), TASKROLEARN_BINDING);
              protocolMarshaller.marshall(taskDefinition.getExecutionRoleArn(), EXECUTIONROLEARN_BINDING);
              protocolMarshaller.marshall(taskDefinition.getNetworkMode(), NETWORKMODE_BINDING);
              protocolMarshaller.marshall(taskDefinition.getRevision(), REVISION_BINDING);
              protocolMarshaller.marshall(taskDefinition.getVolumes(), VOLUMES_BINDING);
              protocolMarshaller.marshall(taskDefinition.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(taskDefinition.getRequiresAttributes(), REQUIRESATTRIBUTES_BINDING);
              protocolMarshaller.marshall(taskDefinition.getPlacementConstraints(), PLACEMENTCONSTRAINTS_BINDING);
              protocolMarshaller.marshall(taskDefinition.getCompatibilities(), COMPATIBILITIES_BINDING);
              protocolMarshaller.marshall(taskDefinition.getRequiresCompatibilities(), REQUIRESCOMPATIBILITIES_BINDING);
              protocolMarshaller.marshall(taskDefinition.getCpu(), CPU_BINDING);
              protocolMarshaller.marshall(taskDefinition.getMemory(), MEMORY_BINDING);
              protocolMarshaller.marshall(taskDefinition.getPidMode(), PIDMODE_BINDING);
              protocolMarshaller.marshall(taskDefinition.getIpcMode(), IPCMODE_BINDING);
              protocolMarshaller.marshall(taskDefinition.getProxyConfiguration(), PROXYCONFIGURATION_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }