aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/Plan.java
blob: 5e964603db14b19c8bd8a393dd4fcd438b1bc8bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.billing;

/**
 * A Plan knows about the billing calculations and the default quota for any tenant associated with the Plan.
 * The Plan can also enforce transitions from one plan to another.
 *
 * @author ogronnesby
 */
public interface Plan {

    /** Unique ID for the plan */
    PlanId id();

    /** A string to be used for display purposes */
    String displayName();

    /** The cost calculator for this plan */
    CostCalculator calculator();

    /** The quota for this plan */
    QuotaCalculator quota();

    /** Is this a plan that is billed */
    boolean isBilled();

    /** Is this a plan that gets on-call support */
    boolean isSupported();
}