Interface RepublishAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RepublishAction.Builder,
,RepublishAction> SdkBuilder<RepublishAction.Builder,
,RepublishAction> SdkPojo
- Enclosing class:
RepublishAction
public static interface RepublishAction.Builder
extends SdkPojo, CopyableBuilder<RepublishAction.Builder,RepublishAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault RepublishAction.Builder
headers
(Consumer<MqttHeaders.Builder> headers) MQTT Version 5.0 headers information.headers
(MqttHeaders headers) MQTT Version 5.0 headers information.The Quality of Service (QoS) level to use when republishing messages.The ARN of the IAM role that grants access.The name of the MQTT topic.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
roleArn
The ARN of the IAM role that grants access.
- Parameters:
roleArn
- The ARN of the IAM role that grants access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topic
The name of the MQTT topic.
- Parameters:
topic
- The name of the MQTT topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
qos
The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
- Parameters:
qos
- The Quality of Service (QoS) level to use when republishing messages. The default value is 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
- Parameters:
headers
- MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
MQTT Version 5.0 headers information. For more information, see MQTT from the Amazon Web Services IoT Core Developer Guide.
This is a convenience method that creates an instance of theMqttHeaders.Builder
avoiding the need to create one manually viaMqttHeaders.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toheaders(MqttHeaders)
.- Parameters:
headers
- a consumer that will call methods onMqttHeaders.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-