Class CfnTopicRule.RepublishActionHeadersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.RepublishActionHeadersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.RepublishActionHeadersProperty>
- Enclosing interface:
CfnTopicRule.RepublishActionHeadersProperty
@Stability(Stable)
public static final class CfnTopicRule.RepublishActionHeadersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.RepublishActionHeadersProperty>
A builder for
CfnTopicRule.RepublishActionHeadersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.contentType
(String contentType) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getContentType()
correlationData
(String correlationData) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getCorrelationData()
messageExpiry
(String messageExpiry) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getMessageExpiry()
payloadFormatIndicator
(String payloadFormatIndicator) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getPayloadFormatIndicator()
responseTopic
(String responseTopic) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getResponseTopic()
userProperties
(List<? extends Object> userProperties) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getUserProperties()
userProperties
(IResolvable userProperties) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getUserProperties()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentType
@Stability(Stable) public CfnTopicRule.RepublishActionHeadersProperty.Builder contentType(String contentType) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getContentType()
- Parameters:
contentType
- A UTF-8 encoded string that describes the content of the publishing message. For more information, see Content Type in the MQTT Version 5.0 specification.Supports substitution templates .
- Returns:
this
-
correlationData
@Stability(Stable) public CfnTopicRule.RepublishActionHeadersProperty.Builder correlationData(String correlationData) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getCorrelationData()
- Parameters:
correlationData
- The base64-encoded binary data used by the sender of the request message to identify which request the response message is for. For more information, see Correlation Data in the MQTT Version 5.0 specification.Supports substitution templates .
This binary data must be base64-encoded.
- Returns:
this
-
messageExpiry
@Stability(Stable) public CfnTopicRule.RepublishActionHeadersProperty.Builder messageExpiry(String messageExpiry) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getMessageExpiry()
- Parameters:
messageExpiry
- A user-defined integer value that represents the message expiry interval at the broker. If the messages haven't been sent to the subscribers within that interval, the message expires and is removed. The value ofmessageExpiry
represents the number of seconds before it expires. For more information about the limits ofmessageExpiry
, see Message broker and protocol limits and quotas in the IoT Core Reference Guide.Supports substitution templates .
- Returns:
this
-
payloadFormatIndicator
@Stability(Stable) public CfnTopicRule.RepublishActionHeadersProperty.Builder payloadFormatIndicator(String payloadFormatIndicator) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getPayloadFormatIndicator()
- Parameters:
payloadFormatIndicator
- AnEnum
string value that indicates whether the payload is formatted as UTF-8. Valid values areUNSPECIFIED_BYTES
andUTF8_DATA
.For more information, see Payload Format Indicator from the MQTT Version 5.0 specification.
Supports substitution templates .
- Returns:
this
-
responseTopic
@Stability(Stable) public CfnTopicRule.RepublishActionHeadersProperty.Builder responseTopic(String responseTopic) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getResponseTopic()
- Parameters:
responseTopic
- A UTF-8 encoded string that's used as the topic name for a response message. The response topic is used to describe the topic to which the receiver should publish as part of the request-response flow. The topic must not contain wildcard characters.For more information, see Response Topic in the MQTT Version 5.0 specification.
Supports substitution templates .
- Returns:
this
-
userProperties
@Stability(Stable) public CfnTopicRule.RepublishActionHeadersProperty.Builder userProperties(IResolvable userProperties) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getUserProperties()
- Parameters:
userProperties
- An array of key-value pairs that you define in the MQTT5 header.- Returns:
this
-
userProperties
@Stability(Stable) public CfnTopicRule.RepublishActionHeadersProperty.Builder userProperties(List<? extends Object> userProperties) Sets the value ofCfnTopicRule.RepublishActionHeadersProperty.getUserProperties()
- Parameters:
userProperties
- An array of key-value pairs that you define in the MQTT5 header.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.RepublishActionHeadersProperty>
- Returns:
- a new instance of
CfnTopicRule.RepublishActionHeadersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-