public class RequestPropertiesBuilder extends RequestProperties
accept, body, contentType, endpoint, method, type| Constructor | Description |
|---|---|
RequestPropertiesBuilder() |
| Modifier and Type | Method | Description |
|---|---|---|
RequestPropertiesBuilder |
accept(java.lang.String acceptVersion) |
This method is used to set the JSON version, if it takes.
|
RequestPropertiesBuilder |
body(java.util.Map<java.lang.String,java.lang.Object> body) |
This method is used to set the request object into super class.
|
RequestProperties |
build() |
This method is used to parse the object to RequestProperties type and
complete the build.
|
RequestPropertiesBuilder |
contentType(org.apache.http.entity.ContentType contentType) |
This method is used to set the request content type.
|
RequestPropertiesBuilder |
endpoint(java.lang.String endpoint) |
This method is used to set the request endpoint into super class.
|
RequestPropertiesBuilder |
method(java.lang.String method) |
This method is used to set the request method into super class.
|
RequestPropertiesBuilder |
type(java.lang.Class type) |
This method is used to set the model class type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccept, getContentType, getEndpoint, getMethod, getObject, getType, hasAcceptpublic RequestPropertiesBuilder method(java.lang.String method)
method - String request methodthis (RequestPropertiesBuilder)public RequestPropertiesBuilder endpoint(java.lang.String endpoint)
/v2/customers, /v2/accounts, /v2/transfers.endpoint - String request endpoint.this (RequestPropertiesBuilder)public RequestPropertiesBuilder body(java.util.Map<java.lang.String,java.lang.Object> body)
body - Object request objectthis (RequestPropertiesBuilder)Objectpublic RequestPropertiesBuilder type(java.lang.Class type)
type - Class request class typethis (RequestPropertiesBuilder)Classpublic RequestPropertiesBuilder contentType(org.apache.http.entity.ContentType contentType)
APPLICATION_JSON.contentType - ContentType request content typethis (RequestPropertiesBuilder)ContentTypepublic RequestPropertiesBuilder accept(java.lang.String acceptVersion)
application/json;version=2.1
Possible value: "2.1"acceptVersion - String accept JSON versionthis (RequestPropertiesBuilder)public RequestProperties build()
this (RequestProperties)