Package com.vmware.nsx_policy.model
Class IdfwUserSessionData.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.IdfwUserSessionData.Builder
-
- Enclosing class:
- IdfwUserSessionData
public static final class IdfwUserSessionData.Builder extends java.lang.Object
Builder class forIdfwUserSessionData
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofIdfwUserSessionData
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdfwUserSessionData
build()
IdfwUserSessionData.Builder
setDomainName(java.lang.String domainName)
AD Domain of user.IdfwUserSessionData.Builder
setId(java.lang.String id)
Identifier of user session data.IdfwUserSessionData.Builder
setLoginTime(java.lang.Long loginTime)
Login time.IdfwUserSessionData.Builder
setLogoutTime(java.lang.Long logoutTime)
Logout time if applicable.IdfwUserSessionData.Builder
setSessionSource(java.lang.String sessionSource)
Possible values are:IdfwUserSessionData.SESSION_SOURCE_GI
IdfwUserSessionData.SESSION_SOURCE_ELS
IdfwUserSessionData.SESSION_SOURCE_LI
User session source can be one of: - GI (Guest Introspection) - ELS (AD Event log server) - LI (Log Insight) This property may be present in responses from the server, but if it is present in a request to server it will be ignored.IdfwUserSessionData.Builder
setUserId(java.lang.String userId)
AD user ID (may not exist).IdfwUserSessionData.Builder
setUserName(java.lang.String userName)
AD user name.IdfwUserSessionData.Builder
setUserSessionId(java.lang.Long userSessionId)
User session ID.IdfwUserSessionData.Builder
setVmExtId(java.lang.String vmExtId)
Virtual machine (external ID or BIOS UUID) where login/logout events occurred.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofIdfwUserSessionData
.
-
-
Method Detail
-
setDomainName
public IdfwUserSessionData.Builder setDomainName(java.lang.String domainName)
AD Domain of user.- Parameters:
domainName
- New value for the property.
-
setId
public IdfwUserSessionData.Builder setId(java.lang.String id)
Identifier of user session data. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
id
- New value for the property.
-
setLoginTime
public IdfwUserSessionData.Builder setLoginTime(java.lang.Long loginTime)
Login time. format: int64- Parameters:
loginTime
- New value for the property.
-
setLogoutTime
public IdfwUserSessionData.Builder setLogoutTime(java.lang.Long logoutTime)
Logout time if applicable. An active user session has no logout time. Non-active user session is stored (up to last 5 most recent entries) per VM and per user. format: int64- Parameters:
logoutTime
- New value for the property.
-
setSessionSource
public IdfwUserSessionData.Builder setSessionSource(java.lang.String sessionSource)
Possible values are: User session source can be one of: - GI (Guest Introspection) - ELS (AD Event log server) - LI (Log Insight) This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
sessionSource
- New value for the property.
-
setUserId
public IdfwUserSessionData.Builder setUserId(java.lang.String userId)
AD user ID (may not exist). This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
userId
- New value for the property.
-
setUserName
public IdfwUserSessionData.Builder setUserName(java.lang.String userName)
AD user name.- Parameters:
userName
- New value for the property.
-
setUserSessionId
public IdfwUserSessionData.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.
-
setVmExtId
public IdfwUserSessionData.Builder setVmExtId(java.lang.String vmExtId)
Virtual machine (external ID or BIOS UUID) where login/logout events occurred. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
vmExtId
- New value for the property.
-
build
public IdfwUserSessionData build()
-
-