Interface CreateListenerRequest.Builder

    • Method Detail

      • clientToken

        CreateListenerRequest.Builder clientToken​(String clientToken)

        A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.

        Parameters:
        clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • defaultAction

        CreateListenerRequest.Builder defaultAction​(RuleAction defaultAction)

        The action for the default rule. Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. Each rule must include exactly one of the following types of actions: forward or fixed-response, and it must be the last action to be performed.

        Parameters:
        defaultAction - The action for the default rule. Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. Each rule must include exactly one of the following types of actions: forward or fixed-response, and it must be the last action to be performed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • defaultAction

        default CreateListenerRequest.Builder defaultAction​(Consumer<RuleAction.Builder> defaultAction)

        The action for the default rule. Each listener has a default rule. Each rule consists of a priority, one or more actions, and one or more conditions. The default rule is the rule that's used if no other rules match. Each rule must include exactly one of the following types of actions: forward or fixed-response, and it must be the last action to be performed.

        This is a convenience method that creates an instance of the RuleAction.Builder avoiding the need to create one manually via RuleAction.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to defaultAction(RuleAction).

        Parameters:
        defaultAction - a consumer that will call methods on RuleAction.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        defaultAction(RuleAction)
      • name

        CreateListenerRequest.Builder name​(String name)

        The name of the listener. A listener name must be unique within a service. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.

        Parameters:
        name - The name of the listener. A listener name must be unique within a service. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • port

        CreateListenerRequest.Builder port​(Integer port)

        The listener port. You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the default is 443.

        Parameters:
        port - The listener port. You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the default is 443.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceIdentifier

        CreateListenerRequest.Builder serviceIdentifier​(String serviceIdentifier)

        The ID or Amazon Resource Name (ARN) of the service.

        Parameters:
        serviceIdentifier - The ID or Amazon Resource Name (ARN) of the service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateListenerRequest.Builder tags​(Map<String,​String> tags)

        The tags for the listener.

        Parameters:
        tags - The tags for the listener.
        Returns:
        Returns a reference to this object so that method calls can be chained together.