org.jclouds.cloudstack.domain
Class LoginResponse.Builder<T extends LoginResponse.Builder<T>>

java.lang.Object
  extended by org.jclouds.cloudstack.domain.LoginResponse.Builder<T>
Enclosing class:
LoginResponse

public abstract static class LoginResponse.Builder<T extends LoginResponse.Builder<T>>
extends Object


Field Summary
protected  String accountName
           
protected  Account.Type accountType
           
protected  String domainId
           
protected  String firstName
           
protected  String jSessionId
           
protected  String lastName
           
protected  String password
           
protected  boolean registered
           
protected  String sessionKey
           
protected  long timeout
           
protected  String timezone
           
protected  String timezoneOffset
           
protected  String userId
           
protected  String username
           
 
Constructor Summary
LoginResponse.Builder()
           
 
Method Summary
 T accountName(String accountName)
           
 T accountType(Account.Type accountType)
           
 LoginResponse build()
           
 T domainId(String domainId)
           
 T firstName(String firstName)
           
 T fromLoginResponse(LoginResponse in)
           
 T jSessionId(String jSessionId)
           
 T lastName(String lastName)
           
 T password(String password)
           
 T registered(boolean registered)
           
protected abstract  T self()
           
 T sessionKey(String sessionKey)
           
 T timeout(long timeout)
           
 T timezone(String timezone)
           
 T timezoneOffset(String timezoneOffset)
           
 T userId(String userId)
           
 T username(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

username

protected String username

userId

protected String userId

password

protected String password

domainId

protected String domainId

timeout

protected long timeout

registered

protected boolean registered

accountName

protected String accountName

firstName

protected String firstName

lastName

protected String lastName

accountType

protected Account.Type accountType

timezone

protected String timezone

timezoneOffset

protected String timezoneOffset

sessionKey

protected String sessionKey

jSessionId

protected String jSessionId
Constructor Detail

LoginResponse.Builder

public LoginResponse.Builder()
Method Detail

self

protected abstract T self()

username

public T username(String username)
See Also:
LoginResponse.getUsername()

userId

public T userId(String userId)
See Also:
LoginResponse.getUserId()

password

public T password(String password)
See Also:
LoginResponse.getPassword()

domainId

public T domainId(String domainId)
See Also:
LoginResponse.getDomainId()

timeout

public T timeout(long timeout)
See Also:
LoginResponse.getTimeout()

registered

public T registered(boolean registered)
See Also:
LoginResponse.isRegistered()

accountName

public T accountName(String accountName)
See Also:
LoginResponse.getAccountName()

firstName

public T firstName(String firstName)
See Also:
LoginResponse.getFirstName()

lastName

public T lastName(String lastName)
See Also:
LoginResponse.getLastName()

accountType

public T accountType(Account.Type accountType)
See Also:
LoginResponse.getAccountType()

timezone

public T timezone(String timezone)
See Also:
LoginResponse.getTimezone()

timezoneOffset

public T timezoneOffset(String timezoneOffset)
See Also:
LoginResponse.getTimezoneOffset()

sessionKey

public T sessionKey(String sessionKey)
See Also:
LoginResponse.getSessionKey()

jSessionId

public T jSessionId(String jSessionId)
See Also:
LoginResponse.getJSessionId()

build

public LoginResponse build()

fromLoginResponse

public T fromLoginResponse(LoginResponse in)


Copyright © 2009-2012 jclouds. All Rights Reserved.