Class CfnListenerRule.HttpRequestMethodConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.HttpRequestMethodConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRule.HttpRequestMethodConfigProperty>
- Enclosing interface:
CfnListenerRule.HttpRequestMethodConfigProperty
@Stability(Stable)
public static final class CfnListenerRule.HttpRequestMethodConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerRule.HttpRequestMethodConfigProperty>
A builder for
CfnListenerRule.HttpRequestMethodConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnListenerRule.HttpRequestMethodConfigProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
values
@Stability(Stable) public CfnListenerRule.HttpRequestMethodConfigProperty.Builder values(List<String> values) Sets the value ofCfnListenerRule.HttpRequestMethodConfigProperty.getValues()
- Parameters:
values
- The name of the request method. The maximum size is 40 characters. The allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is case sensitive. Wildcards are not supported; therefore, the method name must be an exact match.If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListenerRule.HttpRequestMethodConfigProperty>
- Returns:
- a new instance of
CfnListenerRule.HttpRequestMethodConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-