public CreateConnectionRequest withConnectedDeviceId(String connectedDeviceId) {
        setConnectedDeviceId(connectedDeviceId);
        return this;
    }
<p>
The ID of the second device in the connection.
</p>

@param connectedDeviceId
       The ID of the second device in the connection.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/CreateConnectionRequest.java