Class CfnMesh.MeshSpecProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnMesh.MeshSpecProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMesh.MeshSpecProperty>
- Enclosing interface:
CfnMesh.MeshSpecProperty
@Stability(Stable)
public static final class CfnMesh.MeshSpecProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMesh.MeshSpecProperty>
A builder for
CfnMesh.MeshSpecProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.egressFilter
(IResolvable egressFilter) Sets the value ofCfnMesh.MeshSpecProperty.getEgressFilter()
egressFilter
(CfnMesh.EgressFilterProperty egressFilter) Sets the value ofCfnMesh.MeshSpecProperty.getEgressFilter()
serviceDiscovery
(IResolvable serviceDiscovery) Sets the value ofCfnMesh.MeshSpecProperty.getServiceDiscovery()
serviceDiscovery
(CfnMesh.MeshServiceDiscoveryProperty serviceDiscovery) Sets the value ofCfnMesh.MeshSpecProperty.getServiceDiscovery()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
egressFilter
Sets the value ofCfnMesh.MeshSpecProperty.getEgressFilter()
- Parameters:
egressFilter
- The egress filter rules for the service mesh.- Returns:
this
-
egressFilter
@Stability(Stable) public CfnMesh.MeshSpecProperty.Builder egressFilter(CfnMesh.EgressFilterProperty egressFilter) Sets the value ofCfnMesh.MeshSpecProperty.getEgressFilter()
- Parameters:
egressFilter
- The egress filter rules for the service mesh.- Returns:
this
-
serviceDiscovery
@Stability(Stable) public CfnMesh.MeshSpecProperty.Builder serviceDiscovery(IResolvable serviceDiscovery) Sets the value ofCfnMesh.MeshSpecProperty.getServiceDiscovery()
- Parameters:
serviceDiscovery
- An object that represents the service discovery information for a service mesh.- Returns:
this
-
serviceDiscovery
@Stability(Stable) public CfnMesh.MeshSpecProperty.Builder serviceDiscovery(CfnMesh.MeshServiceDiscoveryProperty serviceDiscovery) Sets the value ofCfnMesh.MeshSpecProperty.getServiceDiscovery()
- Parameters:
serviceDiscovery
- An object that represents the service discovery information for a service mesh.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMesh.MeshSpecProperty>
- Returns:
- a new instance of
CfnMesh.MeshSpecProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-