public void setEndPort(Integer endPort) {
    this.endPort = endPort;
  }
set the end port

@param endPort the end port
geode-management/src/main/java/org/apache/geode/management/configuration/GatewayReceiver.java