public static class StockResponseBackend.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StockResponseBackend.Builder |
body(String body)
The body of the stock response from the mock backend.
|
StockResponseBackend |
build() |
StockResponseBackend.Builder |
copy(StockResponseBackend model) |
StockResponseBackend.Builder |
headers(List<HeaderFieldSpecification> headers)
The headers of the stock response from the mock backend.
|
StockResponseBackend.Builder |
status(Integer status)
The status code of the stock response from the mock backend.
|
public StockResponseBackend.Builder body(String body)
The body of the stock response from the mock backend.
body
- the value to setpublic StockResponseBackend.Builder status(Integer status)
The status code of the stock response from the mock backend.
status
- the value to setpublic StockResponseBackend.Builder headers(List<HeaderFieldSpecification> headers)
The headers of the stock response from the mock backend.
headers
- the value to setpublic StockResponseBackend build()
public StockResponseBackend.Builder copy(StockResponseBackend model)
Copyright © 2016–2024. All rights reserved.