Package com.ngrok.definitions
Class TunnelSessionList
java.lang.Object
com.ngrok.definitions.TunnelSessionList
- All Implemented Interfaces:
Pageable
A class encapsulating the
TunnelSessionList
resource.-
Constructor Summary
ConstructorDescriptionTunnelSessionList
(List<TunnelSession> tunnelSessions, URI uri, Optional<URI> nextPageUri) Creates a new instance ofTunnelSessionList
. -
Method Summary
-
Constructor Details
-
TunnelSessionList
Creates a new instance ofTunnelSessionList
.- Parameters:
tunnelSessions
- list of all tunnel sessions on this accounturi
- URI to the API resource of the tunnel session listnextPageUri
- URI of the next page, or null if there is no next page
-
-
Method Details
-
getTunnelSessions
list of all tunnel sessions on this account- Returns:
- the value of the property as a
List
ofTunnelSession
-
getUri
URI to the API resource of the tunnel session list- Returns:
- the value of the property as a
URI
-
getNextPageUri
URI of the next page, or null if there is no next page- Specified by:
getNextPageUri
in interfacePageable
- Returns:
- the value of the property as a
URI
wrapped in anOptional
-
equals
-
hashCode
public int hashCode() -
toString
-