Interface ResponseInspection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ResponseInspection.Builder,
,ResponseInspection> SdkBuilder<ResponseInspection.Builder,
,ResponseInspection> SdkPojo
- Enclosing class:
ResponseInspection
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseInspection.Builder
bodyContains
(Consumer<ResponseInspectionBodyContains.Builder> bodyContains) Configures inspection of the response body for success and failure indicators.bodyContains
(ResponseInspectionBodyContains bodyContains) Configures inspection of the response body for success and failure indicators.default ResponseInspection.Builder
Configures inspection of the response header for success and failure indicators.header
(ResponseInspectionHeader header) Configures inspection of the response header for success and failure indicators.default ResponseInspection.Builder
Configures inspection of the response JSON for success and failure indicators.json
(ResponseInspectionJson json) Configures inspection of the response JSON for success and failure indicators.default ResponseInspection.Builder
statusCode
(Consumer<ResponseInspectionStatusCode.Builder> statusCode) Configures inspection of the response status code for success and failure indicators.statusCode
(ResponseInspectionStatusCode statusCode) Configures inspection of the response status code for success and failure indicators.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
statusCode
Configures inspection of the response status code for success and failure indicators.
- Parameters:
statusCode
- Configures inspection of the response status code for success and failure indicators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusCode
default ResponseInspection.Builder statusCode(Consumer<ResponseInspectionStatusCode.Builder> statusCode) Configures inspection of the response status code for success and failure indicators.
This is a convenience method that creates an instance of theResponseInspectionStatusCode.Builder
avoiding the need to create one manually viaResponseInspectionStatusCode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatusCode(ResponseInspectionStatusCode)
.- Parameters:
statusCode
- a consumer that will call methods onResponseInspectionStatusCode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
header
Configures inspection of the response header for success and failure indicators.
- Parameters:
header
- Configures inspection of the response header for success and failure indicators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
header
Configures inspection of the response header for success and failure indicators.
This is a convenience method that creates an instance of theResponseInspectionHeader.Builder
avoiding the need to create one manually viaResponseInspectionHeader.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toheader(ResponseInspectionHeader)
.- Parameters:
header
- a consumer that will call methods onResponseInspectionHeader.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bodyContains
Configures inspection of the response body for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
- Parameters:
bodyContains
- Configures inspection of the response body for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response body.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bodyContains
default ResponseInspection.Builder bodyContains(Consumer<ResponseInspectionBodyContains.Builder> bodyContains) Configures inspection of the response body for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
This is a convenience method that creates an instance of theResponseInspectionBodyContains.Builder
avoiding the need to create one manually viaResponseInspectionBodyContains.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobodyContains(ResponseInspectionBodyContains)
.- Parameters:
bodyContains
- a consumer that will call methods onResponseInspectionBodyContains.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
json
Configures inspection of the response JSON for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
- Parameters:
json
- Configures inspection of the response JSON for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
json
Configures inspection of the response JSON for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
This is a convenience method that creates an instance of theResponseInspectionJson.Builder
avoiding the need to create one manually viaResponseInspectionJson.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tojson(ResponseInspectionJson)
.- Parameters:
json
- a consumer that will call methods onResponseInspectionJson.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-