Class CfnRoutePropsMixin.HttpRouteMatchProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnRoutePropsMixin.HttpRouteMatchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoutePropsMixin.HttpRouteMatchProperty>
- Enclosing interface:
CfnRoutePropsMixin.HttpRouteMatchProperty
@Stability(Stable)
public static final class CfnRoutePropsMixin.HttpRouteMatchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoutePropsMixin.HttpRouteMatchProperty>
A builder for
CfnRoutePropsMixin.HttpRouteMatchProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getHeaders()headers(IResolvable headers) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getHeaders()Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getMethod()Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getPath()path(IResolvable path) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getPath()Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getPort()Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getPrefix()queryParameters(List<? extends Object> queryParameters) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getQueryParameters()queryParameters(IResolvable queryParameters) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getQueryParameters()Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getScheme()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headers
@Stability(Stable) public CfnRoutePropsMixin.HttpRouteMatchProperty.Builder headers(IResolvable headers) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getHeaders()- Parameters:
headers- The client request headers to match on.- Returns:
this
-
headers
@Stability(Stable) public CfnRoutePropsMixin.HttpRouteMatchProperty.Builder headers(List<? extends Object> headers) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getHeaders()- Parameters:
headers- The client request headers to match on.- Returns:
this
-
method
Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getMethod()- Parameters:
method- The client request method to match on. Specify only one.- Returns:
this
-
path
Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getPath()- Parameters:
path- The client request path to match on.- Returns:
this
-
path
@Stability(Stable) public CfnRoutePropsMixin.HttpRouteMatchProperty.Builder path(CfnRoutePropsMixin.HttpPathMatchProperty path) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getPath()- Parameters:
path- The client request path to match on.- Returns:
this
-
port
Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getPort()- Parameters:
port- The port number to match on.- Returns:
this
-
prefix
Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getPrefix()- Parameters:
prefix- Specifies the path to match requests with. This parameter must always start with/, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name ismy-service.localand you want the route to match requests tomy-service.local/metrics, your prefix should be/metrics.- Returns:
this
-
queryParameters
@Stability(Stable) public CfnRoutePropsMixin.HttpRouteMatchProperty.Builder queryParameters(IResolvable queryParameters) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getQueryParameters()- Parameters:
queryParameters- The client request query parameters to match on.- Returns:
this
-
queryParameters
@Stability(Stable) public CfnRoutePropsMixin.HttpRouteMatchProperty.Builder queryParameters(List<? extends Object> queryParameters) Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getQueryParameters()- Parameters:
queryParameters- The client request query parameters to match on.- Returns:
this
-
scheme
Sets the value ofCfnRoutePropsMixin.HttpRouteMatchProperty.getScheme()- Parameters:
scheme- The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoutePropsMixin.HttpRouteMatchProperty>- Returns:
- a new instance of
CfnRoutePropsMixin.HttpRouteMatchProperty - Throws:
NullPointerException- if any required attribute was not provided
-