public class SimpleServerUsage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleServerUsage.Builder<T extends SimpleServerUsage.Builder<T>> |
static class |
SimpleServerUsage.Status |
Modifier | Constructor and Description |
---|---|
protected |
SimpleServerUsage(String instanceName,
double hours,
double flavorMemoryMb,
double flavorLocalGb,
double flavorVcpus,
String tenantId,
String flavorName,
Date instanceCreated,
Date instanceTerminated,
SimpleServerUsage.Status instanceStatus,
long uptime) |
Modifier and Type | Method and Description |
---|---|
static SimpleServerUsage.Builder<?> |
builder() |
boolean |
equals(Object obj) |
double |
getFlavorLocalGb() |
double |
getFlavorMemoryMb() |
String |
getFlavorName() |
double |
getFlavorVcpus() |
double |
getHours() |
Date |
getInstanceCreated() |
String |
getInstanceName() |
SimpleServerUsage.Status |
getInstanceStatus() |
Date |
getInstanceTerminated() |
String |
getTenantId() |
long |
getUptime() |
int |
hashCode() |
protected com.google.common.base.Objects.ToStringHelper |
string() |
SimpleServerUsage.Builder<?> |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"name","hours","memory_mb","local_gb","vcpus","tenant_id","flavor","started_at","ended_at","state","uptime"}) protected SimpleServerUsage(String instanceName, double hours, double flavorMemoryMb, double flavorLocalGb, double flavorVcpus, String tenantId, String flavorName, Date instanceCreated, @Nullable Date instanceTerminated, SimpleServerUsage.Status instanceStatus, long uptime)
public static SimpleServerUsage.Builder<?> builder()
public SimpleServerUsage.Builder<?> toBuilder()
public String getInstanceName()
public double getHours()
public double getFlavorMemoryMb()
public double getFlavorLocalGb()
public double getFlavorVcpus()
public String getTenantId()
public String getFlavorName()
public Date getInstanceCreated()
public SimpleServerUsage.Status getInstanceStatus()
public long getUptime()
protected com.google.common.base.Objects.ToStringHelper string()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.