Class PrivateDnsNamespaceProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespaceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrivateDnsNamespaceProps>
- Enclosing interface:
- PrivateDnsNamespaceProps
@Stability(Stable)
public static final class PrivateDnsNamespaceProps.Builder
extends Object
implements software.amazon.jsii.Builder<PrivateDnsNamespaceProps>
A builder for
PrivateDnsNamespaceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofBaseNamespaceProps.getDescription()Sets the value ofBaseNamespaceProps.getName()Sets the value ofPrivateDnsNamespaceProps.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
vpc
Sets the value ofPrivateDnsNamespaceProps.getVpc()- Parameters:
vpc- The Amazon VPC that you want to associate the namespace with. This parameter is required.- Returns:
this
-
name
Sets the value ofBaseNamespaceProps.getName()- Parameters:
name- A name for the Namespace. This parameter is required.- Returns:
this
-
description
Sets the value ofBaseNamespaceProps.getDescription()- Parameters:
description- A description of the Namespace.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrivateDnsNamespaceProps>- Returns:
- a new instance of
PrivateDnsNamespaceProps - Throws:
NullPointerException- if any required attribute was not provided
-