Package com.eqixiac.equinix.design.value.ratecard


package com.eqixiac.equinix.design.value.ratecard
Rate cards: pluggable sources of unit prices for the design-time cost, savings, and TCO models. The central abstraction is RateCard, whose lookups (connection, Cloud Router, cloud egress, colocation) return Optional - an empty result means "this card cannot price that item", which is deliberately distinct from a zero price, so callers fall back to another source instead of treating unknown as free.

Cards are composed into a precedence chain with RateCard.layered(...) - the first card that can price an item wins. The conventional ordering is most-trusted first: CustomRateCard (caller-supplied, e.g. negotiated contract rates), then EquinixRateCard (live Fabric Pricing API, term-aware with labelled substitutions), then ReferenceRateCard (bundled, dated indicative figures). RateCard.standardChain(fabric) builds the default live-then-reference chain the value models use when no card is supplied. Every PriceQuote and EgressRate carries its PriceSource provenance and an optional note flagging substitutions and extrapolations.

Beta. RateCard.multicloudLink(MulticloudLinkRequest) prices a native provider-to-provider link (AWS Interconnect - multicloud paired with, for example, a Google Partner Cross-Cloud Interconnect transport). Each provider bills its own side, so the result is a MulticloudLinkQuote holding one optional PriceQuote per side. The method defaults to empty, so cards that predate it are unaffected.

multicloudLink by card
CardBehavior
ReferenceRateCardpublished list prices only, exact size match, no rounding or extrapolation; source URL and retrieval date in every note; AWS free tier on request only
CustomRateCardthe sides declared with multicloudLinkRate(...) / multicloudLinkHourlyRate(...)
RateCard.layered(...)per side: the earliest card that prices a side supplies it
EquinixRateCard, provider-API adaptersempty

Hourly rates become monthly charges at MulticloudLinkQuote.HOURS_PER_MONTH (730 h). The link's per-GB rate is a separate lookup, egress(provider, region, EgressPath.MULTICLOUD_INTERCONNECT, term).

Two invariants hold across all cards: an unpriceable item yields empty, never a fabricated $0; and quotes in different currencies are never combined - no FX rate is ever invented (PriceQuote.plus throws on a currency mismatch, and the engines route cross-card sums through CurrencyReconciler).

See Also:
  • Class
    Description
    An Equinix colocation cost primitive that a RateCard can price - alongside the interconnection rates (connection / cloud router / egress).
    How a cloud provider sells the connection a design lands on, which decides the provider-side fee.
    A RateCard whose prices are supplied by the caller - e.g. negotiated contract rates - instead of published list pricing or built-in heuristics.
    Fluent builder for a CustomRateCard.
    The network path data egress takes when leaving a cloud provider.
    A usage-based data-egress price expressed per gigabyte, tagged with its PriceSource.
    A RateCard backed by the live Equinix Fabric Pricing API (fabric.prices()); the authoritative source of Equinix-side connection and Cloud Router prices for the cost, savings, and TCO models.
    The price of one native provider-to-provider multicloud link.
    The lookup key for RateCard.multicloudLink(MulticloudLinkRequest): one native provider-to-provider multicloud link between two clouds.
    The answer to one rate-card lookup: the figure, or the reason there is none, plus which card answered and why earlier cards declined.
    An immutable price for a single resource, split into its monthly-recurring (MRC) and non-recurring (one-time setup, NRC) components, tagged with the PriceSource it was resolved from.
    Identifies where a PriceQuote came from, so every number in a cost estimate or savings calculation is traceable to its origin and disclaimed appropriately.
    A source of unit prices for the design-time cost, savings, and TCO models.
    A RateCard backed by a bundled, dated table of indicative reference figures - published cloud-provider egress rates, interconnect port fees, and on-prem/colocation midpoints - compiled so the value-realization models work out of the box without a live connection or caller-supplied rates.
    Commitment term for a priced resource.