summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/Quota.java
diff options
context:
space:
mode:
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/Quota.java')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/Quota.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/Quota.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/Quota.java
new file mode 100644
index 00000000000..6f162a8275e
--- /dev/null
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/billing/Quota.java
@@ -0,0 +1,32 @@
+package com.yahoo.vespa.hosted.controller.api.integration.billing;
+
+import java.util.Objects;
+
+/**
+ * Quota information transmitted to the configserver on deploy.
+ */
+public class Quota {
+
+ private final int maxClusterSize;
+
+ public Quota(int maxClusterSize) {
+ this.maxClusterSize = maxClusterSize;
+ }
+
+ public int maxClusterSize() {
+ return maxClusterSize;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ Quota quota = (Quota) o;
+ return maxClusterSize == quota.maxClusterSize;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(maxClusterSize);
+ }
+}