Class AliasTargetInstanceProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.AliasTargetInstanceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AliasTargetInstanceProps>
- Enclosing interface:
AliasTargetInstanceProps
@Stability(Stable)
public static final class AliasTargetInstanceProps.Builder
extends Object
implements software.amazon.jsii.Builder<AliasTargetInstanceProps>
A builder for
AliasTargetInstanceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customAttributes(Map<String, String> customAttributes) Sets the value ofBaseInstanceProps.getCustomAttributes()Sets the value ofAliasTargetInstanceProps.getDnsName()instanceId(String instanceId) Sets the value ofBaseInstanceProps.getInstanceId()Sets the value ofAliasTargetInstanceProps.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsName
Sets the value ofAliasTargetInstanceProps.getDnsName()- Parameters:
dnsName- DNS name of the target. This parameter is required.- Returns:
this
-
service
Sets the value ofAliasTargetInstanceProps.getService()- Parameters:
service- The Cloudmap service this resource is registered to. This parameter is required.- Returns:
this
-
customAttributes
@Stability(Stable) public AliasTargetInstanceProps.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:
buildin interfacesoftware.amazon.jsii.Builder<AliasTargetInstanceProps>- Returns:
- a new instance of
AliasTargetInstanceProps - Throws:
NullPointerException- if any required attribute was not provided
-