public abstract static class SimpleTenantUsage.Builder<T extends SimpleTenantUsage.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected Set<SimpleServerUsage> |
serverUsages |
protected Date |
start |
protected Date |
stop |
protected String |
tenantId |
protected double |
totalHours |
protected double |
totalLocalGbUsage |
protected double |
totalMemoryMbUsage |
protected double |
totalVcpusUsage |
Constructor and Description |
---|
SimpleTenantUsage.Builder() |
Modifier and Type | Method and Description |
---|---|
SimpleTenantUsage |
build() |
T |
fromSimpleTenantUsage(SimpleTenantUsage in) |
protected abstract T |
self() |
T |
serverUsages(Set<SimpleServerUsage> serverUsages) |
T |
serverUsages(SimpleServerUsage... in) |
T |
start(Date start) |
T |
stop(Date stop) |
T |
tenantId(String tenantId) |
T |
totalHours(double totalHours) |
T |
totalLocalGbUsage(double totalLocalGbUsage) |
T |
totalMemoryMbUsage(double totalMemoryMbUsage) |
T |
totalVcpusUsage(double totalVcpusUsage) |
protected String tenantId
protected double totalLocalGbUsage
protected double totalVcpusUsage
protected double totalMemoryMbUsage
protected double totalHours
protected Date start
protected Date stop
protected Set<SimpleServerUsage> serverUsages
protected abstract T self()
public T tenantId(String tenantId)
SimpleTenantUsage.getTenantId()
public T totalLocalGbUsage(double totalLocalGbUsage)
public T totalVcpusUsage(double totalVcpusUsage)
public T totalMemoryMbUsage(double totalMemoryMbUsage)
public T totalHours(double totalHours)
SimpleTenantUsage.getTotalHours()
public T start(Date start)
SimpleTenantUsage.getStart()
public T stop(Date stop)
SimpleTenantUsage.getStop()
public T serverUsages(Set<SimpleServerUsage> serverUsages)
SimpleTenantUsage.getServerUsages()
public T serverUsages(SimpleServerUsage... in)
public SimpleTenantUsage build()
public T fromSimpleTenantUsage(SimpleTenantUsage in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.