Package org.jclouds.cloudstack.domain
Class Account
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingSet<User>
-
- org.jclouds.cloudstack.domain.Account
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Account.Builder<T extends Account.Builder<T>>
static class
Account.State
static class
Account.Type
-
Constructor Summary
Constructors Modifier Constructor Description protected
Account(String id, Account.Type type, String networkDomain, String domain, String domainId, Long IPsAvailable, Long IPLimit, long IPs, boolean cleanupRequired, String name, long receivedBytes, long sentBytes, Long snapshotsAvailable, Long snapshotLimit, long snapshots, Account.State state, Long templatesAvailable, Long templateLimit, long templates, Long VMsAvailable, Long VMLimit, long VMsRunning, long VMsStopped, long VMs, Long volumesAvailable, Long volumeLimit, long volumes, Set<User> users)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Account.Builder<?>
builder()
protected Set<User>
delegate()
boolean
equals(Object obj)
String
getDomain()
String
getDomainId()
String
getId()
Long
getIPLimit()
long
getIPs()
Long
getIPsAvailable()
String
getName()
String
getNetworkDomain()
long
getReceivedBytes()
long
getSentBytes()
Long
getSnapshotLimit()
long
getSnapshots()
Long
getSnapshotsAvailable()
Account.State
getState()
Long
getTemplateLimit()
long
getTemplates()
Long
getTemplatesAvailable()
Account.Type
getType()
Set<User>
getUsers()
Long
getVMLimit()
long
getVMs()
Long
getVMsAvailable()
long
getVMsRunning()
long
getVMsStopped()
Long
getVolumeLimit()
long
getVolumes()
Long
getVolumesAvailable()
int
hashCode()
boolean
isCleanupRequired()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Account.Builder<?>
toBuilder()
String
toString()
-
Methods inherited from class com.google.common.collect.ForwardingSet
standardEquals, standardHashCode, standardRemoveAll
-
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
Account
protected Account(String id, @Nullable Account.Type type, @Nullable String networkDomain, @Nullable String domain, @Nullable String domainId, @Nullable Long IPsAvailable, @Nullable Long IPLimit, long IPs, boolean cleanupRequired, @Nullable String name, long receivedBytes, long sentBytes, @Nullable Long snapshotsAvailable, @Nullable Long snapshotLimit, long snapshots, @Nullable Account.State state, @Nullable Long templatesAvailable, @Nullable Long templateLimit, long templates, @Nullable Long VMsAvailable, @Nullable Long VMLimit, long VMsRunning, long VMsStopped, long VMs, @Nullable Long volumesAvailable, @Nullable Long volumeLimit, long volumes, @Nullable Set<User> users)
-
-
Method Detail
-
builder
public static Account.Builder<?> builder()
-
toBuilder
public Account.Builder<?> toBuilder()
-
getId
public String getId()
- Returns:
- the id of the account
-
getType
@Nullable public Account.Type getType()
- Returns:
- account type (admin, domain-admin, user)
-
getIPsAvailable
@Nullable public Long getIPsAvailable()
- Returns:
- the total number of public ip addresses available for this account to acquire, or null if unlimited
-
getIPLimit
@Nullable public Long getIPLimit()
- Returns:
- the total number of public ip addresses this account can acquire, or null if unlimited
-
getIPs
public long getIPs()
- Returns:
- the total number of public ip addresses allocated for this account
-
isCleanupRequired
public boolean isCleanupRequired()
- Returns:
- true if the account requires cleanup
-
getReceivedBytes
public long getReceivedBytes()
- Returns:
- the total number of network traffic bytes received
-
getSentBytes
public long getSentBytes()
- Returns:
- the total number of network traffic bytes sent
-
getSnapshotsAvailable
@Nullable public Long getSnapshotsAvailable()
- Returns:
- the total number of snapshots available for this account, or null if unlimited
-
getSnapshotLimit
@Nullable public Long getSnapshotLimit()
- Returns:
- the total number of snapshots which can be stored by this account, or null if unlimited
-
getSnapshots
public long getSnapshots()
- Returns:
- the total number of snapshots stored by this account
-
getState
@Nullable public Account.State getState()
- Returns:
- the state of the account
-
getTemplatesAvailable
@Nullable public Long getTemplatesAvailable()
- Returns:
- the total number of templates available to be created by this account, or null if unlimited
-
getTemplateLimit
@Nullable public Long getTemplateLimit()
- Returns:
- the total number of templates which can be created by this account, or null if unlimited
-
getTemplates
public long getTemplates()
- Returns:
- the total number of templates which have been created by this account
-
getVMsAvailable
@Nullable public Long getVMsAvailable()
- Returns:
- the total number of virtual machines available for this account to acquire, or null if unlimited
-
getVMLimit
@Nullable public Long getVMLimit()
- Returns:
- the total number of virtual machines that can be deployed by this account, or null if unlimited
-
getVMsRunning
public long getVMsRunning()
- Returns:
- the total number of virtual machines running for this account
-
getVMsStopped
public long getVMsStopped()
- Returns:
- the total number of virtual machines stopped for this account
-
getVMs
public long getVMs()
- Returns:
- the total number of virtual machines deployed by this account
-
getVolumesAvailable
@Nullable public Long getVolumesAvailable()
- Returns:
- the total volume available for this account, or null if unlimited
-
getVolumeLimit
@Nullable public Long getVolumeLimit()
- Returns:
- the total volume which can be used by this account, or null if unlimited
-
getVolumes
public long getVolumes()
- Returns:
- the total volume being used by this account
-
delegate
protected Set<User> delegate()
- Specified by:
delegate
in classcom.google.common.collect.ForwardingSet<User>
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
toString
public String toString()
- Overrides:
toString
in classcom.google.common.collect.ForwardingObject
-
-