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

java.lang.Object
io.helidon.integrations.oci.ImdsInstanceInfo.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>, Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
ImdsInstanceInfo.Builder
Enclosing interface:
ImdsInstanceInfo

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

    • BuilderBase

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

    • from

      public BUILDER from(ImdsInstanceInfo 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(ImdsInstanceInfo.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 Prototype.ConfiguredBuilder<BUILDER extends ImdsInstanceInfo.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ImdsInstanceInfo>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • displayName

      public BUILDER displayName(String displayName)
      Display Name.
      Parameters:
      displayName - Display Name of the Instance
      Returns:
      updated builder instance
      See Also:
    • hostName

      public BUILDER hostName(String hostName)
      Host Name.
      Parameters:
      hostName - Host Name of the Instance
      Returns:
      updated builder instance
      See Also:
    • canonicalRegionName

      public BUILDER canonicalRegionName(String canonicalRegionName)
      Canonical Region Name.
      Parameters:
      canonicalRegionName - Canonical Region Name of where the Instance exists
      Returns:
      updated builder instance
      See Also:
    • region

      public BUILDER region(String region)
      Region Name.
      Parameters:
      region - Short Region Name of where the Instance exists
      Returns:
      updated builder instance
      See Also:
    • ociAdName

      public BUILDER ociAdName(String ociAdName)
      Oci Availability Domain Name.
      Parameters:
      ociAdName - Physical Availaibility Domain Name where the Instance exists
      Returns:
      updated builder instance
      See Also:
    • faultDomain

      public BUILDER faultDomain(String faultDomain)
      Fault Domain Name.
      Parameters:
      faultDomain - Fault Domain Name where the Instance exists
      Returns:
      updated builder instance
      See Also:
    • compartmentId

      public BUILDER compartmentId(String compartmentId)
      Compartment Id.
      Parameters:
      compartmentId - Compartment Id where the Instance was provisioned.
      Returns:
      updated builder instance
      See Also:
    • tenantId

      public BUILDER tenantId(String tenantId)
      Tenant Id.
      Parameters:
      tenantId - Tenant Id where the Instance was provisioned.
      Returns:
      updated builder instance
      See Also:
    • jsonObject

      public BUILDER jsonObject(JsonObject jsonObject)
      Instance Data.
      Parameters:
      jsonObject - Full information about the Instance as a JsonObject
      Returns:
      updated builder instance
      See Also:
    • displayName

      public Optional<String> displayName()
      Display Name.
      Returns:
      the display name
    • hostName

      public Optional<String> hostName()
      Host Name.
      Returns:
      the host name
    • canonicalRegionName

      public Optional<String> canonicalRegionName()
      Canonical Region Name.
      Returns:
      the canonical region name
    • region

      public Optional<String> region()
      Region Name.
      Returns:
      the region
    • ociAdName

      public Optional<String> ociAdName()
      Oci Availability Domain Name.
      Returns:
      the oci ad name
    • faultDomain

      public Optional<String> faultDomain()
      Fault Domain Name.
      Returns:
      the fault domain
    • compartmentId

      public Optional<String> compartmentId()
      Compartment Id.
      Returns:
      the compartment id
    • tenantId

      public Optional<String> tenantId()
      Tenant Id.
      Returns:
      the tenant id
    • jsonObject

      public Optional<JsonObject> jsonObject()
      Instance Data.
      Returns:
      the json object
    • 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.