Class CfnTopicRule.HttpActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.HttpActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.HttpActionProperty>
- Enclosing interface:
CfnTopicRule.HttpActionProperty
@Stability(Stable)
public static final class CfnTopicRule.HttpActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.HttpActionProperty>
A builder for
CfnTopicRule.HttpActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauth
(IResolvable auth) Sets the value ofCfnTopicRule.HttpActionProperty.getAuth()
Sets the value ofCfnTopicRule.HttpActionProperty.getAuth()
build()
Builds the configured instance.confirmationUrl
(String confirmationUrl) Sets the value ofCfnTopicRule.HttpActionProperty.getConfirmationUrl()
Sets the value ofCfnTopicRule.HttpActionProperty.getHeaders()
headers
(IResolvable headers) Sets the value ofCfnTopicRule.HttpActionProperty.getHeaders()
Sets the value ofCfnTopicRule.HttpActionProperty.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
url
Sets the value ofCfnTopicRule.HttpActionProperty.getUrl()
- Parameters:
url
- The endpoint URL. This parameter is required. If substitution templates are used in the URL, you must also specify aconfirmationUrl
. If this is a new destination, a newTopicRuleDestination
is created if possible.- Returns:
this
-
auth
Sets the value ofCfnTopicRule.HttpActionProperty.getAuth()
- Parameters:
auth
- The authentication method to use when sending data to an HTTPS endpoint.- Returns:
this
-
auth
@Stability(Stable) public CfnTopicRule.HttpActionProperty.Builder auth(CfnTopicRule.HttpAuthorizationProperty auth) Sets the value ofCfnTopicRule.HttpActionProperty.getAuth()
- Parameters:
auth
- The authentication method to use when sending data to an HTTPS endpoint.- Returns:
this
-
confirmationUrl
@Stability(Stable) public CfnTopicRule.HttpActionProperty.Builder confirmationUrl(String confirmationUrl) Sets the value ofCfnTopicRule.HttpActionProperty.getConfirmationUrl()
- Parameters:
confirmationUrl
- The URL to which AWS 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 AWS 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:
this
-
headers
Sets the value ofCfnTopicRule.HttpActionProperty.getHeaders()
- Parameters:
headers
- The HTTP headers to send with the message data.- Returns:
this
-
headers
@Stability(Stable) public CfnTopicRule.HttpActionProperty.Builder headers(List<? extends Object> headers) Sets the value ofCfnTopicRule.HttpActionProperty.getHeaders()
- Parameters:
headers
- The HTTP headers to send with the message data.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.HttpActionProperty>
- Returns:
- a new instance of
CfnTopicRule.HttpActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-