Package com.twilio.jwt.taskrouter
Class Policy
- java.lang.Object
-
- com.twilio.jwt.taskrouter.Policy
-
public class Policy extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPolicy.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)HttpMethodgetMethod()Map<String,FilterRequirement>getPostFilter()Map<String,FilterRequirement>getQueryFilter()StringgetUrl()inthashCode()booleanisAllowed()StringtoJson()Converts a resource to JSON.
-
-
-
Method Detail
-
getUrl
public String getUrl()
-
getMethod
public HttpMethod getMethod()
-
getQueryFilter
public Map<String,FilterRequirement> getQueryFilter()
-
getPostFilter
public Map<String,FilterRequirement> getPostFilter()
-
isAllowed
public boolean isAllowed()
-
toJson
public String toJson() throws IOException
Converts a resource to JSON.- Returns:
- JSON representation of the resource
- Throws:
IOException- if unable to transform to JSON
-
-