Interface HttpResponseExample
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpResponseExample.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-08-20T01:46:20.845Z") @Stability(Stable) public interface HttpResponseExample extends software.amazon.jsii.JsiiSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHttpResponseExample.BuilderA builder forHttpResponseExamplestatic classHttpResponseExample.Jsii$ProxyAn implementation forHttpResponseExample
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static HttpResponseExample.Builderbuilder()default ObjectgetBody()A test equivalence matcher or json object that describes the body for this response.default ObjectgetHeaders()A Map of header names and associated test-equivalence matcher values accepted by this example.ObjectgetStatus()Any test-equivalence matcher, string, or number for the HTTP status code accepted by this example (Recommended: Use theHttpStatusCodematcher).default StringgetUniqueName()What unique name, if any, to give to this response.
-
-
-
Method Detail
-
getStatus
@Stability(Stable) @NotNull Object getStatus()
Any test-equivalence matcher, string, or number for the HTTP status code accepted by this example (Recommended: Use theHttpStatusCodematcher).
-
getBody
@Stability(Stable) @Nullable default Object getBody()
A test equivalence matcher or json object that describes the body for this response.If not provided, no body matching is performed.
-
getHeaders
@Stability(Stable) @Nullable default Object getHeaders()
A Map of header names and associated test-equivalence matcher values accepted by this example.If not provided, no header matching is performed
-
getUniqueName
@Stability(Stable) @Nullable default String getUniqueName()
What unique name, if any, to give to this response.
-
builder
@Stability(Stable) static HttpResponseExample.Builder builder()
- Returns:
- a
HttpResponseExample.BuilderofHttpResponseExample
-
-