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