org.jclouds.cloudstack.domain
Class UsageRecord

java.lang.Object
  extended by org.jclouds.cloudstack.domain.UsageRecord

public class UsageRecord
extends Object

Represents a usage record from CloudStack

Author:
Richard Downer

Nested Class Summary
static class UsageRecord.Builder<T extends UsageRecord.Builder<T>>
           
static class UsageRecord.UsageType
           
 
Constructor Summary
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, String type, UsageRecord.UsageType usageType)
           
 
Method Summary
static UsageRecord.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getAccountId()
           
 String getAccountName()
           
 Date getAssignDate()
           
 String getDescription()
           
 String getDomainId()
           
 Date getEndDate()
           
 String getId()
           
 String getIpAddress()
           
 double getRawUsageHours()
           
 String getReleaseDate()
           
 String getServiceOfferingId()
           
 Date getStartDate()
           
 String getTemplateId()
           
 String getType()
           
 String getUsage()
           
 UsageRecord.UsageType getUsageType()
           
 String getVirtualMachineId()
           
 String getVirtualMachineName()
           
 String getZoneId()
           
 int hashCode()
           
 boolean isSourceNAT()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 UsageRecord.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsageRecord

@ConstructorProperties(value={"usageid","description","accountid","account","domainid","startdate","enddate","assigndate","releasedate","zoneid","virtualmachineid","name","offeringid","templateid","ipaddress","issourcenat","rawusage","usage","type","usagetype"})
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,
                                                 boolean isSourceNAT,
                                                 double rawUsageHours,
                                                 @Nullable
                                                 String usage,
                                                 @Nullable
                                                 String type,
                                                 @Nullable
                                                 UsageRecord.UsageType usageType)
Method Detail

builder

public static UsageRecord.Builder<?> builder()

toBuilder

public UsageRecord.Builder<?> toBuilder()

getId

public String getId()

getDescription

@Nullable
public String getDescription()

getAccountId

@Nullable
public String getAccountId()

getAccountName

@Nullable
public String getAccountName()

getDomainId

@Nullable
public String getDomainId()

getStartDate

@Nullable
public Date getStartDate()

getEndDate

@Nullable
public Date getEndDate()

getAssignDate

@Nullable
public Date getAssignDate()

getReleaseDate

@Nullable
public String getReleaseDate()

getZoneId

@Nullable
public String getZoneId()

getVirtualMachineId

@Nullable
public String getVirtualMachineId()

getVirtualMachineName

@Nullable
public String getVirtualMachineName()

getServiceOfferingId

@Nullable
public String getServiceOfferingId()

getTemplateId

@Nullable
public String getTemplateId()

getIpAddress

@Nullable
public String getIpAddress()

isSourceNAT

public boolean isSourceNAT()

getRawUsageHours

public double getRawUsageHours()

getUsage

@Nullable
public String getUsage()

getType

@Nullable
public String getType()

getUsageType

@Nullable
public UsageRecord.UsageType getUsageType()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013 jclouds. All Rights Reserved.