Interface HttpAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HttpAction.Builder,,HttpAction> SdkBuilder<HttpAction.Builder,,HttpAction> SdkPojo
- Enclosing class:
HttpAction
-
Method Summary
Modifier and TypeMethodDescriptiondefault HttpAction.BuilderThe authentication method to use when sending data to an HTTPS endpoint.auth(HttpAuthorization auth) The authentication method to use when sending data to an HTTPS endpoint.confirmationUrl(String confirmationUrl) The URL to which IoT sends a confirmation message.headers(Collection<HttpActionHeader> headers) The HTTP headers to send with the message data.headers(Consumer<HttpActionHeader.Builder>... headers) The HTTP headers to send with the message data.headers(HttpActionHeader... headers) The HTTP headers to send with the message data.The endpoint URL.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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 newTopicRuleDestinationis created if possible.- Parameters:
url- The endpoint URL. If substitution templates are used in the URL, you must also specify aconfirmationUrl. If this is a new destination, a newTopicRuleDestinationis created if possible.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
The HTTP headers to send with the message data.
This is a convenience method that creates an instance of theHttpActionHeader.Builderavoiding the need to create one manually viaHttpActionHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toheaders(List<HttpActionHeader>).- Parameters:
headers- a consumer that will call methods onHttpActionHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
auth
The authentication method to use when sending data to an HTTPS endpoint.
This is a convenience method that creates an instance of theHttpAuthorization.Builderavoiding the need to create one manually viaHttpAuthorization.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauth(HttpAuthorization).- Parameters:
auth- a consumer that will call methods onHttpAuthorization.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-