Interface DeleteConnectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DeleteConnectionRequest.Builder,,DeleteConnectionRequest> IotDataPlaneRequest.Builder,SdkBuilder<DeleteConnectionRequest.Builder,,DeleteConnectionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
DeleteConnectionRequest
-
Method Summary
Modifier and TypeMethodDescriptioncleanSession(Boolean cleanSession) Specifies whether to remove the client's persistent session state when disconnecting.The unique identifier of the MQTT client to disconnect.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.preventWillMessage(Boolean preventWillMessage) Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iotdataplane.model.IotDataPlaneRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientId
The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).
MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.
- Parameters:
clientId- The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cleanSession
Specifies whether to remove the client's persistent session state when disconnecting. Set to
TRUEto delete all session information, including subscriptions and queued messages. Set toFALSEto preserve the session state for persistent sessions. For clean sessions this parameter will be ignored. By default, this is set toFALSE(preserves the session state).- Parameters:
cleanSession- Specifies whether to remove the client's persistent session state when disconnecting. Set toTRUEto delete all session information, including subscriptions and queued messages. Set toFALSEto preserve the session state for persistent sessions. For clean sessions this parameter will be ignored. By default, this is set toFALSE(preserves the session state).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preventWillMessage
Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set to
TRUEto prevent publishing the LWT message. Set toFALSEto ensure that LWT is published. By default, this is set toFALSE(LWT message is published).- Parameters:
preventWillMessage- Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set toTRUEto prevent publishing the LWT message. Set toFALSEto ensure that LWT is published. By default, this is set toFALSE(LWT message is published).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
DeleteConnectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
DeleteConnectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-