Class VirtualRouterProps.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.VirtualRouterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VirtualRouterProps>
- Enclosing interface:
- VirtualRouterProps
@Stability(Stable)
public static final class VirtualRouterProps.Builder
extends Object
implements software.amazon.jsii.Builder<VirtualRouterProps>
A builder for
VirtualRouterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.listeners(List<? extends VirtualRouterListener> listeners) Sets the value ofVirtualRouterBaseProps.getListeners()Sets the value ofVirtualRouterProps.getMesh()virtualRouterName(String virtualRouterName) Sets the value ofVirtualRouterBaseProps.getVirtualRouterName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mesh
Sets the value ofVirtualRouterProps.getMesh()- Parameters:
mesh- The Mesh which the VirtualRouter belongs to. This parameter is required.- Returns:
this
-
listeners
@Stability(Stable) public VirtualRouterProps.Builder listeners(List<? extends VirtualRouterListener> listeners) Sets the value ofVirtualRouterBaseProps.getListeners()- Parameters:
listeners- Listener specification for the VirtualRouter.- Returns:
this
-
virtualRouterName
Sets the value ofVirtualRouterBaseProps.getVirtualRouterName()- Parameters:
virtualRouterName- The name of the VirtualRouter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VirtualRouterProps>- Returns:
- a new instance of
VirtualRouterProps - Throws:
NullPointerException- if any required attribute was not provided
-