Class SimpleServerUsage
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.domain.SimpleServerUsage
-
public class SimpleServerUsage extends Object
Information the SimpleTenantUsage extension return data about each Server
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleServerUsage.Builder<T extends SimpleServerUsage.Builder<T>>
static class
SimpleServerUsage.Status
-
Constructor Summary
Constructors Modifier Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.MoreObjects.ToStringHelper
string()
SimpleServerUsage.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
SimpleServerUsage
@ConstructorProperties({"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)
-
-
Method Detail
-
builder
public static SimpleServerUsage.Builder<?> builder()
-
toBuilder
public SimpleServerUsage.Builder<?> toBuilder()
-
getInstanceName
public String getInstanceName()
-
getHours
public double getHours()
-
getFlavorMemoryMb
public double getFlavorMemoryMb()
-
getFlavorLocalGb
public double getFlavorLocalGb()
-
getFlavorVcpus
public double getFlavorVcpus()
-
getTenantId
public String getTenantId()
-
getFlavorName
public String getFlavorName()
-
getInstanceCreated
public Date getInstanceCreated()
-
getInstanceStatus
public SimpleServerUsage.Status getInstanceStatus()
-
getUptime
public long getUptime()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-