Interface ApiTestStep
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApiTestStep.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-06T18:16:18.997Z") @Stability(Experimental) public interface ApiTestStep extends software.amazon.jsii.JsiiSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classApiTestStep.BuilderA builder forApiTestStepstatic classApiTestStep.Jsii$ProxyAn implementation forApiTestStep
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ApiTestStep.Builderbuilder()default StringgetBody()(experimental) Optional body to include in HTTP request.default ObjectgetExpectedValue()(experimental) Expected value to compare against the jmesPath.default Map<String,String>getHeaders()(experimental) Optional headers to include in HTTP request.default StringgetJmesPath()(experimental) JMESPath to apply against the response from the HTTP request and compare against expected value.default StringgetMethod()(experimental) Optional method to for HTTP request.StringgetName()(experimental) Name of test.StringgetPath()(experimental) Path of HTTP request, relative to baseUrl.
-
-
-
Method Detail
-
getName
@Stability(Experimental) @NotNull String getName()
(experimental) Name of test.
-
getPath
@Stability(Experimental) @NotNull String getPath()
(experimental) Path of HTTP request, relative to baseUrl.
-
getBody
@Stability(Experimental) @Nullable default String getBody()
(experimental) Optional body to include in HTTP request.Default: - no body included.
-
getExpectedValue
@Stability(Experimental) @Nullable default Object getExpectedValue()
(experimental) Expected value to compare against the jmesPath.Default: - undefined
-
getHeaders
@Stability(Experimental) @Nullable default Map<String,String> getHeaders()
(experimental) Optional headers to include in HTTP request.Default: - no headers included.
-
getJmesPath
@Stability(Experimental) @Nullable default String getJmesPath()
(experimental) JMESPath to apply against the response from the HTTP request and compare against expected value.Default: - no JMESPath assertion will be performed.
-
getMethod
@Stability(Experimental) @Nullable default String getMethod()
(experimental) Optional method to for HTTP request.Default: - GET
-
builder
@Stability(Experimental) static ApiTestStep.Builder builder()
- Returns:
- a
ApiTestStep.BuilderofApiTestStep
-
-