Class CfnPublicDnsNamespaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.CfnPublicDnsNamespaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPublicDnsNamespaceProps>
- Enclosing interface:
- CfnPublicDnsNamespaceProps
@Stability(Stable)
public static final class CfnPublicDnsNamespaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPublicDnsNamespaceProps>
A builder for
CfnPublicDnsNamespaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnPublicDnsNamespaceProps.getDescription()Sets the value ofCfnPublicDnsNamespaceProps.getName()properties(IResolvable properties) Sets the value ofCfnPublicDnsNamespaceProps.getProperties()properties(CfnPublicDnsNamespace.PropertiesProperty properties) Sets the value ofCfnPublicDnsNamespaceProps.getProperties()Sets the value ofCfnPublicDnsNamespaceProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnPublicDnsNamespaceProps.getName()- Parameters:
name- The name that you want to assign to this namespace. This parameter is required.Do not include sensitive information in the name. The name is publicly available using DNS queries.
- Returns:
this
-
description
Sets the value ofCfnPublicDnsNamespaceProps.getDescription()- Parameters:
description- A description for the namespace.- Returns:
this
-
properties
Sets the value ofCfnPublicDnsNamespaceProps.getProperties()- Parameters:
properties- Properties for the public DNS namespace.- Returns:
this
-
properties
@Stability(Stable) public CfnPublicDnsNamespaceProps.Builder properties(CfnPublicDnsNamespace.PropertiesProperty properties) Sets the value ofCfnPublicDnsNamespaceProps.getProperties()- Parameters:
properties- Properties for the public DNS namespace.- Returns:
this
-
tags
Sets the value ofCfnPublicDnsNamespaceProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnPublicDnsNamespaceProps>- Returns:
- a new instance of
CfnPublicDnsNamespaceProps - Throws:
NullPointerException- if any required attribute was not provided
-