code: public void marshall(Connection connection, ProtocolMarshaller protocolMarshaller) {
  
          if (connection == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(connection.getName(), NAME_BINDING);
              protocolMarshaller.marshall(connection.getDescription(), DESCRIPTION_BINDING);
              protocolMarshaller.marshall(connection.getConnectionType(), CONNECTIONTYPE_BINDING);
              protocolMarshaller.marshall(connection.getMatchCriteria(), MATCHCRITERIA_BINDING);
              protocolMarshaller.marshall(connection.getConnectionProperties(), CONNECTIONPROPERTIES_BINDING);
              protocolMarshaller.marshall(connection.getPhysicalConnectionRequirements(), PHYSICALCONNECTIONREQUIREMENTS_BINDING);
              protocolMarshaller.marshall(connection.getCreationTime(), CREATIONTIME_BINDING);
              protocolMarshaller.marshall(connection.getLastUpdatedTime(), LASTUPDATEDTIME_BINDING);
              protocolMarshaller.marshall(connection.getLastUpdatedBy(), LASTUPDATEDBY_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.