Package com.ngrok.definitions
Class Endpoint
java.lang.Object
com.ngrok.definitions.Endpoint
A class encapsulating the
Endpoint
resource.-
Constructor Summary
ConstructorDescriptionEndpoint
(String id, String region, OffsetDateTime createdAt, OffsetDateTime updatedAt, URI publicUrl, String proto, String hostport, String type, String metadata, Optional<Ref> domain, Optional<Ref> tcpAddr, Optional<Ref> tunnel, Optional<Ref> edge) Creates a new instance ofEndpoint
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
timestamp when the endpoint was created in RFC 3339 formatthe domain reserved for this endpointgetEdge()
the edge serving requests to this endpoint, if this is an edge endpointhostport served by this endpoint (hostname:port)getId()
unique endpoint resource identifieruser-supplied metadata of the associated tunnel or edge objectgetProto()
protocol served by this endpoint.URL of the hostport served by this endpointidentifier of the region this endpoint belongs tothe address reserved for this endpointthe tunnel serving requests to this endpoint, if this is an ephemeral endpointgetType()
whether the endpoint isephemeral
(served directly by an agent-initiated tunnel) oredge
(served by an edge)timestamp when the endpoint was updated in RFC 3339 formatint
hashCode()
toString()
-
Constructor Details
-
Endpoint
public Endpoint(String id, String region, OffsetDateTime createdAt, OffsetDateTime updatedAt, URI publicUrl, String proto, String hostport, String type, String metadata, Optional<Ref> domain, Optional<Ref> tcpAddr, Optional<Ref> tunnel, Optional<Ref> edge) Creates a new instance ofEndpoint
.- Parameters:
id
- unique endpoint resource identifierregion
- identifier of the region this endpoint belongs tocreatedAt
- timestamp when the endpoint was created in RFC 3339 formatupdatedAt
- timestamp when the endpoint was updated in RFC 3339 formatpublicUrl
- URL of the hostport served by this endpointproto
- protocol served by this endpoint. one ofhttp
,https
,tcp
, ortls
hostport
- hostport served by this endpoint (hostname:port)type
- whether the endpoint isephemeral
(served directly by an agent-initiated tunnel) oredge
(served by an edge)metadata
- user-supplied metadata of the associated tunnel or edge objectdomain
- the domain reserved for this endpointtcpAddr
- the address reserved for this endpointtunnel
- the tunnel serving requests to this endpoint, if this is an ephemeral endpointedge
- the edge serving requests to this endpoint, if this is an edge endpoint
-
-
Method Details
-
getId
unique endpoint resource identifier- Returns:
- the value of the property as a
String
-
getRegion
identifier of the region this endpoint belongs to- Returns:
- the value of the property as a
String
-
getCreatedAt
timestamp when the endpoint was created in RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getUpdatedAt
timestamp when the endpoint was updated in RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getPublicUrl
URL of the hostport served by this endpoint- Returns:
- the value of the property as a
URI
-
getProto
protocol served by this endpoint. one ofhttp
,https
,tcp
, ortls
- Returns:
- the value of the property as a
String
-
getHostport
hostport served by this endpoint (hostname:port)- Returns:
- the value of the property as a
String
-
getType
whether the endpoint isephemeral
(served directly by an agent-initiated tunnel) oredge
(served by an edge)- Returns:
- the value of the property as a
String
-
getMetadata
user-supplied metadata of the associated tunnel or edge object- Returns:
- the value of the property as a
String
-
getDomain
the domain reserved for this endpoint -
getTcpAddr
the address reserved for this endpoint -
getTunnel
the tunnel serving requests to this endpoint, if this is an ephemeral endpoint -
getEdge
the edge serving requests to this endpoint, if this is an edge endpoint -
equals
-
hashCode
public int hashCode() -
toString
-