Class ServiceDiscoveryConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.ServiceDiscoveryConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceDiscoveryConfig>
- Enclosing interface:
- ServiceDiscoveryConfig
@Stability(Stable)
public static final class ServiceDiscoveryConfig.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceDiscoveryConfig>
A builder for
ServiceDiscoveryConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofServiceDiscoveryConfig.getCloudmap()Sets the value ofServiceDiscoveryConfig.getDns()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudmap
@Stability(Stable) public ServiceDiscoveryConfig.Builder cloudmap(CfnVirtualNode.AwsCloudMapServiceDiscoveryProperty cloudmap) Sets the value ofServiceDiscoveryConfig.getCloudmap()- Parameters:
cloudmap- Cloud Map based Service Discovery.- Returns:
this
-
dns
@Stability(Stable) public ServiceDiscoveryConfig.Builder dns(CfnVirtualNode.DnsServiceDiscoveryProperty dns) Sets the value ofServiceDiscoveryConfig.getDns()- Parameters:
dns- DNS based Service Discovery.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceDiscoveryConfig>- Returns:
- a new instance of
ServiceDiscoveryConfig - Throws:
NullPointerException- if any required attribute was not provided
-