public void marshall(NeighborConnectionDetail neighborConnectionDetail, ProtocolMarshaller protocolMarshaller) {

        if (neighborConnectionDetail == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(neighborConnectionDetail.getSourceServerId(), SOURCESERVERID_BINDING);
            protocolMarshaller.marshall(neighborConnectionDetail.getDestinationServerId(), DESTINATIONSERVERID_BINDING);
            protocolMarshaller.marshall(neighborConnectionDetail.getDestinationPort(), DESTINATIONPORT_BINDING);
            protocolMarshaller.marshall(neighborConnectionDetail.getTransportProtocol(), TRANSPORTPROTOCOL_BINDING);
            protocolMarshaller.marshall(neighborConnectionDetail.getConnectionsCount(), CONNECTIONSCOUNT_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }
public void marshall ( NeighborConnectionDetail neighborConnectionDetail , ProtocolMarshaller protocolMarshaller ) { if ( neighborConnectionDetail == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( neighborConnectionDetail . getSourceServerId ( ) , SOURCESERVERID_BINDING ) ; protocolMarshaller . marshall ( neighborConnectionDetail . getDestinationServerId ( ) , DESTINATIONSERVERID_BINDING ) ; protocolMarshaller . marshall ( neighborConnectionDetail . getDestinationPort ( ) , DESTINATIONPORT_BINDING ) ; protocolMarshaller . marshall ( neighborConnectionDetail . getTransportProtocol ( ) , TRANSPORTPROTOCOL_BINDING ) ; protocolMarshaller . marshall ( neighborConnectionDetail . getConnectionsCount ( ) , CONNECTIONSCOUNT_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } }
Marshall the given parameter object.