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