Package com.ngrok.definitions
Class TcpEdge
java.lang.Object
com.ngrok.definitions.TcpEdge
A class encapsulating the
TcpEdge
resource.-
Constructor Summary
ConstructorDescriptionTcpEdge
(String id, String description, String metadata, OffsetDateTime createdAt, URI uri, Optional<List<String>> hostports, Optional<EndpointBackend> backend, Optional<EndpointIpPolicy> ipRestriction) Creates a new instance ofTcpEdge
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
edge modulestimestamp when the edge was created, RFC 3339 formathuman-readable description of what this edge will be used for; optional, max 255 bytes.hostports served by this edgegetId()
unique identifier of this edgeFetches the value of theipRestriction
property.arbitrary user-defined machine-readable data of this edge.getUri()
URI of the edge API resourceint
hashCode()
toString()
-
Constructor Details
-
TcpEdge
public TcpEdge(String id, String description, String metadata, OffsetDateTime createdAt, URI uri, Optional<List<String>> hostports, Optional<EndpointBackend> backend, Optional<EndpointIpPolicy> ipRestriction) Creates a new instance ofTcpEdge
.- Parameters:
id
- unique identifier of this edgedescription
- human-readable description of what this edge will be used for; optional, max 255 bytes.metadata
- arbitrary user-defined machine-readable data of this edge. Optional, max 4096 bytes.createdAt
- timestamp when the edge was created, RFC 3339 formaturi
- URI of the edge API resourcehostports
- hostports served by this edgebackend
- edge modulesipRestriction
- the value of theip_restriction
parameter as aEndpointIpPolicy
-
-
Method Details
-
getId
unique identifier of this edge- Returns:
- the value of the property as a
String
-
getDescription
human-readable description of what this edge will be used for; optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this edge. Optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getCreatedAt
timestamp when the edge was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getUri
URI of the edge API resource- Returns:
- the value of the property as a
URI
-
getHostports
hostports served by this edge -
getBackend
edge modules- Returns:
- the value of the property as a
EndpointBackend
wrapped in anOptional
-
getIpRestriction
Fetches the value of theipRestriction
property.- Returns:
- the value of the property as a
EndpointIpPolicy
wrapped in anOptional
-
equals
-
hashCode
public int hashCode() -
toString
-