org.jclouds.cloudstack.domain
Class User

java.lang.Object
  extended by org.jclouds.cloudstack.domain.User
All Implemented Interfaces:
Comparable<User>

public class User
extends Object
implements Comparable<User>

Author:
Adrian Cole

Nested Class Summary
static class User.Builder
           
static class User.State
           
 
Constructor Summary
User(long id, String name, String firstname, String lastname, String email, Date created, User.State state, String account, Account.Type accountType, String domain, long domainId, String timeZone, String apiKey, String secretKey)
           
 
Method Summary
static User.Builder builder()
           
 int compareTo(User arg0)
           
 boolean equals(Object obj)
           
 String getAccount()
           
 Account.Type getAccountType()
           
 String getApiKey()
           
 Date getCreated()
           
 String getDomain()
           
 long getDomainId()
           
 String getEmail()
           
 String getFirstName()
           
 long getId()
           
 String getLastName()
           
 String getName()
           
 String getSecretKey()
           
 User.State getState()
           
 String getTimeZone()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User(long id,
            String name,
            String firstname,
            String lastname,
            String email,
            Date created,
            User.State state,
            String account,
            Account.Type accountType,
            String domain,
            long domainId,
            String timeZone,
            String apiKey,
            String secretKey)
Method Detail

builder

public static User.Builder builder()

getId

public long getId()
Returns:
the user ID

getName

public String getName()
Returns:
the user name

getFirstName

public String getFirstName()
Returns:
the user firstname

getLastName

public String getLastName()
Returns:
the user lastname

getEmail

public String getEmail()
Returns:
the user email address

getCreated

public Date getCreated()
Returns:
the date and time the user account was created

getState

public User.State getState()
Returns:
the user state

getAccount

public String getAccount()
Returns:
the account name of the user

getAccountType

public Account.Type getAccountType()
Returns:
the account type of the user

getDomain

public String getDomain()
Returns:
the domain name of the user

getDomainId

public long getDomainId()
Returns:
the domain ID of the user

getTimeZone

public String getTimeZone()
Returns:
the timezone user was created in

getApiKey

public String getApiKey()
Returns:
the api key of the user

getSecretKey

public String getSecretKey()
Returns:
the secret key of the user

compareTo

public int compareTo(User arg0)
Specified by:
compareTo in interface Comparable<User>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.