code: public void marshall(Connection connection, ProtocolMarshaller protocolMarshaller) {
  
          if (connection == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(connection.getOwnerAccount(), OWNERACCOUNT_BINDING);
              protocolMarshaller.marshall(connection.getConnectionId(), CONNECTIONID_BINDING);
              protocolMarshaller.marshall(connection.getConnectionName(), CONNECTIONNAME_BINDING);
              protocolMarshaller.marshall(connection.getConnectionState(), CONNECTIONSTATE_BINDING);
              protocolMarshaller.marshall(connection.getRegion(), REGION_BINDING);
              protocolMarshaller.marshall(connection.getLocation(), LOCATION_BINDING);
              protocolMarshaller.marshall(connection.getBandwidth(), BANDWIDTH_BINDING);
              protocolMarshaller.marshall(connection.getVlan(), VLAN_BINDING);
              protocolMarshaller.marshall(connection.getPartnerName(), PARTNERNAME_BINDING);
              protocolMarshaller.marshall(connection.getLoaIssueTime(), LOAISSUETIME_BINDING);
              protocolMarshaller.marshall(connection.getLagId(), LAGID_BINDING);
              protocolMarshaller.marshall(connection.getAwsDevice(), AWSDEVICE_BINDING);
              protocolMarshaller.marshall(connection.getJumboFrameCapable(), JUMBOFRAMECAPABLE_BINDING);
              protocolMarshaller.marshall(connection.getAwsDeviceV2(), AWSDEVICEV2_BINDING);
              protocolMarshaller.marshall(connection.getHasLogicalRedundancy(), HASLOGICALREDUNDANCY_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.