Interface ResponseInspection.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseInspection.Builder,,ResponseInspection> SdkBuilder<ResponseInspection.Builder,,ResponseInspection> SdkPojo
- Enclosing class:
ResponseInspection
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseInspection.BuilderbodyContains(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.BuilderConfigures 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.BuilderConfigures 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.BuilderstatusCode(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaResponseInspectionStatusCode.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaResponseInspectionHeader.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaResponseInspectionBodyContains.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaResponseInspectionJson.builder().When the
Consumercompletes,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:
-