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
- All Implemented Interfaces:
- Iterable<User>, Collection<User>, Set<User>
public class Account
- extends com.google.common.collect.ForwardingSet<User>
Class Account
- Author:
- Adrian Cole
|
Constructor Summary |
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)
|
| 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 interface java.util.Set |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
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)
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)
getNetworkDomain
@Nullable
public String getNetworkDomain()
- Returns:
- the network domain
getDomain
@Nullable
public String getDomain()
- Returns:
- name of the Domain the account belongs to
getDomainId
@Nullable
public String getDomainId()
- Returns:
- id of the Domain the account belongs to
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
getName
@Nullable
public String 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
@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
getUsers
public Set<User> getUsers()
- Returns:
- the list of users associated with account
delegate
protected Set<User> delegate()
- Overrides:
delegate in class com.google.common.collect.ForwardingSet<User>
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection<User>- Specified by:
hashCode in interface Set<User>- Overrides:
hashCode in class com.google.common.collect.ForwardingSet<User>
equals
public boolean equals(Object obj)
- Specified by:
equals in interface Collection<User>- Specified by:
equals in interface Set<User>- Overrides:
equals in class com.google.common.collect.ForwardingSet<User>
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class com.google.common.collect.ForwardingObject
Copyright © 2009-2013 jclouds. All Rights Reserved.