public static final class CfnServiceProps.Builder
extends java.lang.Object
CfnServiceProps
Constructor and Description |
---|
Builder() |
public CfnServiceProps.Builder description(java.lang.String description)
CfnServiceProps.getDescription()
description
- The description of the service.this
public CfnServiceProps.Builder dnsConfig(IResolvable dnsConfig)
CfnServiceProps.getDnsConfig()
dnsConfig
- A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.this
public CfnServiceProps.Builder dnsConfig(CfnService.DnsConfigProperty dnsConfig)
CfnServiceProps.getDnsConfig()
dnsConfig
- A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.this
public CfnServiceProps.Builder healthCheckConfig(IResolvable healthCheckConfig)
CfnServiceProps.getHealthCheckConfig()
healthCheckConfig
- *Public DNS and HTTP namespaces only.* A complex type that contains settings for an optional health check. If you specify settings for a health check, AWS Cloud Map associates the health check with the records that you specify in `DnsConfig` .
For information about the charges for health checks, see Amazon Route 53 Pricing .this
public CfnServiceProps.Builder healthCheckConfig(CfnService.HealthCheckConfigProperty healthCheckConfig)
CfnServiceProps.getHealthCheckConfig()
healthCheckConfig
- *Public DNS and HTTP namespaces only.* A complex type that contains settings for an optional health check. If you specify settings for a health check, AWS Cloud Map associates the health check with the records that you specify in `DnsConfig` .
For information about the charges for health checks, see Amazon Route 53 Pricing .this
public CfnServiceProps.Builder healthCheckCustomConfig(IResolvable healthCheckCustomConfig)
CfnServiceProps.getHealthCheckCustomConfig()
healthCheckCustomConfig
- A complex type that contains information about an optional custom health check.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.
this
public CfnServiceProps.Builder healthCheckCustomConfig(CfnService.HealthCheckCustomConfigProperty healthCheckCustomConfig)
CfnServiceProps.getHealthCheckCustomConfig()
healthCheckCustomConfig
- A complex type that contains information about an optional custom health check.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.
this
public CfnServiceProps.Builder name(java.lang.String name)
CfnServiceProps.getName()
name
- The name of the service.this
public CfnServiceProps.Builder namespaceId(java.lang.String namespaceId)
CfnServiceProps.getNamespaceId()
namespaceId
- The ID of the namespace that was used to create the service.
You must specify a value for
NamespaceId
either for the service properties or for DnsConfig . Don't specify a value in both places.
this
public CfnServiceProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnServiceProps.getTags()
tags
- The tags for the service.
Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.this
public CfnServiceProps.Builder type(java.lang.String type)
CfnServiceProps.getType()
type
- If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation.
No DNS records is registered for the service instances. The only valid value is HTTP
.this
public CfnServiceProps build()
CfnServiceProps
java.lang.NullPointerException
- if any required attribute was not provided