code: public void marshall(ECSTarget eCSTarget, ProtocolMarshaller protocolMarshaller) {
  
          if (eCSTarget == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(eCSTarget.getDeploymentId(), DEPLOYMENTID_BINDING);
              protocolMarshaller.marshall(eCSTarget.getTargetId(), TARGETID_BINDING);
              protocolMarshaller.marshall(eCSTarget.getTargetArn(), TARGETARN_BINDING);
              protocolMarshaller.marshall(eCSTarget.getLastUpdatedAt(), LASTUPDATEDAT_BINDING);
              protocolMarshaller.marshall(eCSTarget.getLifecycleEvents(), LIFECYCLEEVENTS_BINDING);
              protocolMarshaller.marshall(eCSTarget.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(eCSTarget.getTaskSetsInfo(), TASKSETSINFO_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.