Package com.ngrok.definitions
Class IpRestriction
java.lang.Object
com.ngrok.definitions.IpRestriction
A class encapsulating the
IpRestriction
resource.-
Constructor Summary
ConstructorDescriptionIpRestriction
(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, Boolean enforced, String type, List<Ref> ipPolicies) Creates a new instance ofIpRestriction
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
timestamp when the IP restriction was created, RFC 3339 formathuman-readable description of this IP restriction.boolean
true if the IP restriction will be enforced.getId()
unique identifier for this IP restrictionthe set of IP policies that are used to enforce the restrictionarbitrary user-defined machine-readable data of this IP restriction.getType()
the type of IP restriction.getUri()
URI of the IP restriction API resourceint
hashCode()
toString()
-
Constructor Details
-
IpRestriction
public IpRestriction(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, Boolean enforced, String type, List<Ref> ipPolicies) Creates a new instance ofIpRestriction
.- Parameters:
id
- unique identifier for this IP restrictionuri
- URI of the IP restriction API resourcecreatedAt
- timestamp when the IP restriction was created, RFC 3339 formatdescription
- human-readable description of this IP restriction. optional, max 255 bytes.metadata
- arbitrary user-defined machine-readable data of this IP restriction. optional, max 4096 bytes.enforced
- true if the IP restriction will be enforced. if false, only warnings will be issuedtype
- the type of IP restriction. this defines what traffic will be restricted with the attached policies. four values are currently supported:dashboard
,api
,agent
, andendpoints
ipPolicies
- the set of IP policies that are used to enforce the restriction
-
-
Method Details
-
getId
unique identifier for this IP restriction- Returns:
- the value of the property as a
String
-
getUri
URI of the IP restriction API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the IP restriction was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of this IP restriction. optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this IP restriction. optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getEnforced
public boolean getEnforced()true if the IP restriction will be enforced. if false, only warnings will be issued- Returns:
- the value of the property as a
boolean
-
getType
the type of IP restriction. this defines what traffic will be restricted with the attached policies. four values are currently supported:dashboard
,api
,agent
, andendpoints
- Returns:
- the value of the property as a
String
-
getIpPolicies
the set of IP policies that are used to enforce the restriction -
equals
-
hashCode
public int hashCode() -
toString
-