Interface GetConnectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetConnectionResponse.Builder,,GetConnectionResponse> IotDataPlaneResponse.Builder,SdkBuilder<GetConnectionResponse.Builder,,GetConnectionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetConnectionResponse
-
Method Summary
Modifier and TypeMethodDescriptioncleanSession(Boolean cleanSession) Indicates whether the client is using a clean session.The unique identifier of the MQTT client.The connection state of the client.connectedSince(Long connectedSince) Unix timestamp (in milliseconds) indicating when the client connected.disconnectedSince(Long disconnectedSince) Unix timestamp (in milliseconds) indicating when the client disconnected.disconnectReason(String disconnectReason) The reason for the last disconnection, if the client is currently disconnected.keepAliveDuration(Integer keepAliveDuration) The keep-alive interval in seconds that the client specified when establishing the connection.sessionExpiry(Long sessionExpiry) The session expiry interval in seconds for the MQTT client connection.The IP address of the client that initiated the connection.sourcePort(Integer sourcePort) The client's source port.The IP address of the Amazon Web Services IoT Core endpoint that the client connected to.targetPort(Integer targetPort) The port number of the Amazon Web Services IoT Core endpoint that the client connected to.The name of the thing associated with the principal of the MQTT client, if applicable.vpcEndpointId(String vpcEndpointId) The ID of the VPC endpoint.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iotdataplane.model.IotDataPlaneResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
connected
The connection state of the client. Returns
trueif the client is currently connected, orfalseif the client is not connected.- Parameters:
connected- The connection state of the client. Returnstrueif the client is currently connected, orfalseif the client is not connected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
thingName
The name of the thing associated with the principal of the MQTT client, if applicable.
- Parameters:
thingName- The name of the thing associated with the principal of the MQTT client, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cleanSession
Indicates whether the client is using a clean session. Returns
truefor clean sessions orfalsefor persistent sessions.- Parameters:
cleanSession- Indicates whether the client is using a clean session. Returnstruefor clean sessions orfalsefor persistent sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceIp
The IP address of the client that initiated the connection.
- Parameters:
sourceIp- The IP address of the client that initiated the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourcePort
The client's source port.
- Parameters:
sourcePort- The client's source port.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetIp
The IP address of the Amazon Web Services IoT Core endpoint that the client connected to. For clients connected to VPC endpoints, this is the private IP address of the network interface the client is connected to.
- Parameters:
targetIp- The IP address of the Amazon Web Services IoT Core endpoint that the client connected to. For clients connected to VPC endpoints, this is the private IP address of the network interface the client is connected to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetPort
The port number of the Amazon Web Services IoT Core endpoint that the client connected to.
- Parameters:
targetPort- The port number of the Amazon Web Services IoT Core endpoint that the client connected to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keepAliveDuration
The keep-alive interval in seconds that the client specified when establishing the connection.
- Parameters:
keepAliveDuration- The keep-alive interval in seconds that the client specified when establishing the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectedSince
Unix timestamp (in milliseconds) indicating when the client connected. Present only when connected is true.
- Parameters:
connectedSince- Unix timestamp (in milliseconds) indicating when the client connected. Present only when connected is true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disconnectedSince
Unix timestamp (in milliseconds) indicating when the client disconnected. Present only when connected is false. This information is available for 30 minutes after the client disconnects.
- Parameters:
disconnectedSince- Unix timestamp (in milliseconds) indicating when the client disconnected. Present only when connected is false. This information is available for 30 minutes after the client disconnects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disconnectReason
The reason for the last disconnection, if the client is currently disconnected. See the developer guide for valid disconnect reasons.
- Parameters:
disconnectReason- The reason for the last disconnection, if the client is currently disconnected. See the developer guide for valid disconnect reasons.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionExpiry
The session expiry interval in seconds for the MQTT client connection. This is configured by the user. This value indicates how long the session will remain active after the client disconnects.
- Parameters:
sessionExpiry- The session expiry interval in seconds for the MQTT client connection. This is configured by the user. This value indicates how long the session will remain active after the client disconnects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientId
The unique identifier of the MQTT client. This is the same client ID that was used when the client established the connection.
- Parameters:
clientId- The unique identifier of the MQTT client. This is the same client ID that was used when the client established the connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcEndpointId
The ID of the VPC endpoint. Present for clients connected to IoT Core via a VPC endpoint.
- Parameters:
vpcEndpointId- The ID of the VPC endpoint. Present for clients connected to IoT Core via a VPC endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-