Class CfnVirtualNode.DnsServiceDiscoveryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnVirtualNode.DnsServiceDiscoveryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVirtualNode.DnsServiceDiscoveryProperty>
- Enclosing interface:
- CfnVirtualNode.DnsServiceDiscoveryProperty
@Stability(Stable)
public static final class CfnVirtualNode.DnsServiceDiscoveryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVirtualNode.DnsServiceDiscoveryProperty>
A builder for
CfnVirtualNode.DnsServiceDiscoveryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVirtualNode.DnsServiceDiscoveryProperty.getHostname()ipPreference(String ipPreference) Sets the value ofCfnVirtualNode.DnsServiceDiscoveryProperty.getIpPreference()responseType(String responseType) Sets the value ofCfnVirtualNode.DnsServiceDiscoveryProperty.getResponseType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostname
@Stability(Stable) public CfnVirtualNode.DnsServiceDiscoveryProperty.Builder hostname(String hostname) Sets the value ofCfnVirtualNode.DnsServiceDiscoveryProperty.getHostname()- Parameters:
hostname- Specifies the DNS service discovery hostname for the virtual node. This parameter is required.- Returns:
this
-
ipPreference
@Stability(Stable) public CfnVirtualNode.DnsServiceDiscoveryProperty.Builder ipPreference(String ipPreference) Sets the value ofCfnVirtualNode.DnsServiceDiscoveryProperty.getIpPreference()- Parameters:
ipPreference- The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.- Returns:
this
-
responseType
@Stability(Stable) public CfnVirtualNode.DnsServiceDiscoveryProperty.Builder responseType(String responseType) Sets the value ofCfnVirtualNode.DnsServiceDiscoveryProperty.getResponseType()- Parameters:
responseType- Specifies the DNS response type for the virtual node.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVirtualNode.DnsServiceDiscoveryProperty>- Returns:
- a new instance of
CfnVirtualNode.DnsServiceDiscoveryProperty - Throws:
NullPointerException- if any required attribute was not provided
-