Class CfnPrivateDnsNamespaceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.servicediscovery.CfnPrivateDnsNamespaceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrivateDnsNamespaceMixinProps>
- Enclosing interface:
CfnPrivateDnsNamespaceMixinProps
@Stability(Stable)
public static final class CfnPrivateDnsNamespaceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrivateDnsNamespaceMixinProps>
A builder for
CfnPrivateDnsNamespaceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnPrivateDnsNamespaceMixinProps.getDescription()Sets the value ofCfnPrivateDnsNamespaceMixinProps.getName()Sets the value ofCfnPrivateDnsNamespaceMixinProps.getProperties()properties(IResolvable properties) Sets the value ofCfnPrivateDnsNamespaceMixinProps.getProperties()Sets the value ofCfnPrivateDnsNamespaceMixinProps.getTags()Sets the value ofCfnPrivateDnsNamespaceMixinProps.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnPrivateDnsNamespaceMixinProps.getDescription()- Parameters:
description- A description for the namespace.- Returns:
this
-
name
Sets the value ofCfnPrivateDnsNamespaceMixinProps.getName()- Parameters:
name- The name that you want to assign to this namespace. When you create a private DNS namespace, AWS Cloud Map automatically creates an Amazon RouteĀ 53 private hosted zone that has the same name as the namespace.- Returns:
this
-
properties
@Stability(Stable) public CfnPrivateDnsNamespaceMixinProps.Builder properties(IResolvable properties) Sets the value ofCfnPrivateDnsNamespaceMixinProps.getProperties()- Parameters:
properties- Properties for the private DNS namespace.- Returns:
this
-
properties
@Stability(Stable) public CfnPrivateDnsNamespaceMixinProps.Builder properties(CfnPrivateDnsNamespacePropsMixin.PropertiesProperty properties) Sets the value ofCfnPrivateDnsNamespaceMixinProps.getProperties()- Parameters:
properties- Properties for the private DNS namespace.- Returns:
this
-
tags
@Stability(Stable) public CfnPrivateDnsNamespaceMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnPrivateDnsNamespaceMixinProps.getTags()- Parameters:
tags- The tags for the namespace. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.- Returns:
this
-
vpc
Sets the value ofCfnPrivateDnsNamespaceMixinProps.getVpc()- Parameters:
vpc- The ID of the Amazon VPC that you want to associate the namespace with.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrivateDnsNamespaceMixinProps>- Returns:
- a new instance of
CfnPrivateDnsNamespaceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-