code: public void marshall(ContainerInstance containerInstance, ProtocolMarshaller protocolMarshaller) {
  
          if (containerInstance == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(containerInstance.getContainerInstanceArn(), CONTAINERINSTANCEARN_BINDING);
              protocolMarshaller.marshall(containerInstance.getEc2InstanceId(), EC2INSTANCEID_BINDING);
              protocolMarshaller.marshall(containerInstance.getVersion(), VERSION_BINDING);
              protocolMarshaller.marshall(containerInstance.getVersionInfo(), VERSIONINFO_BINDING);
              protocolMarshaller.marshall(containerInstance.getRemainingResources(), REMAININGRESOURCES_BINDING);
              protocolMarshaller.marshall(containerInstance.getRegisteredResources(), REGISTEREDRESOURCES_BINDING);
              protocolMarshaller.marshall(containerInstance.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(containerInstance.getAgentConnected(), AGENTCONNECTED_BINDING);
              protocolMarshaller.marshall(containerInstance.getRunningTasksCount(), RUNNINGTASKSCOUNT_BINDING);
              protocolMarshaller.marshall(containerInstance.getPendingTasksCount(), PENDINGTASKSCOUNT_BINDING);
              protocolMarshaller.marshall(containerInstance.getAgentUpdateStatus(), AGENTUPDATESTATUS_BINDING);
              protocolMarshaller.marshall(containerInstance.getAttributes(), ATTRIBUTES_BINDING);
              protocolMarshaller.marshall(containerInstance.getRegisteredAt(), REGISTEREDAT_BINDING);
              protocolMarshaller.marshall(containerInstance.getAttachments(), ATTACHMENTS_BINDING);
              protocolMarshaller.marshall(containerInstance.getTags(), TAGS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.