Class CnameInstanceBaseProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.CnameInstanceBaseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CnameInstanceBaseProps>
- Enclosing interface:
CnameInstanceBaseProps
@Stability(Stable)
public static final class CnameInstanceBaseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CnameInstanceBaseProps>
A builder for
CnameInstanceBaseProps
-
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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 CnameInstanceBaseProps.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<CnameInstanceBaseProps>
- Returns:
- a new instance of
CnameInstanceBaseProps
- Throws:
NullPointerException
- if any required attribute was not provided
-