Interface ResponseInspection.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResponseInspection.Builder,ResponseInspection>,SdkBuilder<ResponseInspection.Builder,ResponseInspection>,SdkPojo
- Enclosing class:
- ResponseInspection
public static interface ResponseInspection.Builder extends SdkPojo, CopyableBuilder<ResponseInspection.Builder,ResponseInspection>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ResponseInspection.BuilderbodyContains(Consumer<ResponseInspectionBodyContains.Builder> bodyContains)Configures inspection of the response body for success and failure indicators.ResponseInspection.BuilderbodyContains(ResponseInspectionBodyContains bodyContains)Configures inspection of the response body for success and failure indicators.default ResponseInspection.Builderheader(Consumer<ResponseInspectionHeader.Builder> header)Configures inspection of the response header for success and failure indicators.ResponseInspection.Builderheader(ResponseInspectionHeader header)Configures inspection of the response header for success and failure indicators.default ResponseInspection.Builderjson(Consumer<ResponseInspectionJson.Builder> json)Configures inspection of the response JSON for success and failure indicators.ResponseInspection.Builderjson(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.ResponseInspection.BuilderstatusCode(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
statusCode
ResponseInspection.Builder statusCode(ResponseInspectionStatusCode 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:
statusCode(ResponseInspectionStatusCode)
-
header
ResponseInspection.Builder header(ResponseInspectionHeader 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
default ResponseInspection.Builder header(Consumer<ResponseInspectionHeader.Builder> 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:
header(ResponseInspectionHeader)
-
bodyContains
ResponseInspection.Builder bodyContains(ResponseInspectionBodyContains 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:
bodyContains(ResponseInspectionBodyContains)
-
json
ResponseInspection.Builder json(ResponseInspectionJson 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
default ResponseInspection.Builder json(Consumer<ResponseInspectionJson.Builder> 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:
json(ResponseInspectionJson)
-
-