Package com.oracle.bmc.requests
Interface BmcRequest.Builder<T extends BmcRequest<B>,B>
-
- Type Parameters:
T- type of the requestB- type of the body parameter (useVoidif no body)
- Enclosing class:
- BmcRequest<B>
public static interface BmcRequest.Builder<T extends BmcRequest<B>,B>Builder interface for requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BmcRequest.Builder<T,B>body$(B body)Alternative setter for the body parameter, if this request supports a body.Tbuild()Build the request.BmcRequest.Builder<T,B>copy(T o)Copy method to populate the builder with values from the given instance.
-
-
-
Method Detail
-
body$
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
IllegalStateExceptionis thrown.- Parameters:
body- the body parameter- Returns:
- this builder instance
- Throws:
IllegalStateException- if this request does not support a body
-
copy
BmcRequest.Builder<T,B> copy(T o)
Copy method to populate the builder with values from the given instance.- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
T build()
Build the request.- Returns:
- request
-
-