Package com.ngrok.definitions
Class ReservedAddr
java.lang.Object
com.ngrok.definitions.ReservedAddr
A class encapsulating the
ReservedAddr
resource.-
Constructor Summary
ConstructorDescriptionReservedAddr
(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String addr, String region) Creates a new instance ofReservedAddr
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAddr()
hostname:port of the reserved address that was assigned at creation timetimestamp when the reserved address was created, RFC 3339 formathuman-readable description of what this reserved address will be used forgetId()
unique reserved address resource identifierarbitrary user-defined machine-readable data of this reserved address.reserve the address in this geographic ngrok datacenter.getUri()
URI of the reserved address API resourceint
hashCode()
toString()
-
Constructor Details
-
ReservedAddr
public ReservedAddr(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String addr, String region) Creates a new instance ofReservedAddr
.- Parameters:
id
- unique reserved address resource identifieruri
- URI of the reserved address API resourcecreatedAt
- timestamp when the reserved address was created, RFC 3339 formatdescription
- human-readable description of what this reserved address will be used formetadata
- arbitrary user-defined machine-readable data of this reserved address. Optional, max 4096 bytes.addr
- hostname:port of the reserved address that was assigned at creation timeregion
- reserve the address in this geographic ngrok datacenter. Optional, default is us. (au, eu, ap, us, jp, in, sa)
-
-
Method Details
-
getId
unique reserved address resource identifier- Returns:
- the value of the property as a
String
-
getUri
URI of the reserved address API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the reserved address was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of what this reserved address will be used for- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this reserved address. Optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getAddr
hostname:port of the reserved address that was assigned at creation time- Returns:
- the value of the property as a
String
-
getRegion
reserve the address in this geographic ngrok datacenter. Optional, default is us. (au, eu, ap, us, jp, in, sa)- Returns:
- the value of the property as a
String
-
equals
-
hashCode
public int hashCode() -
toString
-