public static final class CfnPrivateDnsNamespaceProps.Builder
extends java.lang.Object
CfnPrivateDnsNamespaceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnPrivateDnsNamespaceProps |
build()
Builds the configured instance.
|
CfnPrivateDnsNamespaceProps.Builder |
description(java.lang.String description)
Sets the value of
CfnPrivateDnsNamespaceProps.getDescription() |
CfnPrivateDnsNamespaceProps.Builder |
name(java.lang.String name)
Sets the value of
CfnPrivateDnsNamespaceProps.getName() |
CfnPrivateDnsNamespaceProps.Builder |
properties(CfnPrivateDnsNamespace.PropertiesProperty properties)
Sets the value of
CfnPrivateDnsNamespaceProps.getProperties() |
CfnPrivateDnsNamespaceProps.Builder |
properties(IResolvable properties)
Sets the value of
CfnPrivateDnsNamespaceProps.getProperties() |
CfnPrivateDnsNamespaceProps.Builder |
tags(java.util.List<? extends CfnTag> tags)
Sets the value of
CfnPrivateDnsNamespaceProps.getTags() |
CfnPrivateDnsNamespaceProps.Builder |
vpc(java.lang.String vpc)
Sets the value of
CfnPrivateDnsNamespaceProps.getVpc() |
public CfnPrivateDnsNamespaceProps.Builder name(java.lang.String name)
CfnPrivateDnsNamespaceProps.getName()
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.this
public CfnPrivateDnsNamespaceProps.Builder vpc(java.lang.String vpc)
CfnPrivateDnsNamespaceProps.getVpc()
vpc
- The ID of the Amazon VPC that you want to associate the namespace with. This parameter is required.this
public CfnPrivateDnsNamespaceProps.Builder description(java.lang.String description)
CfnPrivateDnsNamespaceProps.getDescription()
description
- A description for the namespace.this
public CfnPrivateDnsNamespaceProps.Builder properties(IResolvable properties)
CfnPrivateDnsNamespaceProps.getProperties()
properties
- Properties for the private DNS namespace.this
public CfnPrivateDnsNamespaceProps.Builder properties(CfnPrivateDnsNamespace.PropertiesProperty properties)
CfnPrivateDnsNamespaceProps.getProperties()
properties
- Properties for the private DNS namespace.this
public CfnPrivateDnsNamespaceProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnPrivateDnsNamespaceProps.getTags()
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.this
public CfnPrivateDnsNamespaceProps build()
CfnPrivateDnsNamespaceProps
java.lang.NullPointerException
- if any required attribute was not provided