code: public AdvancedNetworkConfig setRestEndpointConfig(RestServerEndpointConfig restServerEndpointConfig) {
          restServerEndpointConfig.setProtocolType(ProtocolType.REST);
          endpointConfigs.put(REST, restServerEndpointConfig);
          return this;
      }
docs: Sets the server socket endpoint config for {@link ProtocolType#REST REST} protocol. If another
  {@code ServerSocketEndpointConfig} was previously set, it will be replaced. When starting a Hazelcast
  instance with {@code AdvancedNetworkConfig} enabled, its configuration may include
  at most one {@code ServerSocketEndpointConfig} for protocol type {@code REST}.
  
  @param restServerEndpointConfig the server socket endpoint configuration
  @return this object for fluent chaining