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