Interface HttpAction.Builder

    • Method Detail

      • url

        HttpAction.Builder url​(String url)

        The endpoint URL. If substitution templates are used in the URL, you must also specify a confirmationUrl. If this is a new destination, a new TopicRuleDestination is created if possible.

        Parameters:
        url - The endpoint URL. If substitution templates are used in the URL, you must also specify a confirmationUrl. If this is a new destination, a new TopicRuleDestination is created if possible.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • confirmationUrl

        HttpAction.Builder confirmationUrl​(String confirmationUrl)

        The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.

        Parameters:
        confirmationUrl - The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headers

        HttpAction.Builder headers​(Collection<HttpActionHeader> headers)

        The HTTP headers to send with the message data.

        Parameters:
        headers - The HTTP headers to send with the message data.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headers

        HttpAction.Builder headers​(HttpActionHeader... headers)

        The HTTP headers to send with the message data.

        Parameters:
        headers - The HTTP headers to send with the message data.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • auth

        HttpAction.Builder auth​(HttpAuthorization auth)

        The authentication method to use when sending data to an HTTPS endpoint.

        Parameters:
        auth - The authentication method to use when sending data to an HTTPS endpoint.
        Returns:
        Returns a reference to this object so that method calls can be chained together.