Class UserSessionProperties
- java.lang.Object
-
- com.azure.resourcemanager.desktopvirtualization.fluent.models.UserSessionProperties
-
public final class UserSessionProperties extends Object
Schema for UserSession properties.
-
-
Constructor Summary
Constructors Constructor Description UserSessionProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactiveDirectoryUsername()Get the activeDirectoryUsername property: The active directory user name.ApplicationTypeapplicationType()Get the applicationType property: Application type of application.OffsetDateTimecreateTime()Get the createTime property: The timestamp of the user session create.StringobjectId()Get the objectId property: ObjectId of user session.SessionStatesessionState()Get the sessionState property: State of user session.StringuserPrincipalName()Get the userPrincipalName property: The user principal name.voidvalidate()Validates the instance.UserSessionPropertieswithActiveDirectoryUsername(String activeDirectoryUsername)Set the activeDirectoryUsername property: The active directory user name.UserSessionPropertieswithApplicationType(ApplicationType applicationType)Set the applicationType property: Application type of application.UserSessionPropertieswithCreateTime(OffsetDateTime createTime)Set the createTime property: The timestamp of the user session create.UserSessionPropertieswithSessionState(SessionState sessionState)Set the sessionState property: State of user session.UserSessionPropertieswithUserPrincipalName(String userPrincipalName)Set the userPrincipalName property: The user principal name.
-
-
-
Method Detail
-
objectId
public String objectId()
Get the objectId property: ObjectId of user session. (internal use).- Returns:
- the objectId value.
-
userPrincipalName
public String userPrincipalName()
Get the userPrincipalName property: The user principal name.- Returns:
- the userPrincipalName value.
-
withUserPrincipalName
public UserSessionProperties withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name.- Parameters:
userPrincipalName- the userPrincipalName value to set.- Returns:
- the UserSessionProperties object itself.
-
applicationType
public ApplicationType applicationType()
Get the applicationType property: Application type of application.- Returns:
- the applicationType value.
-
withApplicationType
public UserSessionProperties withApplicationType(ApplicationType applicationType)
Set the applicationType property: Application type of application.- Parameters:
applicationType- the applicationType value to set.- Returns:
- the UserSessionProperties object itself.
-
sessionState
public SessionState sessionState()
Get the sessionState property: State of user session.- Returns:
- the sessionState value.
-
withSessionState
public UserSessionProperties withSessionState(SessionState sessionState)
Set the sessionState property: State of user session.- Parameters:
sessionState- the sessionState value to set.- Returns:
- the UserSessionProperties object itself.
-
activeDirectoryUsername
public String activeDirectoryUsername()
Get the activeDirectoryUsername property: The active directory user name.- Returns:
- the activeDirectoryUsername value.
-
withActiveDirectoryUsername
public UserSessionProperties withActiveDirectoryUsername(String activeDirectoryUsername)
Set the activeDirectoryUsername property: The active directory user name.- Parameters:
activeDirectoryUsername- the activeDirectoryUsername value to set.- Returns:
- the UserSessionProperties object itself.
-
createTime
public OffsetDateTime createTime()
Get the createTime property: The timestamp of the user session create.- Returns:
- the createTime value.
-
withCreateTime
public UserSessionProperties withCreateTime(OffsetDateTime createTime)
Set the createTime property: The timestamp of the user session create.- Parameters:
createTime- the createTime value to set.- Returns:
- the UserSessionProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-