Class VirtualService.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.VirtualService.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VirtualService>
- Enclosing class:
- VirtualService
@Stability(Stable)
public static final class VirtualService.Builder
extends Object
implements software.amazon.jsii.Builder<VirtualService>
A fluent builder for
VirtualService.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static VirtualService.BuildervirtualServiceName(String virtualServiceName) The name of the VirtualService.virtualServiceProvider(VirtualServiceProvider virtualServiceProvider) The VirtualNode or VirtualRouter which the VirtualService uses as its provider.
-
Method Details
-
create
@Stability(Stable) public static VirtualService.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
VirtualService.Builder.
-
virtualServiceProvider
@Stability(Stable) public VirtualService.Builder virtualServiceProvider(VirtualServiceProvider virtualServiceProvider) The VirtualNode or VirtualRouter which the VirtualService uses as its provider.- Parameters:
virtualServiceProvider- The VirtualNode or VirtualRouter which the VirtualService uses as its provider. This parameter is required.- Returns:
this
-
virtualServiceName
The name of the VirtualService.It is recommended this follows the fully-qualified domain name format, such as "my-service.default.svc.cluster.local".
Example value:
service.domain.localDefault: - A name is automatically generated
- Parameters:
virtualServiceName- The name of the VirtualService. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VirtualService>- Returns:
- a newly built instance of
VirtualService.
-