Class CloudMapNamespaceOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CloudMapNamespaceOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudMapNamespaceOptions>
- Enclosing interface:
CloudMapNamespaceOptions
@Stability(Stable)
public static final class CloudMapNamespaceOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CloudMapNamespaceOptions>
A builder for
CloudMapNamespaceOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCloudMapNamespaceOptions.getName()
type
(NamespaceType type) Sets the value ofCloudMapNamespaceOptions.getType()
Sets the value ofCloudMapNamespaceOptions.getVpc()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCloudMapNamespaceOptions.getName()
- Parameters:
name
- The name of the namespace, such as example.com. This parameter is required.- Returns:
this
-
type
Sets the value ofCloudMapNamespaceOptions.getType()
- Parameters:
type
- The type of CloudMap Namespace to create.- Returns:
this
-
vpc
Sets the value ofCloudMapNamespaceOptions.getVpc()
- Parameters:
vpc
- The VPC to associate the namespace with. This property is required for private DNS namespaces.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudMapNamespaceOptions>
- Returns:
- a new instance of
CloudMapNamespaceOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-