Class CfnPrivateDnsNamespaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.CfnPrivateDnsNamespaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrivateDnsNamespaceProps>
- Enclosing interface:
CfnPrivateDnsNamespaceProps
@Stability(Stable)
public static final class CfnPrivateDnsNamespaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrivateDnsNamespaceProps>
A builder for
CfnPrivateDnsNamespaceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnPrivateDnsNamespaceProps.getDescription()
Sets the value ofCfnPrivateDnsNamespaceProps.getName()
properties
(IResolvable properties) Sets the value ofCfnPrivateDnsNamespaceProps.getProperties()
properties
(CfnPrivateDnsNamespace.PropertiesProperty properties) Sets the value ofCfnPrivateDnsNamespaceProps.getProperties()
Sets the value ofCfnPrivateDnsNamespaceProps.getTags()
Sets the value ofCfnPrivateDnsNamespaceProps.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnPrivateDnsNamespaceProps.getName()
- Parameters:
name
- The name that you want to assign to this namespace. This parameter is required. 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
-
vpc
Sets the value ofCfnPrivateDnsNamespaceProps.getVpc()
- Parameters:
vpc
- The ID of the Amazon VPC that you want to associate the namespace with. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnPrivateDnsNamespaceProps.getDescription()
- Parameters:
description
- A description for the namespace.- Returns:
this
-
properties
Sets the value ofCfnPrivateDnsNamespaceProps.getProperties()
- Parameters:
properties
- Properties for the private DNS namespace.- Returns:
this
-
properties
@Stability(Stable) public CfnPrivateDnsNamespaceProps.Builder properties(CfnPrivateDnsNamespace.PropertiesProperty properties) Sets the value ofCfnPrivateDnsNamespaceProps.getProperties()
- Parameters:
properties
- Properties for the private DNS namespace.- Returns:
this
-
tags
Sets the value ofCfnPrivateDnsNamespaceProps.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPrivateDnsNamespaceProps>
- Returns:
- a new instance of
CfnPrivateDnsNamespaceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-