Package org.jclouds.cloudstack.domain
Class Account
Class Account
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Account.Builder<T extends Account.Builder<T>>
static enum
static enum
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionstatic Account.Builder
<?> builder()
delegate()
boolean
getId()
long
getIPs()
getName()
long
long
long
getState()
long
getType()
getUsers()
long
getVMs()
long
long
long
int
hashCode()
boolean
protected com.google.common.base.MoreObjects.ToStringHelper
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 Details
-
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 Details
-
builder
-
toBuilder
-
getId
- Returns:
- the id of the account
-
getType
- Returns:
- account type (admin, domain-admin, user)
-
getNetworkDomain
- Returns:
- the network domain
-
getDomain
- Returns:
- name of the Domain the account belongs to
-
getDomainId
- Returns:
- id of the Domain the account belongs to
-
getIPsAvailable
- Returns:
- the total number of public ip addresses available for this account to acquire, or null if unlimited
-
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
-
getName
- Returns:
- the name of the account
-
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
- Returns:
- the total number of snapshots available for this account, or null if unlimited
-
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
- Returns:
- the state of the account
-
getTemplatesAvailable
- Returns:
- the total number of templates available to be created by this account, or null if unlimited
-
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
- Returns:
- the total number of virtual machines available for this account to acquire, or null if unlimited
-
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
- Returns:
- the total volume available for this account, or null if unlimited
-
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
-
getUsers
- Returns:
- the list of users associated with account
-
delegate
- Specified by:
delegate
in classcom.google.common.collect.ForwardingSet<User>
-
hashCode
public int hashCode() -
equals
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string() -
toString
- Overrides:
toString
in classcom.google.common.collect.ForwardingObject
-