Module io.helidon.integrations.oci
Package io.helidon.integrations.oci
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 builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.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
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCanonical Region Name.canonicalRegionName
(String canonicalRegionName) Canonical Region Name.Compartment Id.compartmentId
(String compartmentId) Compartment Id.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).Display Name.displayName
(String displayName) Display Name.Fault Domain Name.faultDomain
(String faultDomain) Fault Domain Name.from
(ImdsInstanceInfo prototype) Update this builder from an existing prototype instance.from
(ImdsInstanceInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.hostName()
Host Name.Host Name.Instance Data.jsonObject
(JsonObject jsonObject) Instance Data.Oci Availability Domain Name.Oci Availability Domain Name.protected void
Handles providers and decorators.region()
Region Name.Region Name.tenantId()
Tenant Id.Tenant Id.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
Methods inherited from interface io.helidon.builder.api.Prototype.ConfiguredBuilder
discoverService, discoverServices
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
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
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
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 interfacePrototype.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
Display Name.- Parameters:
displayName
- Display Name of the Instance- Returns:
- updated builder instance
- See Also:
-
hostName
Host Name.- Parameters:
hostName
- Host Name of the Instance- Returns:
- updated builder instance
- See Also:
-
canonicalRegionName
Canonical Region Name.- Parameters:
canonicalRegionName
- Canonical Region Name of where the Instance exists- Returns:
- updated builder instance
- See Also:
-
region
Region Name.- Parameters:
region
- Short Region Name of where the Instance exists- Returns:
- updated builder instance
- See Also:
-
ociAdName
Oci Availability Domain Name.- Parameters:
ociAdName
- Physical Availaibility Domain Name where the Instance exists- Returns:
- updated builder instance
- See Also:
-
faultDomain
Fault Domain Name.- Parameters:
faultDomain
- Fault Domain Name where the Instance exists- Returns:
- updated builder instance
- See Also:
-
compartmentId
Compartment Id.- Parameters:
compartmentId
- Compartment Id where the Instance was provisioned.- Returns:
- updated builder instance
- See Also:
-
tenantId
Tenant Id.- Parameters:
tenantId
- Tenant Id where the Instance was provisioned.- Returns:
- updated builder instance
- See Also:
-
jsonObject
Instance Data.- Parameters:
jsonObject
- Full information about the Instance as aJsonObject
- Returns:
- updated builder instance
- See Also:
-
displayName
Display Name.- Returns:
- the display name
-
hostName
Host Name.- Returns:
- the host name
-
canonicalRegionName
Canonical Region Name.- Returns:
- the canonical region name
-
region
Region Name.- Returns:
- the region
-
ociAdName
Oci Availability Domain Name.- Returns:
- the oci ad name
-
faultDomain
Fault Domain Name.- Returns:
- the fault domain
-
compartmentId
Compartment Id.- Returns:
- the compartment id
-
tenantId
Tenant Id.- Returns:
- the tenant id
-
jsonObject
Instance Data.- Returns:
- the json object
-
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
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-