Class ApiTestStep.Builder
- java.lang.Object
-
- io.github.cdklabs.cdk.ecs.codedeploy.ApiTestStep.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiTestStep>
- Enclosing interface:
- ApiTestStep
@Stability(Experimental) public static final class ApiTestStep.Builder extends Object implements software.amazon.jsii.Builder<ApiTestStep>
A builder forApiTestStep
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiTestStep.Builderbody(String body)Sets the value ofApiTestStep.getBody()ApiTestStepbuild()Builds the configured instance.ApiTestStep.BuilderexpectedValue(Object expectedValue)Sets the value ofApiTestStep.getExpectedValue()ApiTestStep.Builderheaders(Map<String,String> headers)Sets the value ofApiTestStep.getHeaders()ApiTestStep.BuilderjmesPath(String jmesPath)Sets the value ofApiTestStep.getJmesPath()ApiTestStep.Buildermethod(String method)Sets the value ofApiTestStep.getMethod()ApiTestStep.Buildername(String name)Sets the value ofApiTestStep.getName()ApiTestStep.Builderpath(String path)Sets the value ofApiTestStep.getPath()
-
-
-
Method Detail
-
name
@Stability(Experimental) public ApiTestStep.Builder name(String name)
Sets the value ofApiTestStep.getName()- Parameters:
name- Name of test. This parameter is required.- Returns:
this
-
path
@Stability(Experimental) public ApiTestStep.Builder path(String path)
Sets the value ofApiTestStep.getPath()- Parameters:
path- Path of HTTP request, relative to baseUrl. This parameter is required.- Returns:
this
-
body
@Stability(Experimental) public ApiTestStep.Builder body(String body)
Sets the value ofApiTestStep.getBody()- Parameters:
body- Optional body to include in HTTP request.- Returns:
this
-
expectedValue
@Stability(Experimental) public ApiTestStep.Builder expectedValue(Object expectedValue)
Sets the value ofApiTestStep.getExpectedValue()- Parameters:
expectedValue- Expected value to compare against the jmesPath.- Returns:
this
-
headers
@Stability(Experimental) public ApiTestStep.Builder headers(Map<String,String> headers)
Sets the value ofApiTestStep.getHeaders()- Parameters:
headers- Optional headers to include in HTTP request.- Returns:
this
-
jmesPath
@Stability(Experimental) public ApiTestStep.Builder jmesPath(String jmesPath)
Sets the value ofApiTestStep.getJmesPath()- Parameters:
jmesPath- JMESPath to apply against the response from the HTTP request and compare against expected value.- Returns:
this
-
method
@Stability(Experimental) public ApiTestStep.Builder method(String method)
Sets the value ofApiTestStep.getMethod()- Parameters:
method- Optional method to for HTTP request.- Returns:
this
-
build
@Stability(Experimental) public ApiTestStep build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApiTestStep>- Returns:
- a new instance of
ApiTestStep - Throws:
NullPointerException- if any required attribute was not provided
-
-