Class RouteAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.RouteAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RouteAttributes>
- Enclosing interface:
RouteAttributes
@Stability(Stable)
public static final class RouteAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<RouteAttributes>
A builder for
RouteAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofRouteAttributes.getRouteName()
virtualRouter
(IVirtualRouter virtualRouter) Sets the value ofRouteAttributes.getVirtualRouter()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
routeName
Sets the value ofRouteAttributes.getRouteName()
- Parameters:
routeName
- The name of the Route. This parameter is required.- Returns:
this
-
virtualRouter
Sets the value ofRouteAttributes.getVirtualRouter()
- Parameters:
virtualRouter
- The VirtualRouter the Route belongs to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RouteAttributes>
- Returns:
- a new instance of
RouteAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-