Interface CustomRequestHandling.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CustomRequestHandling.Builder,,CustomRequestHandling> SdkBuilder<CustomRequestHandling.Builder,,CustomRequestHandling> SdkPojo
- Enclosing class:
CustomRequestHandling
-
Method Summary
Modifier and TypeMethodDescriptioninsertHeaders(Collection<CustomHTTPHeader> insertHeaders) The HTTP headers to insert into the request.insertHeaders(Consumer<CustomHTTPHeader.Builder>... insertHeaders) The HTTP headers to insert into the request.insertHeaders(CustomHTTPHeader... insertHeaders) The HTTP headers to insert into the request.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, sdkFields
-
Method Details
-
insertHeaders
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
- Parameters:
insertHeaders- The HTTP headers to insert into the request. Duplicate header names are not allowed.For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insertHeaders
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
- Parameters:
insertHeaders- The HTTP headers to insert into the request. Duplicate header names are not allowed.For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insertHeaders
The HTTP headers to insert into the request. Duplicate header names are not allowed.
For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.
This is a convenience method that creates an instance of theCustomHTTPHeader.Builderavoiding the need to create one manually viaCustomHTTPHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinsertHeaders(List<CustomHTTPHeader>).- Parameters:
insertHeaders- a consumer that will call methods onCustomHTTPHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-