Package com.ngrok.definitions
Class IpPolicyRule
java.lang.Object
com.ngrok.definitions.IpPolicyRule
A class encapsulating the
IpPolicyRule resource.-
Constructor Summary
ConstructorsConstructorDescriptionIpPolicyRule(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String cidr, Ref ipPolicy)Creates a new instance ofIpPolicyRule. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCidr()an IP or IP range specified in CIDR notation.timestamp when the IP policy rule was created, RFC 3339 formathuman-readable description of the source IPs of this IP rule.getId()unique identifier for this IP policy ruleobject describing the IP policy this IP Policy Rule belongs toarbitrary user-defined machine-readable data of this IP policy rule.getUri()URI of the IP policy rule API resourceinthashCode()toString()
-
Constructor Details
-
IpPolicyRule
public IpPolicyRule(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String cidr, Ref ipPolicy)Creates a new instance ofIpPolicyRule.- Parameters:
id- unique identifier for this IP policy ruleuri- URI of the IP policy rule API resourcecreatedAt- timestamp when the IP policy rule was created, RFC 3339 formatdescription- human-readable description of the source IPs of this IP rule. optional, max 255 bytes.metadata- arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes.cidr- an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported.ipPolicy- object describing the IP policy this IP Policy Rule belongs to
-
-
Method Details
-
getId
unique identifier for this IP policy rule- Returns:
- the value of the property as a
String
-
getUri
URI of the IP policy rule API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the IP policy rule was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of the source IPs of this IP rule. optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this IP policy rule. optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getCidr
an IP or IP range specified in CIDR notation. IPv4 and IPv6 are both supported.- Returns:
- the value of the property as a
String
-
getIpPolicy
object describing the IP policy this IP Policy Rule belongs to- Returns:
- the value of the property as a
Ref
-
equals
-
hashCode
public int hashCode() -
toString
-