Class BaseServiceProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.BaseServiceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseServiceProps>
- Enclosing interface:
BaseServiceProps
@Stability(Stable)
public static final class BaseServiceProps.Builder
extends Object
implements software.amazon.jsii.Builder<BaseServiceProps>
A builder for
BaseServiceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customHealthCheck
(HealthCheckCustomConfig customHealthCheck) Sets the value ofBaseServiceProps.getCustomHealthCheck()
description
(String description) Sets the value ofBaseServiceProps.getDescription()
healthCheck
(HealthCheckConfig healthCheck) Sets the value ofBaseServiceProps.getHealthCheck()
Sets the value ofBaseServiceProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customHealthCheck
@Stability(Stable) public BaseServiceProps.Builder customHealthCheck(HealthCheckCustomConfig customHealthCheck) Sets the value ofBaseServiceProps.getCustomHealthCheck()
- Parameters:
customHealthCheck
- Structure containing failure threshold for a custom health checker. Only one of healthCheckConfig or healthCheckCustomConfig can be specified. See: https://docs.aws.amazon.com/cloud-map/latest/api/API_HealthCheckCustomConfig.html- Returns:
this
-
description
Sets the value ofBaseServiceProps.getDescription()
- Parameters:
description
- A description of the service.- Returns:
this
-
healthCheck
Sets the value ofBaseServiceProps.getHealthCheck()
- Parameters:
healthCheck
- Settings for an optional health check. If you specify health check settings, AWS Cloud Map associates the health check with the records that you specify in DnsConfig. Only one of healthCheckConfig or healthCheckCustomConfig can be specified. Not valid for PrivateDnsNamespaces. If you use healthCheck, you can only register IP instances to this service.- Returns:
this
-
name
Sets the value ofBaseServiceProps.getName()
- Parameters:
name
- A name for the Service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BaseServiceProps>
- Returns:
- a new instance of
BaseServiceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-