Enum Class PriceSource
- All Implemented Interfaces:
Serializable, Comparable<PriceSource>, Constable
Identifies where a
PriceQuote came from, so every number in a cost
estimate or savings calculation is traceable to its origin and disclaimed
appropriately.
Provenance matters because the SDK blends authoritative Equinix pricing
(from the live Fabric Pricing API) with reference and customer-supplied
figures that the SDK cannot validate. On the trust spectrum:
EQUINIX_LIVE and CUSTOM are trustworthy for what they
cover; PROVIDER_API is live and accurate for the cloud-provider
side but is public list pricing, not a negotiated rate; and
REFERENCE/ESTIMATE are indicative only. COMPOSITE
inherits the trust of whatever it aggregated - consult the quote's note and
the surrounding disclaimer.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAggregate over mixed provenances: aRateCard.layered(...)chain reports this as its dominant source, andPriceQuote.plus(...)stamps it on a sum whose operands came from different sources.Caller-supplied figure (e.g. a negotiated contract rate) declared on aCustomRateCard.Live figure from the Equinix Fabric Pricing API - authoritative for Equinix-side costs.Heuristic or derived figure with no external source - the least trustworthy provenance.Live figure from a public cloud-provider pricing API (AWS Price List, Azure Retail Prices, GCP Billing Catalog, OCI Price List).Bundled, dated indicative figure from theReferenceRateCard- an estimate, not a quote. -
Method Summary
Modifier and TypeMethodDescriptionstatic PriceSourceReturns the enum constant of this class with the specified name.static PriceSource[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUINIX_LIVE
Live figure from the Equinix Fabric Pricing API - authoritative for Equinix-side costs. -
CUSTOM
Caller-supplied figure (e.g. a negotiated contract rate) declared on aCustomRateCard. -
PROVIDER_API
Live figure from a public cloud-provider pricing API (AWS Price List, Azure Retail Prices, GCP Billing Catalog, OCI Price List). Accurate and current for the provider side, but a public list price - negotiated discounts are not reflected. -
REFERENCE
Bundled, dated indicative figure from theReferenceRateCard- an estimate, not a quote. -
ESTIMATE
Heuristic or derived figure with no external source - the least trustworthy provenance. -
COMPOSITE
Aggregate over mixed provenances: aRateCard.layered(...)chain reports this as its dominant source, andPriceQuote.plus(...)stamps it on a sum whose operands came from different sources.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-