Class VirtualServiceProviderConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.VirtualServiceProviderConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VirtualServiceProviderConfig>
- Enclosing interface:
VirtualServiceProviderConfig
@Stability(Stable)
public static final class VirtualServiceProviderConfig.Builder
extends Object
implements software.amazon.jsii.Builder<VirtualServiceProviderConfig>
A builder for
VirtualServiceProviderConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofVirtualServiceProviderConfig.getMesh()
virtualNodeProvider
(CfnVirtualService.VirtualNodeServiceProviderProperty virtualNodeProvider) Sets the value ofVirtualServiceProviderConfig.getVirtualNodeProvider()
virtualRouterProvider
(CfnVirtualService.VirtualRouterServiceProviderProperty virtualRouterProvider) Sets the value ofVirtualServiceProviderConfig.getVirtualRouterProvider()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mesh
Sets the value ofVirtualServiceProviderConfig.getMesh()
- Parameters:
mesh
- Mesh the Provider is using. This parameter is required.- Returns:
this
-
virtualNodeProvider
@Stability(Stable) public VirtualServiceProviderConfig.Builder virtualNodeProvider(CfnVirtualService.VirtualNodeServiceProviderProperty virtualNodeProvider) Sets the value ofVirtualServiceProviderConfig.getVirtualNodeProvider()
- Parameters:
virtualNodeProvider
- Virtual Node based provider.- Returns:
this
-
virtualRouterProvider
@Stability(Stable) public VirtualServiceProviderConfig.Builder virtualRouterProvider(CfnVirtualService.VirtualRouterServiceProviderProperty virtualRouterProvider) Sets the value ofVirtualServiceProviderConfig.getVirtualRouterProvider()
- Parameters:
virtualRouterProvider
- Virtual Router based provider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VirtualServiceProviderConfig>
- Returns:
- a new instance of
VirtualServiceProviderConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-