Class CustomRateCard
- All Implemented Interfaces:
RateCard
RateCard whose prices are supplied by the caller - e.g. negotiated
contract rates - instead of published list pricing or built-in heuristics. It is
constructed fluently,
mirroring how workloads, sites, and constraints are declared elsewhere in the
design API:
CustomRateCard rates = CustomRateCard.builder()
.currency("USD")
.connectionRate(ConnectionType.EVPL_VC, 1_000, new BigDecimal("250.00"))
.connectionRate(ConnectionType.EVPL_VC, 10_000, new BigDecimal("1800.00"), new BigDecimal("500.00"))
// a metro- and term-specific override (e.g. a negotiated Singapore 36-month rate):
.connectionRate(ConnectionType.EVPL_VC, 10_000, MetroCode.SG, Term.MONTH_36,
new BigDecimal("1600.00"), new BigDecimal("0.00"))
.cloudRouterRate("STANDARD", new BigDecimal("285.00"))
.defaultConnectionRate(new BigDecimal("400.00")) // fallback for unlisted bandwidths
.build();
Granularity & resolution order
Rates may be declared at several levels of specificity - with or without a metro,
a term, and (for connections) a concrete type. A lookup for a given
(type, bandwidth, metro, term) resolves to the most specific
declared entry, trying in order:
- exact metro and term;
- exact metro, any term;
- any metro, exact term;
- any metro, any term (the metro/term-agnostic
connectionRate(type, bandwidth, ...)entry); - a type-agnostic entry (declared with a
nulltype, meaning "any connection type"), probed at the same four levels of metro/term specificity; - the declared default, otherwise
Optional.empty()so a layered card can defer.
Cloud-router rates resolve the same way over (packageCode, metro, term),
and colocation rates over (item, metro, term). Egress rates are keyed by
provider + path only - the region and term lookup parameters are
ignored on this card. Declaring the same key twice is
last-declaration-wins: the later call silently replaces the earlier rate.
Every quote this card returns is tagged PriceSource.CUSTOM.
Native multicloud links
Beta. multicloudLinkRate(...) and multicloudLinkHourlyRate(...)
declare what one provider charges for its side of a native provider-to-provider link, keyed
by (provider, bandwidthMbps, pathTier). Bandwidth matches exactly. A lookup tries the
entry for the requested path tier, then the tier-agnostic entry. Region, peer provider and
term are not axes on this card. A side with no declared entry is left empty, so a layered
chain can take it from a later card. The card does not model the AWS free tier: declare a
zero rate for the covered size to express it; a request that opts in to the free tier while
this card prices the AWS side gets the declared rate and a quote note saying the tier was not
applied. The per-GB charge on the link is declared
separately with egressRate(provider, EgressPath.MULTICLOUD_INTERCONNECT, perGb);
without it, a card used on its own leaves the link's data-transfer cost unknown and the
engines report the native path as partially priced.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomRateCard.Builderbuilder()Starts a new custom rate card.cloudRouter(String packageCode, MetroCode metro, Term term) Resolves the price of a single Fabric Cloud Router instance.cloudRouterLookup(String packageCode, MetroCode metro, Term term) RateCard.cloudRouter(String, MetroCode, Term)with the reason when it cannot be priced.colocation(ColocationItem item, MetroCode metro, Term term) Resolves the price of an Equinix colocation primitive - a cabinet, a kW of power, or a cross-connect (seeColocationItemfor the per-unit semantics).colocationLookup(ColocationItem item, MetroCode metro, Term term) RateCard.colocation(ColocationItem, MetroCode, Term)with the reason when it cannot be priced.connection(ConnectionType type, int bandwidthMbps, MetroCode metro, Term term) Resolves the price of a single Fabric connection / virtual connection.connectionLookup(ConnectionType type, int bandwidthMbps, MetroCode metro, Term term) RateCard.connection(ConnectionType, int, MetroCode, Term)with the reason when it cannot be priced.The ISO 4217 code every amount on this card is in.egress(CloudProviderType provider, String region, EgressPath path, Term term) Resolves the per-GB data-egress rate for a cloud provider over a given path.egressLookup(CloudProviderType provider, String region, EgressPath path, Term term) RateCard.egress(CloudProviderType, String, EgressPath, Term)with the reason when it cannot be priced.multicloudLink(MulticloudLinkRequest request) Resolves the two-sided price of a native provider-to-provider multicloud link (for example AWS Interconnect - multicloud paired with a Google Partner Cross-Cloud Interconnect transport).source()The dominant provenance of prices this card produces.
-
Method Details
-
builder
Starts a new custom rate card.- Returns:
- a fresh
CustomRateCard.Builder(currency defaults to USD)
-
connection
public Optional<PriceQuote> connection(ConnectionType type, int bandwidthMbps, MetroCode metro, Term term) Description copied from interface:RateCardResolves the price of a single Fabric connection / virtual connection.Implementation contract. The matching strategy is implementation-specific, and a card whose data lacks an axis (metro, term, type) still returns its best figure - or empty - rather than failing; callers must not assume every card is sensitive to every parameter. Of the bundled cards:
CustomRateCardresolves the most specific declared entry (exact metro+term down to metro/term-agnostic, then a declared default);EquinixRateCardmatches bandwidth and type against the live catalogue, honours a requested metro strictly (a wrong-metro row is never returned), and prefers a term-matched row - a different-term row is only ever returned with a note naming the substitution;ReferenceRateCardmatches on bandwidth alone (smallest tabulated tier at or above the request, linearly extrapolated with anEXTRAPOLATEDnote above the top tier) and ignores type, metro, and term entirely.- Specified by:
connectionin interfaceRateCard- Parameters:
type- the connection type (e.g.EVPL_VC); may benullfor any typebandwidthMbps- the provisioned bandwidth in Mbpsmetro- the metro the connection originates in (may benullif metro-agnostic)term- the commitment term (may benullif term-agnostic)- Returns:
- the resolved quote, or
Optional.empty()if this card cannot price the connection
-
cloudRouter
Description copied from interface:RateCardResolves the price of a single Fabric Cloud Router instance.Implementation contract. As with
RateCard.connection(ConnectionType, int, MetroCode, Term), matching is implementation-specific and cards without a metro/term axis return their best figure regardless. Of the bundled cards:CustomRateCardresolves the most specific declared(packageCode, metro, term)entry;EquinixRateCardmatches the package code and metro structurally against the row's own descriptor (exact package equality, the row's own metro code) and prefers a term-matched row, labelling any term substitution;ReferenceRateCardignores metro and term, and substitutes its STANDARD figure for an unlisted package with a note naming the substitution.- Specified by:
cloudRouterin interfaceRateCard- Parameters:
packageCode- the router package / tier code (e.g."STANDARD"); may benullfor anymetro- the metro the router is deployed in (may benullif metro-agnostic)term- the commitment term (may benullif term-agnostic)- Returns:
- the resolved quote, or
Optional.empty()if this card cannot price the router
-
egress
public Optional<EgressRate> egress(CloudProviderType provider, String region, EgressPath path, Term term) Description copied from interface:RateCardResolves the per-GB data-egress rate for a cloud provider over a given path.Equinix does not sell cloud egress, so
EquinixRateCardreturnsOptional.empty()here (the default); egress rates come from aCustomRateCard(your figures), aReferenceRateCard(bundled indicative figures), or a provider-pricing-API card. The default returns empty so cards that do not model egress need not override it. Cards whose data has no region or term axis ignore those parameters - the custom and reference cards match on provider + path alone; only the provider-API adapters are region-sensitive.- Specified by:
egressin interfaceRateCard- Parameters:
provider- the cloud provider the data is leavingregion- the provider region (may benullfor a provider-wide rate)path- internet vs. private interconnectterm- the commitment term (may benull; ignored by term-agnostic cards)- Returns:
- the resolved egress rate, or
Optional.empty()if this card cannot price it
-
colocation
Description copied from interface:RateCardResolves the price of an Equinix colocation primitive - a cabinet, a kW of power, or a cross-connect (seeColocationItemfor the per-unit semantics). This lets the cost models incorporate the physical-infrastructure side of a colocation-vs-cloud comparison with the caller's real figures, not just the interconnection. Cards that do not model colocation returnOptional.empty()(the default);CustomRateCardprices whatever the caller declares.- Specified by:
colocationin interfaceRateCard- Parameters:
item- the colocation primitive to pricemetro- the metro (may benullif metro-agnostic)term- the commitment term- Returns:
- the resolved per-unit monthly quote, or
Optional.empty()if not priced
-
multicloudLink
Resolves the two-sided price of a native provider-to-provider multicloud link (for example AWS Interconnect - multicloud paired with a Google Partner Cross-Cloud Interconnect transport). No Equinix resource is part of such a link. Each provider bills its own side, so the result is aMulticloudLinkQuotewith onePriceQuoteper side rather than a single figure.Beta: the products this models reached general availability in 2026 and their public price lists are incomplete.
Implementation contract. The default returns
Optional.empty(), so a card that does not model native links needs no change. An empty result means the card has no data for the provider pair. A present result may still have one or both sides unpriced: a side is priced only from a figure the card holds, and is otherwise left empty with a reason; callers must checkMulticloudLinkQuote.isFullyPriced()before treating the quote as a link price. Cards convert hourly rates to monthly atMulticloudLinkQuote.HOURS_PER_MONTHhours and state the conversion in the side's note. The per-GB charge on the link is a separate lookup:egress(provider, region, EgressPath.MULTICLOUD_INTERCONNECT, term).Of the bundled cards:
ReferenceRateCardprices only the figures published on the providers' pricing pages (each note carries the source URL and retrieval date) and applies the AWS free tier only when the request opts in;CustomRateCardprices the sides the caller declared; aRateCard.layered(...)chain resolves each side independently, the earliest card that prices a side winning;EquinixRateCardand the provider-API adapters return empty.Beta. Prices each side from the declared
multicloudLinkRate(...)/multicloudLinkHourlyRate(...)entries: exact bandwidth, the requested path tier first, then the tier-agnostic entry. Returns empty when neither side has an entry. The request's region and term are ignored. The free-tier flag does not change the price: when it is set and this card prices the AWS side, the quote carries a note saying the declared rate applies and the free tier was not modelled, so a caller who opted in is not left to assume it was applied.- Specified by:
multicloudLinkin interfaceRateCard- Parameters:
request- the link to price: both providers and regions, bandwidth in Mbps, the AWS path tier (1-5), the term, and the AWS free-tier opt-in- Returns:
- the two-sided quote, or
Optional.empty()if this card has no data for the provider pair (orrequestisnull)
-
currencyCode
The ISO 4217 code every amount on this card is in.- Returns:
- the card's currency code
-
connectionLookup
public PriceLookup<PriceQuote> connectionLookup(ConnectionType type, int bandwidthMbps, MetroCode metro, Term term) Description copied from interface:RateCardRateCard.connection(ConnectionType, int, MetroCode, Term)with the reason when it cannot be priced. Cards override this to say exactly why (no metro, no live row, no declared rate); the default states that this card holds no figure.- Specified by:
connectionLookupin interfaceRateCard- Parameters:
type- the connection type; may benullbandwidthMbps- the bandwidth in Mbpsmetro- the metro; may benullterm- the term; may benull- Returns:
- the figure, or the reason there is none
-
cloudRouterLookup
Description copied from interface:RateCardRateCard.cloudRouter(String, MetroCode, Term)with the reason when it cannot be priced.- Specified by:
cloudRouterLookupin interfaceRateCard- Parameters:
packageCode- the router package; may benullmetro- the metro; may benullterm- the term; may benull- Returns:
- the figure, or the reason there is none
-
egressLookup
public PriceLookup<EgressRate> egressLookup(CloudProviderType provider, String region, EgressPath path, Term term) Description copied from interface:RateCardRateCard.egress(CloudProviderType, String, EgressPath, Term)with the reason when it cannot be priced.- Specified by:
egressLookupin interfaceRateCard- Parameters:
provider- the provider; may benullregion- the region; may benullpath- the path; may benullterm- the term; may benull- Returns:
- the rate, or the reason there is none
-
colocationLookup
Description copied from interface:RateCardRateCard.colocation(ColocationItem, MetroCode, Term)with the reason when it cannot be priced.- Specified by:
colocationLookupin interfaceRateCard- Parameters:
item- the colocation primitivemetro- the metro; may benullterm- the term; may benull- Returns:
- the figure, or the reason there is none
-
source
Description copied from interface:RateCardThe dominant provenance of prices this card produces. Aggregating cards reportPriceSource.COMPOSITE.
-