public static final class Resource.Builder
extends java.lang.Object
| Constructor and Description | 
|---|
| Builder()Constructor - does nothing. | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | build()Builds (creates) new instance of  Resource. | 
| Resource.Builder | endpointName(java.lang.String endpointName)Sets the name or ID of the resource's endpoint. | 
| Resource.Builder | fromJson(org.json.JSONObject resObject) | 
| Resource.Builder | method(Resource.Method method)Sets the method value for the resource. | 
| Resource.Builder | methods(java.util.List<Resource.Method> methods)Sets the method values for the resource. | 
| Resource.Builder | name(java.lang.String name)Sets the name of the resource. | 
| Resource.Builder | path(java.lang.String path)Sets the path of the resource. | 
| Resource.Builder | status(Resource.Status status)Sets the status value for the resource. | 
public Resource.Builder endpointName(java.lang.String endpointName)
endpointName - name or ID of the resource's endpoint.public Resource.Builder path(java.lang.String path)
path - Uri of the resource.  Must be unique and must not be null.public Resource.Builder name(java.lang.String name)
name - name of the resource.public Resource.Builder status(Resource.Status status)
null status is specified.status - the status of the resource.public Resource.Builder method(Resource.Method method)
null
 method is specified.method - status of the resourcepublic Resource.Builder methods(java.util.List<Resource.Method> methods)
null
 methods is specified.methods - a List of methods supported by the resource.public final Resource.Builder fromJson(org.json.JSONObject resObject)