Class ExistingCloudMapNamespaceOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ExistingCloudMapNamespaceOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExistingCloudMapNamespaceOptions>
- Enclosing interface:
ExistingCloudMapNamespaceOptions
@Stability(Stable)
public static final class ExistingCloudMapNamespaceOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ExistingCloudMapNamespaceOptions>
A builder for
ExistingCloudMapNamespaceOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.namespace(INamespace namespace) Sets the value ofExistingCloudMapNamespaceOptions.getNamespace()useForServiceConnect(Boolean useForServiceConnect) Sets the value ofCloudMapNamespaceOptionsBase.getUseForServiceConnect()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
namespace
Sets the value ofExistingCloudMapNamespaceOptions.getNamespace()- Parameters:
namespace- The existing Cloud Map namespace to use as the cluster's default namespace. This parameter is required. The fullINamespaceis required (rather than a ref) because the cluster needs the namespace name, ARN and type to wire up Service Discovery and Service Connect.[disable-awslint:prefer-ref-interface]
- Returns:
this
-
useForServiceConnect
@Stability(Stable) public ExistingCloudMapNamespaceOptions.Builder useForServiceConnect(Boolean useForServiceConnect) Sets the value ofCloudMapNamespaceOptionsBase.getUseForServiceConnect()- Parameters:
useForServiceConnect- This property specifies whether to set the provided namespace as the service connect default in the cluster properties.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ExistingCloudMapNamespaceOptions>- Returns:
- a new instance of
ExistingCloudMapNamespaceOptions - Throws:
NullPointerException- if any required attribute was not provided
-