Interface CustomRequestHandling.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CustomRequestHandling.Builder,CustomRequestHandling>,SdkBuilder<CustomRequestHandling.Builder,CustomRequestHandling>,SdkPojo
- Enclosing class:
- CustomRequestHandling
public static interface CustomRequestHandling.Builder extends SdkPojo, CopyableBuilder<CustomRequestHandling.Builder,CustomRequestHandling>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomRequestHandling.BuilderinsertHeaders(Collection<CustomHTTPHeader> insertHeaders)The HTTP headers to insert into the request.CustomRequestHandling.BuilderinsertHeaders(Consumer<CustomHTTPHeader.Builder>... insertHeaders)The HTTP headers to insert into the request.CustomRequestHandling.BuilderinsertHeaders(CustomHTTPHeader... insertHeaders)The HTTP headers to insert into the request.-
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
-
insertHeaders
CustomRequestHandling.Builder insertHeaders(Collection<CustomHTTPHeader> 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
CustomRequestHandling.Builder insertHeaders(CustomHTTPHeader... 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
CustomRequestHandling.Builder insertHeaders(Consumer<CustomHTTPHeader.Builder>... 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 to#insertHeaders(List.) - 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:
#insertHeaders(java.util.Collection)
-
-