Class InstanceInfoConfig.BuilderBase<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InstanceInfoConfig>

java.lang.Object
io.helidon.integrations.eureka.InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
InstanceInfoConfig.Builder
Enclosing interface:
InstanceInfoConfig

public abstract static class InstanceInfoConfig.BuilderBase<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InstanceInfoConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for InstanceInfoConfig.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(InstanceInfoConfig prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(InstanceInfoConfig.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends InstanceInfoConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends InstanceInfoConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • appName

      public BUILDER appName(String appName)
      The app name.
      Parameters:
      appName - the app name
      Returns:
      updated builder instance
      See Also:
    • appGroupName

      public BUILDER appGroupName(String appGroupName)
      The app group name.
      Parameters:
      appGroupName - the app group name
      Returns:
      updated builder instance
      See Also:
    • clearAsgName

      public BUILDER clearAsgName()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • asgName

      public BUILDER asgName(String asgName)
      The ASG name.

      ASG stands for Auto Scaling Group.

      Parameters:
      asgName - the ASG name
      Returns:
      updated builder instance
      See Also:
    • clearHealthCheckUrl

      public BUILDER clearHealthCheckUrl()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • healthCheckUrl

      public BUILDER healthCheckUrl(URI healthCheckUrl)
      The health check URL.
      Parameters:
      healthCheckUrl - the health check URL
      Returns:
      updated builder instance
      See Also:
    • healthCheckUrlPath

      public BUILDER healthCheckUrlPath(String healthCheckUrlPath)
      The health check URL path (used if any health check URL is not explicitly set).
      Parameters:
      healthCheckUrlPath - the health check URL path
      Returns:
      updated builder instance
      See Also:
    • clearHomePageUrl

      public BUILDER clearHomePageUrl()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • homePageUrl

      public BUILDER homePageUrl(URI homePageUrl)
      The home page URL.
      Parameters:
      homePageUrl - the home page URL
      Returns:
      updated builder instance
      See Also:
    • homePageUrlPath

      public BUILDER homePageUrlPath(String homePageUrlPath)
      The home page URL path (used if the homepage URL is not explicitly set).
      Parameters:
      homePageUrlPath - the home page URL path
      Returns:
      updated builder instance
      See Also:
    • hostName

      public BUILDER hostName(String hostName)
      The hostname.
      Parameters:
      hostName - the hostname
      Returns:
      updated builder instance
      See Also:
    • clearInstanceId

      public BUILDER clearInstanceId()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • instanceId

      public BUILDER instanceId(String instanceId)
      The instance id.
      Parameters:
      instanceId - the instance id
      Returns:
      updated builder instance
      See Also:
    • ipAddr

      public BUILDER ipAddr(String ipAddr)
      The IP address.
      Parameters:
      ipAddr - the IP address
      Returns:
      updated builder instance
      See Also:
    • jsonBuilderFactory

      public BUILDER jsonBuilderFactory(JsonBuilderFactory jsonBuilderFactory)
      Parameters:
      jsonBuilderFactory - the JsonBuilderFactory
      Returns:
      updated builder instance
      See Also:
    • leaseInfo

      public BUILDER leaseInfo(LeaseInfoConfig leaseInfo)
      Parameters:
      leaseInfo - the LeaseInfoConfig
      Returns:
      updated builder instance
      See Also:
    • leaseInfo

      public BUILDER leaseInfo(Consumer<LeaseInfoConfig.Builder> consumer)
      Parameters:
      consumer - consumer of builder for the LeaseInfoConfig
      Returns:
      updated builder instance
      See Also:
    • leaseInfo

      public BUILDER leaseInfo(Supplier<? extends LeaseInfoConfig> supplier)
      Parameters:
      supplier - supplier of the LeaseInfoConfig
      Returns:
      updated builder instance
      See Also:
    • metadata

      public BUILDER metadata(Map<String,String> metadata)
      This method replaces all values with the new ones.
      Parameters:
      metadata - the metadata
      Returns:
      updated builder instance
      See Also:
    • addMetadata

      public BUILDER addMetadata(Map<String,String> metadata)
      This method keeps existing values, then puts all new values into the map.
      Parameters:
      metadata - the metadata
      Returns:
      updated builder instance
      See Also:
    • portInfo

      public BUILDER portInfo(PortInfoConfig portInfo)
      (Non-secure) port information.
      Parameters:
      portInfo - PortInfoConfig
      Returns:
      updated builder instance
      See Also:
    • portInfo

      public BUILDER portInfo(Consumer<PortInfoConfig.Builder> consumer)
      (Non-secure) port information.
      Parameters:
      consumer - consumer of builder for PortInfoConfig
      Returns:
      updated builder instance
      See Also:
    • portInfo

      public BUILDER portInfo(Supplier<? extends PortInfoConfig> supplier)
      (Non-secure) port information.
      Parameters:
      supplier - supplier of PortInfoConfig
      Returns:
      updated builder instance
      See Also:
    • clearSecureHealthCheckUrl

      public BUILDER clearSecureHealthCheckUrl()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • secureHealthCheckUrl

      public BUILDER secureHealthCheckUrl(URI secureHealthCheckUrl)
      The secure health check URL.
      Parameters:
      secureHealthCheckUrl - the secure health check URL
      Returns:
      updated builder instance
      See Also:
    • securePortInfo

      public BUILDER securePortInfo(PortInfoConfig securePortInfo)
      Secure port information.
      Parameters:
      securePortInfo - PortInfoConfig
      Returns:
      updated builder instance
      See Also:
    • securePortInfo

      public BUILDER securePortInfo(Consumer<PortInfoConfig.Builder> consumer)
      Secure port information.
      Parameters:
      consumer - consumer of builder for PortInfoConfig
      Returns:
      updated builder instance
      See Also:
    • securePortInfo

      public BUILDER securePortInfo(Supplier<? extends PortInfoConfig> supplier)
      Secure port information.
      Parameters:
      supplier - supplier of PortInfoConfig
      Returns:
      updated builder instance
      See Also:
    • clearStatusPageUrl

      public BUILDER clearStatusPageUrl()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • statusPageUrl

      public BUILDER statusPageUrl(URI statusPageUrl)
      The status page URL.
      Parameters:
      statusPageUrl - the status page URL
      Returns:
      updated builder instance
      See Also:
    • statusPageUrlPath

      public BUILDER statusPageUrlPath(String statusPageUrlPath)
      The status page URL path (used if status page URL is not explicitly set).
      Parameters:
      statusPageUrlPath - the status page URL path
      Returns:
      updated builder instance
      See Also:
    • trafficEnabled

      public BUILDER trafficEnabled(boolean trafficEnabled)
      Whether traffic is enabled on startup (normally true).
      Parameters:
      trafficEnabled - whether traffic is enabled on startup
      Returns:
      updated builder instance
      See Also:
    • clearVipAddress

      public BUILDER clearVipAddress()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • vipAddress

      public BUILDER vipAddress(String vipAddress)
      The VIP address.

      VIP stands for Virtual IP.

      Parameters:
      vipAddress - the VIP address
      Returns:
      updated builder instance
      See Also:
    • clearSecureVipAddress

      public BUILDER clearSecureVipAddress()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • secureVipAddress

      public BUILDER secureVipAddress(String secureVipAddress)
      The secure VIP address.

      VIP stands for Virtual IP.

      Parameters:
      secureVipAddress - the secure VIP address
      Returns:
      updated builder instance
      See Also:
    • appName

      public String appName()
      The app name.
      Returns:
      the app name
    • appGroupName

      public String appGroupName()
      The app group name.
      Returns:
      the app group name
    • asgName

      public Optional<String> asgName()
      The ASG name.

      ASG stands for Auto Scaling Group.

      Returns:
      the asg name
    • healthCheckUrl

      public Optional<URI> healthCheckUrl()
      The health check URL.
      Returns:
      the health check url
    • healthCheckUrlPath

      public Optional<String> healthCheckUrlPath()
      The health check URL path (used if any health check URL is not explicitly set).
      Returns:
      the health check url path
    • homePageUrl

      public Optional<URI> homePageUrl()
      The home page URL.
      Returns:
      the home page url
    • homePageUrlPath

      public String homePageUrlPath()
      The home page URL path (used if the homepage URL is not explicitly set).
      Returns:
      the home page url path
    • hostName

      public Optional<String> hostName()
      The hostname.
      Returns:
      the host name
    • instanceId

      public Optional<String> instanceId()
      The instance id.
      Returns:
      the instance id
    • ipAddr

      public Optional<String> ipAddr()
      The IP address.
      Returns:
      the ip addr
    • jsonBuilderFactory

      public JsonBuilderFactory jsonBuilderFactory()
      Returns:
      the json builder factory
    • leaseInfo

      public LeaseInfoConfig leaseInfo()
      Returns:
      the lease info
      See Also:
    • metadata

      public Map<String,String> metadata()
      Metadata.
      Returns:
      the metadata
    • portInfo

      public PortInfoConfig portInfo()
      (Non-secure) port information.
      Returns:
      the port info
    • secureHealthCheckUrl

      public Optional<URI> secureHealthCheckUrl()
      The secure health check URL.
      Returns:
      the secure health check url
    • securePortInfo

      public PortInfoConfig securePortInfo()
      Secure port information.
      Returns:
      the secure port info
    • statusPageUrl

      public Optional<URI> statusPageUrl()
      The status page URL.
      Returns:
      the status page url
    • statusPageUrlPath

      public String statusPageUrlPath()
      The status page URL path (used if status page URL is not explicitly set).
      Returns:
      the status page url path
    • trafficEnabled

      public boolean trafficEnabled()
      Whether traffic is enabled on startup (normally true).
      Returns:
      the traffic enabled
    • vipAddress

      public Optional<String> vipAddress()
      The VIP address.

      VIP stands for Virtual IP.

      Returns:
      the vip address
    • secureVipAddress

      public Optional<String> secureVipAddress()
      The secure VIP address.

      VIP stands for Virtual IP.

      Returns:
      the secure vip address
    • config

      public Optional<Config> config()
      If this instance was configured, this would be the config instance used.
      Returns:
      config node used to configure this builder, or empty if not configured
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.