Class DeleteConnectionRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.iotdataplane.model.IotDataPlaneRequest
-
- software.amazon.awssdk.services.iotdataplane.model.DeleteConnectionRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DeleteConnectionRequest.Builder,DeleteConnectionRequest>
@Generated("software.amazon.awssdk:codegen") public final class DeleteConnectionRequest extends IotDataPlaneRequest implements ToCopyableBuilder<DeleteConnectionRequest.Builder,DeleteConnectionRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDeleteConnectionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeleteConnectionRequest.Builderbuilder()BooleancleanSession()Specifies whether to remove the client's session state when disconnecting.StringclientId()The unique identifier of the MQTT client to disconnect.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanpreventWillMessage()Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DeleteConnectionRequest.Builder>serializableBuilderClass()DeleteConnectionRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
clientId
public final String clientId()
The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).
- Returns:
- The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).
-
cleanSession
public final Boolean cleanSession()
Specifies whether to remove the client's session state when disconnecting. Set to
TRUEto delete all session information, including subscriptions and queued messages. Set toFALSEto preserve the session state. By default, this is set toFALSE(preserves the session state).- Returns:
- Specifies whether to remove the client's session state when disconnecting. Set to
TRUEto delete all session information, including subscriptions and queued messages. Set toFALSEto preserve the session state. By default, this is set toFALSE(preserves the session state).
-
preventWillMessage
public final Boolean 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 allow publishing. By default, this is set toFALSE(allows publishing the LWT message).- Returns:
- 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 allow publishing. By default, this is set toFALSE(allows publishing the LWT message).
-
toBuilder
public DeleteConnectionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DeleteConnectionRequest.Builder,DeleteConnectionRequest>- Specified by:
toBuilderin classIotDataPlaneRequest
-
builder
public static DeleteConnectionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends DeleteConnectionRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-