Package org.jclouds.cloudstack.domain
Class UsageRecord
- java.lang.Object
-
- org.jclouds.cloudstack.domain.UsageRecord
-
public class UsageRecord extends Object
Represents a usage record from CloudStack
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UsageRecord.Builder<T extends UsageRecord.Builder<T>>
static class
UsageRecord.UsageType
-
Constructor Summary
Constructors Modifier Constructor Description protected
UsageRecord(String id, String description, String accountId, String accountName, String domainId, Date startDate, Date endDate, Date assignDate, String releaseDate, String zoneId, String virtualMachineId, String virtualMachineName, String serviceOfferingId, String templateId, String ipAddress, Boolean isSourceNAT, double rawUsageHours, String usage, Long size, String type, UsageRecord.UsageType usageType, String project, String projectId, String domain, Long virtualSize, Long cpuNumber, Long cpuSpeed, Long memory, Boolean isSystem, String networkId, Boolean isDefault, Set<Tag> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageRecord.Builder<?>
builder()
boolean
equals(Object obj)
String
getAccountId()
String
getAccountName()
Date
getAssignDate()
Long
getCpuNumber()
Long
getCpuSpeed()
String
getDescription()
String
getDomain()
String
getDomainId()
Date
getEndDate()
String
getId()
String
getIpAddress()
Long
getMemory()
String
getNetworkId()
String
getProject()
String
getProjectId()
double
getRawUsageHours()
String
getReleaseDate()
String
getServiceOfferingId()
Long
getSize()
Date
getStartDate()
Set<Tag>
getTags()
String
getTemplateId()
String
getType()
String
getUsage()
UsageRecord.UsageType
getUsageType()
String
getVirtualMachineId()
String
getVirtualMachineName()
Long
getVirtualSize()
String
getZoneId()
int
hashCode()
Boolean
isDefault()
Boolean
isSourceNAT()
Boolean
isSystem()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
UsageRecord.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
UsageRecord
@ConstructorProperties({"usageid","description","accountid","account","domainid","startdate","enddate","assigndate","releasedate","zoneid","virtualmachineid","name","offeringid","templateid","ipaddress","issourcenat","rawusage","usage","size","type","usagetype","project","projectid","domain","virtualsize","cpunumber","cpuspeed","memory","issystem","networkid","isdefault","tags"}) protected UsageRecord(String id, @Nullable String description, @Nullable String accountId, @Nullable String accountName, @Nullable String domainId, @Nullable Date startDate, @Nullable Date endDate, @Nullable Date assignDate, @Nullable String releaseDate, @Nullable String zoneId, @Nullable String virtualMachineId, @Nullable String virtualMachineName, @Nullable String serviceOfferingId, @Nullable String templateId, @Nullable String ipAddress, @Nullable Boolean isSourceNAT, double rawUsageHours, @Nullable String usage, @Nullable Long size, @Nullable String type, @Nullable UsageRecord.UsageType usageType, @Nullable String project, @Nullable String projectId, @Nullable String domain, @Nullable Long virtualSize, @Nullable Long cpuNumber, @Nullable Long cpuSpeed, @Nullable Long memory, @Nullable Boolean isSystem, @Nullable String networkId, @Nullable Boolean isDefault, @Nullable Set<Tag> tags)
-
-
Method Detail
-
builder
public static UsageRecord.Builder<?> builder()
-
toBuilder
public UsageRecord.Builder<?> toBuilder()
-
getId
public String getId()
-
getRawUsageHours
public double getRawUsageHours()
-
getSize
public Long getSize()
-
getUsageType
@Nullable public UsageRecord.UsageType getUsageType()
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-