Modifier and Type | Method and Description |
---|---|
Request.Builder |
body(RequestBody body)
Sets the RequestBody for the Request
|
Request |
build()
Build and returns a new Request with the parameters set via the Request.Builder
|
Request.Builder |
dataSource(DataSource source)
Sets the DataSource for the Request
|
Request.Builder |
endpoint(Endpoint endpoint)
|
Request.Builder |
methodName(java.lang.String methodName)
Sets the method name for the Request
|
public Request.Builder methodName(java.lang.String methodName)
methodName
- The method name to be set to the Requestjava.lang.IllegalArgumentException
- on a null method name argumentpublic Request.Builder dataSource(DataSource source)
source
- The DataSource to be set to the Requestpublic Request.Builder body(RequestBody body)
body
- The RequestBody to be set to the Requestjava.lang.IllegalArgumentException
- on a null RequestBody argumentpublic Request.Builder endpoint(Endpoint endpoint)
endpoint
- The Endpoint to be set to the Requestpublic Request build()