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 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

      @Stability(Stable) public AliasTargetInstance.Builder instanceId(String 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

      @Stability(Stable) public AliasTargetInstance.Builder dnsName(String dnsName)
      DNS name of the target.

      Parameters:
      dnsName - DNS name of the target. This parameter is required.
      Returns:
      this
    • service

      @Stability(Stable) public AliasTargetInstance.Builder service(IService 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

      @Stability(Stable) public AliasTargetInstance build()
      Specified by:
      build in interface software.amazon.jsii.Builder<AliasTargetInstance>
      Returns:
      a newly built instance of AliasTargetInstance.