Class CfnServiceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceMixinProps>
- Enclosing interface:
CfnServiceMixinProps
CfnServiceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnServiceMixinProps.getDescription()dnsConfig(CfnServicePropsMixin.DnsConfigProperty dnsConfig) Sets the value ofCfnServiceMixinProps.getDnsConfig()dnsConfig(IResolvable dnsConfig) Sets the value ofCfnServiceMixinProps.getDnsConfig()healthCheckConfig(CfnServicePropsMixin.HealthCheckConfigProperty healthCheckConfig) Sets the value ofCfnServiceMixinProps.getHealthCheckConfig()healthCheckConfig(IResolvable healthCheckConfig) Sets the value ofCfnServiceMixinProps.getHealthCheckConfig()healthCheckCustomConfig(CfnServicePropsMixin.HealthCheckCustomConfigProperty healthCheckCustomConfig) Sets the value ofCfnServiceMixinProps.getHealthCheckCustomConfig()healthCheckCustomConfig(IResolvable healthCheckCustomConfig) Sets the value ofCfnServiceMixinProps.getHealthCheckCustomConfig()Sets the value ofCfnServiceMixinProps.getName()namespaceId(String namespaceId) Sets the value ofCfnServiceMixinProps.getNamespaceId()serviceAttributes(Object serviceAttributes) Sets the value ofCfnServiceMixinProps.getServiceAttributes()Sets the value ofCfnServiceMixinProps.getTags()Sets the value ofCfnServiceMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnServiceMixinProps.getDescription()- Parameters:
description- The description of the service.- Returns:
this
-
dnsConfig
Sets the value ofCfnServiceMixinProps.getDnsConfig()- Parameters:
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.The record types of a service can only be changed by deleting the service and recreating it with a new
Dnsconfig.- Returns:
this
-
dnsConfig
@Stability(Stable) public CfnServiceMixinProps.Builder dnsConfig(CfnServicePropsMixin.DnsConfigProperty dnsConfig) Sets the value ofCfnServiceMixinProps.getDnsConfig()- Parameters:
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.The record types of a service can only be changed by deleting the service and recreating it with a new
Dnsconfig.- Returns:
this
-
healthCheckConfig
@Stability(Stable) public CfnServiceMixinProps.Builder healthCheckConfig(IResolvable healthCheckConfig) Sets the value ofCfnServiceMixinProps.getHealthCheckConfig()- Parameters:
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 inDnsConfig. For information about the charges for health checks, see Amazon Route 53 Pricing .- Returns:
this
-
healthCheckConfig
@Stability(Stable) public CfnServiceMixinProps.Builder healthCheckConfig(CfnServicePropsMixin.HealthCheckConfigProperty healthCheckConfig) Sets the value ofCfnServiceMixinProps.getHealthCheckConfig()- Parameters:
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 inDnsConfig. For information about the charges for health checks, see Amazon Route 53 Pricing .- Returns:
this
-
healthCheckCustomConfig
@Stability(Stable) public CfnServiceMixinProps.Builder healthCheckCustomConfig(IResolvable healthCheckCustomConfig) Sets the value ofCfnServiceMixinProps.getHealthCheckCustomConfig()- Parameters:
healthCheckCustomConfig- A complex type that contains information about an optional custom health check.If you specify a health check configuration, you can specify either
HealthCheckCustomConfigorHealthCheckConfigbut not both.- Returns:
this
-
healthCheckCustomConfig
@Stability(Stable) public CfnServiceMixinProps.Builder healthCheckCustomConfig(CfnServicePropsMixin.HealthCheckCustomConfigProperty healthCheckCustomConfig) Sets the value ofCfnServiceMixinProps.getHealthCheckCustomConfig()- Parameters:
healthCheckCustomConfig- A complex type that contains information about an optional custom health check.If you specify a health check configuration, you can specify either
HealthCheckCustomConfigorHealthCheckConfigbut not both.- Returns:
this
-
name
Sets the value ofCfnServiceMixinProps.getName()- Parameters:
name- The name of the service.- Returns:
this
-
namespaceId
Sets the value ofCfnServiceMixinProps.getNamespaceId()- Parameters:
namespaceId- The ID or Amazon Resource Name (ARN) of the namespace that you want to use to create the service. For namespaces shared with your AWS account, specify the namespace ARN. For more information about shared namespaces, see Cross-account AWS Cloud Map namespace sharing in the AWS Cloud Map Developer Guide .- Returns:
this
-
serviceAttributes
Sets the value ofCfnServiceMixinProps.getServiceAttributes()- Parameters:
serviceAttributes- A complex type that contains information about attributes associated with a specific service.- Returns:
this
-
tags
Sets the value ofCfnServiceMixinProps.getTags()- Parameters:
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.- Returns:
this
-
type
Sets the value ofCfnServiceMixinProps.getType()- Parameters:
type- If present, specifies that the service instances are only discoverable using theDiscoverInstancesAPI operation. No DNS records is registered for the service instances. The only valid value isHTTP.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceMixinProps>- Returns:
- a new instance of
CfnServiceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-