Package com.ngrok.definitions
Class TcpEdge
java.lang.Object
com.ngrok.definitions.TcpEdge
A class encapsulating the
TcpEdge resource.-
Constructor Summary
ConstructorsConstructorDescriptionTcpEdge(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 TypeMethodDescriptionbooleanedge 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 theipRestrictionproperty.arbitrary user-defined machine-readable data of this edge.getUri()URI of the edge API resourceinthashCode()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_restrictionparameter 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
EndpointBackendwrapped in anOptional
-
getIpRestriction
Fetches the value of theipRestrictionproperty.- Returns:
- the value of the property as a
EndpointIpPolicywrapped in anOptional
-
equals
-
hashCode
public int hashCode() -
toString
-