Class CfnPrivateDnsNamespace.PropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespace.PropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrivateDnsNamespace.PropertiesProperty>
- Enclosing interface:
CfnPrivateDnsNamespace.PropertiesProperty
@Stability(Stable)
public static final class CfnPrivateDnsNamespace.PropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrivateDnsNamespace.PropertiesProperty>
A builder for
CfnPrivateDnsNamespace.PropertiesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dnsProperties
(IResolvable dnsProperties) Sets the value ofCfnPrivateDnsNamespace.PropertiesProperty.getDnsProperties()
Sets the value ofCfnPrivateDnsNamespace.PropertiesProperty.getDnsProperties()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsProperties
@Stability(Stable) public CfnPrivateDnsNamespace.PropertiesProperty.Builder dnsProperties(IResolvable dnsProperties) Sets the value ofCfnPrivateDnsNamespace.PropertiesProperty.getDnsProperties()
- Parameters:
dnsProperties
- DNS properties for the private DNS namespace.- Returns:
this
-
dnsProperties
@Stability(Stable) public CfnPrivateDnsNamespace.PropertiesProperty.Builder dnsProperties(CfnPrivateDnsNamespace.PrivateDnsPropertiesMutableProperty dnsProperties) Sets the value ofCfnPrivateDnsNamespace.PropertiesProperty.getDnsProperties()
- Parameters:
dnsProperties
- DNS properties for the private DNS namespace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrivateDnsNamespace.PropertiesProperty>
- Returns:
- a new instance of
CfnPrivateDnsNamespace.PropertiesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-