Class IpInstance.Builder

java.lang.Object
software.amazon.awscdk.services.servicediscovery.IpInstance.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<IpInstance>
Enclosing class:
IpInstance

@Stability(Stable) public static final class IpInstance.Builder extends Object implements software.amazon.jsii.Builder<IpInstance>
A fluent builder for IpInstance.
  • Method Details

    • create

      @Stability(Stable) public static IpInstance.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of IpInstance.Builder.
    • customAttributes

      @Stability(Stable) public IpInstance.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 IpInstance.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
    • ipv4

      @Stability(Stable) public IpInstance.Builder ipv4(String ipv4)
      If the service that you specify contains a template for an A record, the IPv4 address that you want AWS Cloud Map to use for the value of the A record.

      Default: none

      Parameters:
      ipv4 - If the service that you specify contains a template for an A record, the IPv4 address that you want AWS Cloud Map to use for the value of the A record. This parameter is required.
      Returns:
      this
    • ipv6

      @Stability(Stable) public IpInstance.Builder ipv6(String ipv6)
      If the service that you specify contains a template for an AAAA record, the IPv6 address that you want AWS Cloud Map to use for the value of the AAAA record.

      Default: none

      Parameters:
      ipv6 - If the service that you specify contains a template for an AAAA record, the IPv6 address that you want AWS Cloud Map to use for the value of the AAAA record. This parameter is required.
      Returns:
      this
    • port

      @Stability(Stable) public IpInstance.Builder port(Number port)
      The port on the endpoint that you want AWS Cloud Map to perform health checks on.

      This value is also used for the port value in an SRV record if the service that you specify includes an SRV record. You can also specify a default port that is applied to all instances in the Service configuration.

      Default: 80

      Parameters:
      port - The port on the endpoint that you want AWS Cloud Map to perform health checks on. This parameter is required.
      Returns:
      this
    • service

      @Stability(Stable) public IpInstance.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 IpInstance build()
      Specified by:
      build in interface software.amazon.jsii.Builder<IpInstance>
      Returns:
      a newly built instance of IpInstance.