Class CnameInstanceProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.CnameInstanceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CnameInstanceProps>
- Enclosing interface:
CnameInstanceProps
@Stability(Stable)
public static final class CnameInstanceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CnameInstanceProps>
A builder for
CnameInstanceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customAttributes
(Map<String, String> customAttributes) Sets the value ofBaseInstanceProps.getCustomAttributes()
instanceCname
(String instanceCname) Sets the value ofCnameInstanceBaseProps.getInstanceCname()
instanceId
(String instanceId) Sets the value ofBaseInstanceProps.getInstanceId()
Sets the value ofCnameInstanceProps.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
service
Sets the value ofCnameInstanceProps.getService()
- Parameters:
service
- The Cloudmap service this resource is registered to. This parameter is required.- Returns:
this
-
instanceCname
Sets the value ofCnameInstanceBaseProps.getInstanceCname()
- Parameters:
instanceCname
- If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com. This value is required if the service specified by ServiceId includes settings for an CNAME record. This parameter is required.- Returns:
this
-
customAttributes
@Stability(Stable) public CnameInstanceProps.Builder customAttributes(Map<String, String> customAttributes) Sets the value ofBaseInstanceProps.getCustomAttributes()
- Parameters:
customAttributes
- Custom attributes of the instance.- Returns:
this
-
instanceId
Sets the value ofBaseInstanceProps.getInstanceId()
- Parameters:
instanceId
- The id of the instance resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CnameInstanceProps>
- Returns:
- a new instance of
CnameInstanceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-