@Stability(value=Experimental) public static final class AwsApiCallRequest.Builder extends Object implements software.amazon.jsii.Builder<AwsApiCallRequest>
AwsApiCallRequest
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AwsApiCallRequest.Builder |
api(String api)
Sets the value of
AwsApiCallRequest.getApi() |
AwsApiCallRequest |
build()
Builds the configured instance.
|
AwsApiCallRequest.Builder |
flattenResponse(String flattenResponse)
Sets the value of
AwsApiCallRequest.getFlattenResponse() |
AwsApiCallRequest.Builder |
parameters(Object parameters)
Sets the value of
AwsApiCallRequest.getParameters() |
AwsApiCallRequest.Builder |
service(String service)
Sets the value of
AwsApiCallRequest.getService() |
@Stability(value=Experimental) public AwsApiCallRequest.Builder api(String api)
AwsApiCallRequest.getApi()
api
- The AWS api call to make i.e. getBucketLifecycle. This parameter is required.this
@Stability(value=Experimental) public AwsApiCallRequest.Builder service(String service)
AwsApiCallRequest.getService()
service
- The AWS service i.e. S3. This parameter is required.this
@Stability(value=Experimental) public AwsApiCallRequest.Builder flattenResponse(String flattenResponse)
AwsApiCallRequest.getFlattenResponse()
flattenResponse
- Whether or not to flatten the response from the api call.
Valid values are 'true' or 'false' as strings
Typically 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.
this
@Stability(value=Experimental) public AwsApiCallRequest.Builder parameters(Object parameters)
AwsApiCallRequest.getParameters()
parameters
- Any parameters to pass to the api call.this
@Stability(value=Experimental) public AwsApiCallRequest build()
build
in interface software.amazon.jsii.Builder<AwsApiCallRequest>
AwsApiCallRequest
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.