Package org.jclouds.cloudstack.domain
Class UsageRecord.Builder<T extends UsageRecord.Builder<T>>
- java.lang.Object
-
- org.jclouds.cloudstack.domain.UsageRecord.Builder<T>
-
- Enclosing class:
- UsageRecord
public abstract static class UsageRecord.Builder<T extends UsageRecord.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
accountId
protected String
accountName
protected Date
assignDate
protected Long
cpuNumber
protected Long
cpuSpeed
protected String
description
protected String
domain
protected String
domainId
protected Date
endDate
protected String
id
protected String
ipAddress
protected Boolean
isDefault
protected Boolean
isSourceNAT
protected Boolean
isSystem
protected Long
memory
protected String
networkId
protected String
project
protected String
projectId
protected double
rawUsageHours
protected String
releaseDate
protected String
serviceOfferingId
protected Long
size
protected Date
startDate
protected Set<Tag>
tags
protected String
templateId
protected String
type
protected String
usage
protected UsageRecord.UsageType
usageType
protected String
virtualMachineId
protected String
virtualMachineName
protected Long
virtualSize
protected String
zoneId
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Field Detail
-
id
protected String id
-
description
protected String description
-
accountId
protected String accountId
-
accountName
protected String accountName
-
domainId
protected String domainId
-
startDate
protected Date startDate
-
endDate
protected Date endDate
-
assignDate
protected Date assignDate
-
releaseDate
protected String releaseDate
-
zoneId
protected String zoneId
-
virtualMachineId
protected String virtualMachineId
-
virtualMachineName
protected String virtualMachineName
-
serviceOfferingId
protected String serviceOfferingId
-
templateId
protected String templateId
-
ipAddress
protected String ipAddress
-
isSourceNAT
protected Boolean isSourceNAT
-
rawUsageHours
protected double rawUsageHours
-
usage
protected String usage
-
size
protected Long size
-
type
protected String type
-
usageType
protected UsageRecord.UsageType usageType
-
project
protected String project
-
projectId
protected String projectId
-
domain
protected String domain
-
virtualSize
protected Long virtualSize
-
cpuNumber
protected Long cpuNumber
-
cpuSpeed
protected Long cpuSpeed
-
memory
protected Long memory
-
isSystem
protected Boolean isSystem
-
networkId
protected String networkId
-
isDefault
protected Boolean isDefault
-
-
Method Detail
-
self
protected abstract T self()
-
id
public T id(String id)
- See Also:
UsageRecord.getId()
-
description
public T description(String description)
- See Also:
UsageRecord.getDescription()
-
accountId
public T accountId(String accountId)
- See Also:
UsageRecord.getAccountId()
-
accountName
public T accountName(String accountName)
- See Also:
UsageRecord.getAccountName()
-
domainId
public T domainId(String domainId)
- See Also:
UsageRecord.getDomainId()
-
startDate
public T startDate(Date startDate)
- See Also:
UsageRecord.getStartDate()
-
endDate
public T endDate(Date endDate)
- See Also:
UsageRecord.getEndDate()
-
assignDate
public T assignDate(Date assignDate)
- See Also:
UsageRecord.getAssignDate()
-
releaseDate
public T releaseDate(String releaseDate)
- See Also:
UsageRecord.getReleaseDate()
-
zoneId
public T zoneId(String zoneId)
- See Also:
UsageRecord.getZoneId()
-
virtualMachineId
public T virtualMachineId(String virtualMachineId)
- See Also:
UsageRecord.getVirtualMachineId()
-
virtualMachineName
public T virtualMachineName(String virtualMachineName)
- See Also:
UsageRecord.getVirtualMachineName()
-
serviceOfferingId
public T serviceOfferingId(String serviceOfferingId)
- See Also:
UsageRecord.getServiceOfferingId()
-
templateId
public T templateId(String templateId)
- See Also:
UsageRecord.getTemplateId()
-
ipAddress
public T ipAddress(String ipAddress)
- See Also:
UsageRecord.getIpAddress()
-
isSourceNAT
public T isSourceNAT(Boolean isSourceNAT)
- See Also:
UsageRecord.isSourceNAT()
-
rawUsageHours
public T rawUsageHours(double rawUsageHours)
- See Also:
UsageRecord.getRawUsageHours()
-
usage
public T usage(String usage)
- See Also:
UsageRecord.getUsage()
-
size
public T size(Long size)
- See Also:
UsageRecord.getSize()
-
type
public T type(String type)
- See Also:
UsageRecord.getType()
-
usageType
public T usageType(UsageRecord.UsageType usageType)
- See Also:
UsageRecord.getUsageType()
-
project
public T project(String project)
- See Also:
UsageRecord.getProject()
-
projectId
public T projectId(String projectId)
- See Also:
UsageRecord.getProjectId()
-
domain
public T domain(String domain)
- See Also:
UsageRecord.getDomain()
-
virtualSize
public T virtualSize(Long virtualSize)
- See Also:
UsageRecord.getVirtualSize()
-
cpuNumber
public T cpuNumber(Long cpuNumber)
- See Also:
UsageRecord.getCpuNumber()
-
cpuSpeed
public T cpuSpeed(Long cpuSpeed)
- See Also:
UsageRecord.getCpuSpeed()
-
memory
public T memory(Long memory)
- See Also:
UsageRecord.getMemory()
-
isSystem
public T isSystem(Boolean isSystem)
- See Also:
UsageRecord.isSystem()
-
networkId
public T networkId(String networkId)
- See Also:
UsageRecord.getNetworkId()
-
isDefault
public T isDefault(Boolean isDefault)
- See Also:
UsageRecord.isDefault()
-
tags
public T tags(Set<Tag> tags)
- See Also:
UsageRecord.getTags()
-
build
public UsageRecord build()
-
fromUsageRecord
public T fromUsageRecord(UsageRecord in)
-
-