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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RepublishAction.Builderheaders(Consumer<MqttHeaders.Builder> headers)MQTT Version 5.0 headers information.RepublishAction.Builderheaders(MqttHeaders headers)MQTT Version 5.0 headers information.RepublishAction.Builderqos(Integer qos)The Quality of Service (QoS) level to use when republishing messages.RepublishAction.BuilderroleArn(String roleArn)The ARN of the IAM role that grants access.RepublishAction.Buildertopic(String topic)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 Detail
-
roleArn
RepublishAction.Builder roleArn(String 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
RepublishAction.Builder topic(String 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
RepublishAction.Builder qos(Integer 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
RepublishAction.Builder headers(MqttHeaders 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
default RepublishAction.Builder headers(Consumer<MqttHeaders.Builder> 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.Builderavoiding the need to create one manually viaMqttHeaders.builder().When the
Consumercompletes,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:
headers(MqttHeaders)
-
-