public Builder fromQuota(Quota quota) { return new Builder() .metric(quota.getMetric()) .usage(quota.getUsage()) .limit(quota.getLimit()); }
/** @see Project#getQuotas() */ public Builder addQuota(String metric, double usage, double limit) { this.quotas.add(Quota.builder().metric(metric).usage(usage).limit(limit).build()); return this; }