code: public void marshall(CommandInvocation commandInvocation, ProtocolMarshaller protocolMarshaller) {
  
          if (commandInvocation == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(commandInvocation.getCommandId(), COMMANDID_BINDING);
              protocolMarshaller.marshall(commandInvocation.getInstanceId(), INSTANCEID_BINDING);
              protocolMarshaller.marshall(commandInvocation.getInstanceName(), INSTANCENAME_BINDING);
              protocolMarshaller.marshall(commandInvocation.getComment(), COMMENT_BINDING);
              protocolMarshaller.marshall(commandInvocation.getDocumentName(), DOCUMENTNAME_BINDING);
              protocolMarshaller.marshall(commandInvocation.getDocumentVersion(), DOCUMENTVERSION_BINDING);
              protocolMarshaller.marshall(commandInvocation.getRequestedDateTime(), REQUESTEDDATETIME_BINDING);
              protocolMarshaller.marshall(commandInvocation.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(commandInvocation.getStatusDetails(), STATUSDETAILS_BINDING);
              protocolMarshaller.marshall(commandInvocation.getTraceOutput(), TRACEOUTPUT_BINDING);
              protocolMarshaller.marshall(commandInvocation.getStandardOutputUrl(), STANDARDOUTPUTURL_BINDING);
              protocolMarshaller.marshall(commandInvocation.getStandardErrorUrl(), STANDARDERRORURL_BINDING);
              protocolMarshaller.marshall(commandInvocation.getCommandPlugins(), COMMANDPLUGINS_BINDING);
              protocolMarshaller.marshall(commandInvocation.getServiceRole(), SERVICEROLE_BINDING);
              protocolMarshaller.marshall(commandInvocation.getNotificationConfig(), NOTIFICATIONCONFIG_BINDING);
              protocolMarshaller.marshall(commandInvocation.getCloudWatchOutputConfig(), CLOUDWATCHOUTPUTCONFIG_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.