public class Policy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Policy.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
HttpMethod |
getMethod() |
Map<String,FilterRequirement> |
getPostFilter() |
Map<String,FilterRequirement> |
getQueryFilter() |
String |
getUrl() |
int |
hashCode() |
boolean |
isAllowed() |
String |
toJson()
Converts a resource to JSON.
|
String |
toString() |
public String getUrl()
public HttpMethod getMethod()
public Map<String,FilterRequirement> getQueryFilter()
public Map<String,FilterRequirement> getPostFilter()
public boolean isAllowed()
public String toJson() throws IOException
IOException - if unable to transform to JSONCopyright © 2016 Twilio, Inc. All Rights Reserved.