org.jclouds.cloudstack.domain
Class UsageRecord

java.lang.Object
  extended by 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

Nested Class Summary
static class UsageRecord.Builder
           
static class UsageRecord.UsageType
           
 
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)
           
 
Method Summary
static UsageRecord.Builder builder()
           
 int compareTo(UsageRecord other)
           
 boolean equals(Object o)
           
 long getAccountId()
           
 String getAccountName()
           
 Date getAssignDate()
           
 String getDescription()
           
 long getDomainId()
           
 Date getEndDate()
           
 long getId()
           
 String getIpAddress()
           
 double getRawUsageHours()
           
 long getReleaseDate()
           
 long getServiceOfferingId()
           
 Date getStartDate()
           
 long getTemplateId()
           
 String getType()
           
 String getUsage()
           
 UsageRecord.UsageType getUsageType()
           
 long getVirtualMachineId()
           
 String getVirtualMachineName()
           
 long getZoneId()
           
 int hashCode()
           
 boolean isSourceNAT()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.