org.jclouds.cloudstack.domain
Class UsageRecord
java.lang.Object
org.jclouds.cloudstack.domain.UsageRecord
- All Implemented Interfaces:
- Comparable<UsageRecord>
public class UsageRecord
- extends Object
- implements Comparable<UsageRecord>
Represents a usage record from CloudStack
- Author:
- Richard Downer
Constructor Summary |
UsageRecord(long id,
String description,
long accountId,
String accountName,
long domainId,
Date startDate,
Date endDate,
Date assignDate,
long releaseDate,
long zoneId,
long virtualMachineId,
String virtualMachineName,
long serviceOfferingId,
long templateId,
String ipAddress,
boolean sourceNAT,
double rawUsageHours,
String usage,
String type,
UsageRecord.UsageType usageType)
|
UsageRecord
public UsageRecord(long id,
String description,
long accountId,
String accountName,
long domainId,
Date startDate,
Date endDate,
Date assignDate,
long releaseDate,
long zoneId,
long virtualMachineId,
String virtualMachineName,
long serviceOfferingId,
long templateId,
String ipAddress,
boolean sourceNAT,
double rawUsageHours,
String usage,
String type,
UsageRecord.UsageType usageType)
builder
public static UsageRecord.Builder builder()
getId
public long getId()
getDescription
public String getDescription()
getAccountId
public long getAccountId()
getAccountName
public String getAccountName()
getDomainId
public long getDomainId()
getStartDate
public Date getStartDate()
getEndDate
public Date getEndDate()
getAssignDate
public Date getAssignDate()
getReleaseDate
public long getReleaseDate()
getZoneId
public long getZoneId()
getVirtualMachineId
public long getVirtualMachineId()
getVirtualMachineName
public String getVirtualMachineName()
getServiceOfferingId
public long getServiceOfferingId()
getTemplateId
public long getTemplateId()
getIpAddress
public String getIpAddress()
isSourceNAT
public boolean isSourceNAT()
getRawUsageHours
public double getRawUsageHours()
getUsage
public String getUsage()
getType
public String getType()
getUsageType
public UsageRecord.UsageType getUsageType()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(UsageRecord other)
- Specified by:
compareTo
in interface Comparable<UsageRecord>
Copyright © 2009-2012 jclouds. All Rights Reserved.