function getParameters({ parameters, fields, host, port }) {
  if (fields.routingKey) {
    parameters.routing_key = fields.routingKey
  }
  if (fields.correlationId) {
    parameters.correlation_id = fields.correlationId
  }
  if (fields.replyTo) {
    parameters.reply_to = fields.replyTo
  }

  if (host) {
    parameters.host = host
  }

  if (port) {
    parameters.port = port
  }

  return new QueueMessageParameters(parameters)
}
Sets the relevant message parameters

@param {object} params to function
@param {object} params.parameters object used to store the message parameters
@param {object} params.fields fields from the sendMessage method
@param {string} params.host hostname
@param {number} params.port port
@returns {QueueMessageParameters} parameters updated parameters