Class MeshProps.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.MeshProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MeshProps>
- Enclosing interface:
MeshProps
@Stability(Stable)
public static final class MeshProps.Builder
extends Object
implements software.amazon.jsii.Builder<MeshProps>
A builder for
MeshProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.egressFilter
(MeshFilterType egressFilter) Sets the value ofMeshProps.getEgressFilter()
Sets the value ofMeshProps.getMeshName()
serviceDiscovery
(MeshServiceDiscovery serviceDiscovery) Sets the value ofMeshProps.getServiceDiscovery()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
egressFilter
Sets the value ofMeshProps.getEgressFilter()
- Parameters:
egressFilter
- Egress filter to be applied to the Mesh.- Returns:
this
-
meshName
Sets the value ofMeshProps.getMeshName()
- Parameters:
meshName
- The name of the Mesh being defined.- Returns:
this
-
serviceDiscovery
Sets the value ofMeshProps.getServiceDiscovery()
- Parameters:
serviceDiscovery
- Defines how upstream clients will discover VirtualNodes in the Mesh.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MeshProps>
- Returns:
- a new instance of
MeshProps
- Throws:
NullPointerException
- if any required attribute was not provided
-