T
- type of the requestB
- type of the body parameter (use Void
if no body)public static interface BmcRequest.Builder<T extends BmcRequest<B>,B>
Builder interface for requests.
Modifier and Type | Method and Description |
---|---|
default BmcRequest.Builder<T,B> |
body$(B body)
Alternative setter for the body parameter, if this request supports a body.
|
T |
build()
Build the request.
|
BmcRequest.Builder<T,B> |
copy(T o)
Copy method to populate the builder with values from the given instance.
|
default BmcRequest.Builder<T,B> body$(B body)
Alternative setter for the body parameter, if this request supports a body.
If this request does not support a body, an IllegalStateException
is thrown.
body
- the body parameterIllegalStateException
- if this request does not support a bodyBmcRequest.Builder<T,B> copy(T o)
Copy method to populate the builder with values from the given instance.
o
- other request from which to copy valuesT build()
Build the request.
Copyright © 2016–2024. All rights reserved.