Class ServiceConnectProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ServiceConnectProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceConnectProps>
- Enclosing interface:
ServiceConnectProps
@Stability(Stable)
public static final class ServiceConnectProps.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceConnectProps>
A builder for
ServiceConnectProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofServiceConnectProps.getLogDriver()
Sets the value ofServiceConnectProps.getNamespace()
services
(List<? extends ServiceConnectService> services) Sets the value ofServiceConnectProps.getServices()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logDriver
Sets the value ofServiceConnectProps.getLogDriver()
- Parameters:
logDriver
- The log driver configuration to use for the Service Connect agent logs.- Returns:
this
-
namespace
Sets the value ofServiceConnectProps.getNamespace()
- Parameters:
namespace
- The cloudmap namespace to register this service into.- Returns:
this
-
services
@Stability(Stable) public ServiceConnectProps.Builder services(List<? extends ServiceConnectService> services) Sets the value ofServiceConnectProps.getServices()
- Parameters:
services
- The list of Services, including a port mapping, terse client alias, and optional intermediate DNS name. This property may be left blank if the current ECS service does not need to advertise any ports via Service Connect.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServiceConnectProps>
- Returns:
- a new instance of
ServiceConnectProps
- Throws:
NullPointerException
- if any required attribute was not provided
-