Class WillSendHttpRequest.Builder
- java.lang.Object
-
- io.contract_testing.contractcase.definitions.interactions.http.WillSendHttpRequest.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WillSendHttpRequest>
- Enclosing class:
- WillSendHttpRequest
@Stability(Stable) public static final class WillSendHttpRequest.Builder extends Object implements software.amazon.jsii.Builder<WillSendHttpRequest>
A fluent builder forWillSendHttpRequest.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WillSendHttpRequestbuild()static WillSendHttpRequest.Buildercreate()WillSendHttpRequest.Builderrequest(Object request)A test equivalence matcher that will match an HTTP request (recommended: the Test Equivalence MatcherHttpRequest).WillSendHttpRequest.Builderresponse(Object response)A test equivalence matcher that will match an HTTP response (recommended: the Test Equivalence MatcherHttpResponse).
-
-
-
Method Detail
-
create
@Stability(Stable) public static WillSendHttpRequest.Builder create()
- Returns:
- a new instance of
WillSendHttpRequest.Builder.
-
request
@Stability(Stable) public WillSendHttpRequest.Builder request(Object request)
A test equivalence matcher that will match an HTTP request (recommended: the Test Equivalence MatcherHttpRequest).- Parameters:
request- A test equivalence matcher that will match an HTTP request (recommended: the Test Equivalence MatcherHttpRequest). This parameter is required.- Returns:
this
-
response
@Stability(Stable) public WillSendHttpRequest.Builder response(Object response)
A test equivalence matcher that will match an HTTP response (recommended: the Test Equivalence MatcherHttpResponse).- Parameters:
response- A test equivalence matcher that will match an HTTP response (recommended: the Test Equivalence MatcherHttpResponse). This parameter is required.- Returns:
this
-
build
@Stability(Stable) public WillSendHttpRequest build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WillSendHttpRequest>- Returns:
- a newly built instance of
WillSendHttpRequest.
-
-