public abstract static class HostResourceUsage.Builder<T extends HostResourceUsage.Builder<T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
cpu |
protected int |
diskGb |
protected String |
host |
protected int |
memoryMb |
protected String |
project |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HostResourceUsage |
build() |
T |
cpu(int cpu) |
T |
diskGb(int diskGb) |
T |
fromHostResourceUsage(HostResourceUsage in) |
T |
host(String host) |
T |
memoryMb(int memoryMb) |
T |
project(String project) |
protected abstract T |
self() |
protected String host
protected String project
protected int memoryMb
protected int cpu
protected int diskGb
protected abstract T self()
public T host(String host)
HostResourceUsage.getHost()public T project(String project)
HostResourceUsage.getProject()public T memoryMb(int memoryMb)
HostResourceUsage.getMemoryMb()public T cpu(int cpu)
HostResourceUsage.getCpu()public T diskGb(int diskGb)
HostResourceUsage.getDiskGb()public HostResourceUsage build()
public T fromHostResourceUsage(HostResourceUsage in)
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.