Class AwsApiCallRequest.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.AwsApiCallRequest.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsApiCallRequest>
- Enclosing interface:
AwsApiCallRequest
@Stability(Experimental)
public static final class AwsApiCallRequest.Builder
extends Object
implements software.amazon.jsii.Builder<AwsApiCallRequest>
A builder for
AwsApiCallRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAwsApiCallRequest.getApi()
build()
Builds the configured instance.flattenResponse
(String flattenResponse) Sets the value ofAwsApiCallRequest.getFlattenResponse()
outputPaths
(List<String> outputPaths) Sets the value ofAwsApiCallRequest.getOutputPaths()
parameters
(Object parameters) Sets the value ofAwsApiCallRequest.getParameters()
Sets the value ofAwsApiCallRequest.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
api
Sets the value ofAwsApiCallRequest.getApi()
- Parameters:
api
- The AWS api call to make i.e. getBucketLifecycle. This parameter is required.- Returns:
this
-
service
Sets the value ofAwsApiCallRequest.getService()
- Parameters:
service
- The AWS service i.e. S3. This parameter is required.- Returns:
this
-
flattenResponse
Sets the value ofAwsApiCallRequest.getFlattenResponse()
- Parameters:
flattenResponse
- Whether or not to flatten the response from the api call. Valid values are 'true' or 'false' as stringsTypically when using an SdkRequest you will be passing it as the
actual
value to an assertion provider so this would be set to 'false' (you want the actual response).If you are using the SdkRequest to perform more of a query to return a single value to use, then this should be set to 'true'. For example, you could make a StepFunctions.startExecution api call and retreive the
executionArn
from the response.- Returns:
this
-
outputPaths
Sets the value ofAwsApiCallRequest.getOutputPaths()
- Parameters:
outputPaths
- Restrict the data returned by the API call to specific paths in the API response. Use this to limit the data returned by the custom resource if working with API calls that could potentially result in custom response objects exceeding the hard limit of 4096 bytes.- Returns:
this
-
parameters
Sets the value ofAwsApiCallRequest.getParameters()
- Parameters:
parameters
- Any parameters to pass to the api call.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AwsApiCallRequest>
- Returns:
- a new instance of
AwsApiCallRequest
- Throws:
NullPointerException
- if any required attribute was not provided
-