public static final class CfnVirtualNode.DnsServiceDiscoveryProperty.Builder
extends java.lang.Object
CfnVirtualNode.DnsServiceDiscoveryProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnVirtualNode.DnsServiceDiscoveryProperty |
build()
Builds the configured instance.
|
CfnVirtualNode.DnsServiceDiscoveryProperty.Builder |
hostname(java.lang.String hostname)
Sets the value of
CfnVirtualNode.DnsServiceDiscoveryProperty.getHostname() |
CfnVirtualNode.DnsServiceDiscoveryProperty.Builder |
ipPreference(java.lang.String ipPreference)
Sets the value of
CfnVirtualNode.DnsServiceDiscoveryProperty.getIpPreference() |
CfnVirtualNode.DnsServiceDiscoveryProperty.Builder |
responseType(java.lang.String responseType)
Sets the value of
CfnVirtualNode.DnsServiceDiscoveryProperty.getResponseType() |
public CfnVirtualNode.DnsServiceDiscoveryProperty.Builder hostname(java.lang.String hostname)
CfnVirtualNode.DnsServiceDiscoveryProperty.getHostname()
hostname
- Specifies the DNS service discovery hostname for the virtual node. This parameter is required.this
public CfnVirtualNode.DnsServiceDiscoveryProperty.Builder ipPreference(java.lang.String ipPreference)
CfnVirtualNode.DnsServiceDiscoveryProperty.getIpPreference()
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.this
public CfnVirtualNode.DnsServiceDiscoveryProperty.Builder responseType(java.lang.String responseType)
CfnVirtualNode.DnsServiceDiscoveryProperty.getResponseType()
responseType
- Specifies the DNS response type for the virtual node.this
public CfnVirtualNode.DnsServiceDiscoveryProperty build()
CfnVirtualNode.DnsServiceDiscoveryProperty
java.lang.NullPointerException
- if any required attribute was not provided