Class AliasTargetInstance.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.AliasTargetInstance.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AliasTargetInstance>
- Enclosing class:
AliasTargetInstance
@Stability(Stable)
public static final class AliasTargetInstance.Builder
extends Object
implements software.amazon.jsii.Builder<AliasTargetInstance>
A fluent builder for
AliasTargetInstance
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static AliasTargetInstance.Builder
customAttributes
(Map<String, String> customAttributes) Custom attributes of the instance.DNS name of the target.instanceId
(String instanceId) The id of the instance resource.The Cloudmap service this resource is registered to.
-
Method Details
-
create
@Stability(Stable) public static AliasTargetInstance.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
AliasTargetInstance.Builder
.
-
customAttributes
@Stability(Stable) public AliasTargetInstance.Builder customAttributes(Map<String, String> customAttributes) Custom attributes of the instance.Default: none
- Parameters:
customAttributes
- Custom attributes of the instance. This parameter is required.- Returns:
this
-
instanceId
The id of the instance resource.Default: Automatically generated name
- Parameters:
instanceId
- The id of the instance resource. This parameter is required.- Returns:
this
-
dnsName
DNS name of the target.- Parameters:
dnsName
- DNS name of the target. This parameter is required.- Returns:
this
-
service
The Cloudmap service this resource is registered to.- Parameters:
service
- The Cloudmap service this resource is registered to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AliasTargetInstance>
- Returns:
- a newly built instance of
AliasTargetInstance
.
-