Class CfnListenerRule.HttpHeaderConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.HttpHeaderConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRule.HttpHeaderConfigProperty>
- Enclosing interface:
CfnListenerRule.HttpHeaderConfigProperty
@Stability(Stable)
public static final class CfnListenerRule.HttpHeaderConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerRule.HttpHeaderConfigProperty>
A builder for
CfnListenerRule.HttpHeaderConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.httpHeaderName
(String httpHeaderName) Sets the value ofCfnListenerRule.HttpHeaderConfigProperty.getHttpHeaderName()
Sets the value ofCfnListenerRule.HttpHeaderConfigProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpHeaderName
@Stability(Stable) public CfnListenerRule.HttpHeaderConfigProperty.Builder httpHeaderName(String httpHeaderName) Sets the value ofCfnListenerRule.HttpHeaderConfigProperty.getHttpHeaderName()
- Parameters:
httpHeaderName
- The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.- Returns:
this
-
values
@Stability(Stable) public CfnListenerRule.HttpHeaderConfigProperty.Builder values(List<String> values) Sets the value ofCfnListenerRule.HttpHeaderConfigProperty.getValues()
- Parameters:
values
- The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListenerRule.HttpHeaderConfigProperty>
- Returns:
- a new instance of
CfnListenerRule.HttpHeaderConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-