Package com.ngrok.definitions
Class IpWhitelistEntry
java.lang.Object
com.ngrok.definitions.IpWhitelistEntry
A class encapsulating the
IpWhitelistEntry resource.-
Constructor Summary
ConstructorsConstructorDescriptionIpWhitelistEntry(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String ipNet)Creates a new instance ofIpWhitelistEntry. -
Method Summary
Modifier and TypeMethodDescriptionbooleantimestamp when the IP whitelist entry was created, RFC 3339 formathuman-readable description of the source IPs for this IP whitelist entry.getId()unique identifier for this IP whitelist entrygetIpNet()an IP address or IP network range in CIDR notation (e.g.arbitrary user-defined machine-readable data of this IP whitelist entry.getUri()URI of the IP whitelist entry API resourceinthashCode()toString()
-
Constructor Details
-
IpWhitelistEntry
public IpWhitelistEntry(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String ipNet)Creates a new instance ofIpWhitelistEntry.- Parameters:
id- unique identifier for this IP whitelist entryuri- URI of the IP whitelist entry API resourcecreatedAt- timestamp when the IP whitelist entry was created, RFC 3339 formatdescription- human-readable description of the source IPs for this IP whitelist entry. optional, max 255 bytes.metadata- arbitrary user-defined machine-readable data of this IP whitelist entry. optional, max 4096 bytes.ipNet- an IP address or IP network range in CIDR notation (e.g. 10.1.1.1 or 10.1.0.0/16) of addresses that will be whitelisted to communicate with your tunnel endpoints
-
-
Method Details
-
getId
unique identifier for this IP whitelist entry- Returns:
- the value of the property as a
String
-
getUri
URI of the IP whitelist entry API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the IP whitelist entry was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of the source IPs for this IP whitelist entry. optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this IP whitelist entry. optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getIpNet
an IP address or IP network range in CIDR notation (e.g. 10.1.1.1 or 10.1.0.0/16) of addresses that will be whitelisted to communicate with your tunnel endpoints- Returns:
- the value of the property as a
String
-
equals
-
hashCode
public int hashCode() -
toString
-