public static final class CnameInstanceProps.Builder
extends java.lang.Object
CnameInstanceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CnameInstanceProps |
build()
Builds the configured instance.
|
CnameInstanceProps.Builder |
customAttributes(java.util.Map<java.lang.String,java.lang.String> customAttributes)
Sets the value of
BaseInstanceProps.getCustomAttributes() |
CnameInstanceProps.Builder |
instanceCname(java.lang.String instanceCname)
Sets the value of
CnameInstanceBaseProps.getInstanceCname() |
CnameInstanceProps.Builder |
instanceId(java.lang.String instanceId)
Sets the value of
BaseInstanceProps.getInstanceId() |
CnameInstanceProps.Builder |
service(IService service)
Sets the value of
CnameInstanceProps.getService() |
public CnameInstanceProps.Builder service(IService service)
CnameInstanceProps.getService()
service
- The Cloudmap service this resource is registered to. This parameter is required.this
public CnameInstanceProps.Builder instanceCname(java.lang.String instanceCname)
CnameInstanceBaseProps.getInstanceCname()
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.this
public CnameInstanceProps.Builder customAttributes(java.util.Map<java.lang.String,java.lang.String> customAttributes)
BaseInstanceProps.getCustomAttributes()
customAttributes
- Custom attributes of the instance.this
public CnameInstanceProps.Builder instanceId(java.lang.String instanceId)
BaseInstanceProps.getInstanceId()
instanceId
- The id of the instance resource.this
public CnameInstanceProps build()
CnameInstanceProps
java.lang.NullPointerException
- if any required attribute was not provided