Class PrivateDnsNamespaceAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.PrivateDnsNamespaceAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PrivateDnsNamespaceAttributes>
- Enclosing interface:
- PrivateDnsNamespaceAttributes
@Stability(Stable)
public static final class PrivateDnsNamespaceAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<PrivateDnsNamespaceAttributes>
A builder for
PrivateDnsNamespaceAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.namespaceArn(String namespaceArn) Sets the value ofPrivateDnsNamespaceAttributes.getNamespaceArn()namespaceId(String namespaceId) Sets the value ofPrivateDnsNamespaceAttributes.getNamespaceId()namespaceName(String namespaceName) Sets the value ofPrivateDnsNamespaceAttributes.getNamespaceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
namespaceArn
Sets the value ofPrivateDnsNamespaceAttributes.getNamespaceArn()- Parameters:
namespaceArn- Namespace ARN for the Namespace. This parameter is required.- Returns:
this
-
namespaceId
Sets the value ofPrivateDnsNamespaceAttributes.getNamespaceId()- Parameters:
namespaceId- Namespace Id for the Namespace. This parameter is required.- Returns:
this
-
namespaceName
Sets the value ofPrivateDnsNamespaceAttributes.getNamespaceName()- Parameters:
namespaceName- A name for the Namespace. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PrivateDnsNamespaceAttributes>- Returns:
- a new instance of
PrivateDnsNamespaceAttributes - Throws:
NullPointerException- if any required attribute was not provided
-