public static interface HttpAction.Builder extends SdkPojo, CopyableBuilder<HttpAction.Builder,HttpAction>
Modifier and Type | Method and Description |
---|---|
default HttpAction.Builder |
auth(Consumer<HttpAuthorization.Builder> auth)
The authentication method to use when sending data to an HTTPS endpoint.
|
HttpAction.Builder |
auth(HttpAuthorization auth)
The authentication method to use when sending data to an HTTPS endpoint.
|
HttpAction.Builder |
confirmationUrl(String confirmationUrl)
The URL to which IoT sends a confirmation message.
|
HttpAction.Builder |
headers(Collection<HttpActionHeader> headers)
The HTTP headers to send with the message data.
|
HttpAction.Builder |
headers(Consumer<HttpActionHeader.Builder>... headers)
The HTTP headers to send with the message data.
|
HttpAction.Builder |
headers(HttpActionHeader... headers)
The HTTP headers to send with the message data.
|
HttpAction.Builder |
url(String url)
The endpoint URL.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
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.
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.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.
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.HttpAction.Builder headers(Collection<HttpActionHeader> headers)
The HTTP headers to send with the message data.
headers
- The HTTP headers to send with the message data.HttpAction.Builder headers(HttpActionHeader... headers)
The HTTP headers to send with the message data.
headers
- The HTTP headers to send with the message data.HttpAction.Builder headers(Consumer<HttpActionHeader.Builder>... headers)
The HTTP headers to send with the message data.
This is a convenience method that creates an instance of theHttpActionHeader.Builder
avoiding the need to create one
manually via HttpActionHeader.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and
its result is passed to #headers(List
.
headers
- a consumer that will call methods on
HttpActionHeader.Builder
#headers(java.util.Collection)
HttpAction.Builder auth(HttpAuthorization auth)
The authentication method to use when sending data to an HTTPS endpoint.
auth
- The authentication method to use when sending data to an HTTPS endpoint.default HttpAction.Builder auth(Consumer<HttpAuthorization.Builder> auth)
The authentication method to use when sending data to an HTTPS endpoint.
This is a convenience method that creates an instance of theHttpAuthorization.Builder
avoiding the
need to create one manually via HttpAuthorization.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to auth(HttpAuthorization)
.
auth
- a consumer that will call methods on HttpAuthorization.Builder
auth(HttpAuthorization)
Copyright © 2022. All rights reserved.