docs: public void marshall(AgentPreview agentPreview, ProtocolMarshaller protocolMarshaller) {
  
          if (agentPreview == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(agentPreview.getHostname(), HOSTNAME_BINDING);
              protocolMarshaller.marshall(agentPreview.getAgentId(), AGENTID_BINDING);
              protocolMarshaller.marshall(agentPreview.getAutoScalingGroup(), AUTOSCALINGGROUP_BINDING);
              protocolMarshaller.marshall(agentPreview.getAgentHealth(), AGENTHEALTH_BINDING);
              protocolMarshaller.marshall(agentPreview.getAgentVersion(), AGENTVERSION_BINDING);
              protocolMarshaller.marshall(agentPreview.getOperatingSystem(), OPERATINGSYSTEM_BINDING);
              protocolMarshaller.marshall(agentPreview.getKernelVersion(), KERNELVERSION_BINDING);
              protocolMarshaller.marshall(agentPreview.getIpv4Address(), IPV4ADDRESS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }