Class CfnGatewayRoute.GrpcGatewayRouteMatchProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnGatewayRoute.GrpcGatewayRouteMatchProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRoute.GrpcGatewayRouteMatchProperty>
- Enclosing interface:
CfnGatewayRoute.GrpcGatewayRouteMatchProperty
@Stability(Stable)
public static final class CfnGatewayRoute.GrpcGatewayRouteMatchProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRoute.GrpcGatewayRouteMatchProperty>
A builder for
CfnGatewayRoute.GrpcGatewayRouteMatchProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.hostname
(IResolvable hostname) Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getHostname()
Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getHostname()
Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getMetadata()
metadata
(IResolvable metadata) Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getMetadata()
Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getPort()
serviceName
(String serviceName) Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostname
@Stability(Stable) public CfnGatewayRoute.GrpcGatewayRouteMatchProperty.Builder hostname(IResolvable hostname) Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getHostname()
- Parameters:
hostname
- The gateway route host name to be matched on.- Returns:
this
-
hostname
@Stability(Stable) public CfnGatewayRoute.GrpcGatewayRouteMatchProperty.Builder hostname(CfnGatewayRoute.GatewayRouteHostnameMatchProperty hostname) Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getHostname()
- Parameters:
hostname
- The gateway route host name to be matched on.- Returns:
this
-
metadata
@Stability(Stable) public CfnGatewayRoute.GrpcGatewayRouteMatchProperty.Builder metadata(IResolvable metadata) Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getMetadata()
- Parameters:
metadata
- The gateway route metadata to be matched on.- Returns:
this
-
metadata
@Stability(Stable) public CfnGatewayRoute.GrpcGatewayRouteMatchProperty.Builder metadata(List<? extends Object> metadata) Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getMetadata()
- Parameters:
metadata
- The gateway route metadata to be matched on.- Returns:
this
-
port
Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getPort()
- Parameters:
port
- The gateway route port to be matched on.- Returns:
this
-
serviceName
@Stability(Stable) public CfnGatewayRoute.GrpcGatewayRouteMatchProperty.Builder serviceName(String serviceName) Sets the value ofCfnGatewayRoute.GrpcGatewayRouteMatchProperty.getServiceName()
- Parameters:
serviceName
- The fully qualified domain name for the service to match from the request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGatewayRoute.GrpcGatewayRouteMatchProperty>
- Returns:
- a new instance of
CfnGatewayRoute.GrpcGatewayRouteMatchProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-