Package com.yahoo.config.model.api
Class Quota
- java.lang.Object
-
- com.yahoo.config.model.api.Quota
-
public class Quota extends Object
Quota for the application deployed. If the application exceeds this quota, deployment will fail.- Author:
- ogronnesby
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Integer>
budget()
Optional<BigDecimal>
budgetAsDecimal()
boolean
equals(Object o)
static Quota
fromSlime(com.yahoo.slime.Inspector inspector)
int
hashCode()
Optional<Integer>
maxClusterSize()
com.yahoo.slime.Slime
toSlime()
String
toString()
static Quota
unlimited()
Quota
withBudget(BigDecimal budget)
Quota
withClusterSize(int clusterSize)
-
-
-
Method Detail
-
fromSlime
public static Quota fromSlime(com.yahoo.slime.Inspector inspector)
-
withBudget
public Quota withBudget(BigDecimal budget)
-
withClusterSize
public Quota withClusterSize(int clusterSize)
-
toSlime
public com.yahoo.slime.Slime toSlime()
-
unlimited
public static Quota unlimited()
-
budgetAsDecimal
public Optional<BigDecimal> budgetAsDecimal()
-
-