Package com.vmware.nsx_policy.model
Class UserSession.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.UserSession.Builder
-
- Enclosing class:
- UserSession
public static final class UserSession.Builder extends java.lang.Object
Builder class forUserSession
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofUserSession
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserSession
build()
UserSession.Builder
setDomainName(java.lang.String domainName)
AD Domain of user.UserSession.Builder
setLoginTime(java.lang.Long loginTime)
Login time.UserSession.Builder
setLogoutTime(java.lang.Long logoutTime)
Logout time if applicable.UserSession.Builder
setUserName(java.lang.String userName)
AD user name.UserSession.Builder
setUserSessionId(java.lang.Long userSessionId)
User session ID.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofUserSession
.
-
-
Method Detail
-
setDomainName
public UserSession.Builder setDomainName(java.lang.String domainName)
AD Domain of user.- Parameters:
domainName
- New value for the property.
-
setLoginTime
public UserSession.Builder setLoginTime(java.lang.Long loginTime)
Login time. format: int64- Parameters:
loginTime
- New value for the property.
-
setLogoutTime
public UserSession.Builder setLogoutTime(java.lang.Long logoutTime)
Logout time if applicable. An active user session has no logout time. format: int64- Parameters:
logoutTime
- New value for the property.
-
setUserName
public UserSession.Builder setUserName(java.lang.String userName)
AD user name.- Parameters:
userName
- New value for the property.
-
setUserSessionId
public UserSession.Builder setUserSessionId(java.lang.Long userSessionId)
User session ID. This also indicates whether this is VDI / RDSH. format: int64- Parameters:
userSessionId
- New value for the property.
-
build
public UserSession build()
-
-