Class UpstreamTemplateArgs.Builder

  • Enclosing class:
    UpstreamTemplateArgs

    public static final class UpstreamTemplateArgs.Builder
    extends java.lang.Object
    • Method Detail

      • categoryPattern

        public UpstreamTemplateArgs.Builder categoryPattern​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> categoryPattern)
        Parameters:
        categoryPattern - Gets or sets the matching pattern for category names. If not set, it matches any category. There are 3 kind of patterns supported: 1. "*", it to matches any category name. 2. Combine multiple categories with ",", for example "connections,messages", it matches category "connections" and "messages". 3. The single category name, for example, "connections", it matches the category "connections".
        Returns:
        builder
      • categoryPattern

        public UpstreamTemplateArgs.Builder categoryPattern​(java.lang.String categoryPattern)
        Parameters:
        categoryPattern - Gets or sets the matching pattern for category names. If not set, it matches any category. There are 3 kind of patterns supported: 1. "*", it to matches any category name. 2. Combine multiple categories with ",", for example "connections,messages", it matches category "connections" and "messages". 3. The single category name, for example, "connections", it matches the category "connections".
        Returns:
        builder
      • eventPattern

        public UpstreamTemplateArgs.Builder eventPattern​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> eventPattern)
        Parameters:
        eventPattern - Gets or sets the matching pattern for event names. If not set, it matches any event. There are 3 kind of patterns supported: 1. "*", it to matches any event name. 2. Combine multiple events with ",", for example "connect,disconnect", it matches event "connect" and "disconnect". 3. The single event name, for example, "connect", it matches "connect".
        Returns:
        builder
      • eventPattern

        public UpstreamTemplateArgs.Builder eventPattern​(java.lang.String eventPattern)
        Parameters:
        eventPattern - Gets or sets the matching pattern for event names. If not set, it matches any event. There are 3 kind of patterns supported: 1. "*", it to matches any event name. 2. Combine multiple events with ",", for example "connect,disconnect", it matches event "connect" and "disconnect". 3. The single event name, for example, "connect", it matches "connect".
        Returns:
        builder
      • hubPattern

        public UpstreamTemplateArgs.Builder hubPattern​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> hubPattern)
        Parameters:
        hubPattern - Gets or sets the matching pattern for hub names. If not set, it matches any hub. There are 3 kind of patterns supported: 1. "*", it to matches any hub name. 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches "hub1" and "hub2". 3. The single hub name, for example, "hub1", it matches "hub1".
        Returns:
        builder
      • hubPattern

        public UpstreamTemplateArgs.Builder hubPattern​(java.lang.String hubPattern)
        Parameters:
        hubPattern - Gets or sets the matching pattern for hub names. If not set, it matches any hub. There are 3 kind of patterns supported: 1. "*", it to matches any hub name. 2. Combine multiple hubs with ",", for example "hub1,hub2", it matches "hub1" and "hub2". 3. The single hub name, for example, "hub1", it matches "hub1".
        Returns:
        builder
      • urlTemplate

        public UpstreamTemplateArgs.Builder urlTemplate​(com.pulumi.core.Output<java.lang.String> urlTemplate)
        Parameters:
        urlTemplate - Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, {category} {event} inside the template, the value of the Upstream URL is dynamically calculated when the client request comes in. For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client request from hub `chat` connects, it will first POST to this URL: `http://example.com/chat/api/connect`.
        Returns:
        builder
      • urlTemplate

        public UpstreamTemplateArgs.Builder urlTemplate​(java.lang.String urlTemplate)
        Parameters:
        urlTemplate - Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, {category} {event} inside the template, the value of the Upstream URL is dynamically calculated when the client request comes in. For example, if the urlTemplate is `http://example.com/{hub}/api/{event}`, with a client request from hub `chat` connects, it will first POST to this URL: `http://example.com/chat/api/connect`.
        Returns:
        builder