Class UserSessionInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.desktopvirtualization.fluent.models.UserSessionInner
-
public final class UserSessionInner extends com.azure.core.management.ProxyResourceRepresents a UserSession definition.
-
-
Constructor Summary
Constructors Constructor Description UserSessionInner()
-
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.com.azure.core.management.SystemDatasystemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.StringuserPrincipalName()Get the userPrincipalName property: The user principal name.voidvalidate()Validates the instance.UserSessionInnerwithActiveDirectoryUsername(String activeDirectoryUsername)Set the activeDirectoryUsername property: The active directory user name.UserSessionInnerwithApplicationType(ApplicationType applicationType)Set the applicationType property: Application type of application.UserSessionInnerwithCreateTime(OffsetDateTime createTime)Set the createTime property: The timestamp of the user session create.UserSessionInnerwithSessionState(SessionState sessionState)Set the sessionState property: State of user session.UserSessionInnerwithUserPrincipalName(String userPrincipalName)Set the userPrincipalName property: The user principal name.
-
-
-
Method Detail
-
systemData
public com.azure.core.management.SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
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 UserSessionInner withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name.- Parameters:
userPrincipalName- the userPrincipalName value to set.- Returns:
- the UserSessionInner object itself.
-
applicationType
public ApplicationType applicationType()
Get the applicationType property: Application type of application.- Returns:
- the applicationType value.
-
withApplicationType
public UserSessionInner withApplicationType(ApplicationType applicationType)
Set the applicationType property: Application type of application.- Parameters:
applicationType- the applicationType value to set.- Returns:
- the UserSessionInner object itself.
-
sessionState
public SessionState sessionState()
Get the sessionState property: State of user session.- Returns:
- the sessionState value.
-
withSessionState
public UserSessionInner withSessionState(SessionState sessionState)
Set the sessionState property: State of user session.- Parameters:
sessionState- the sessionState value to set.- Returns:
- the UserSessionInner object itself.
-
activeDirectoryUsername
public String activeDirectoryUsername()
Get the activeDirectoryUsername property: The active directory user name.- Returns:
- the activeDirectoryUsername value.
-
withActiveDirectoryUsername
public UserSessionInner withActiveDirectoryUsername(String activeDirectoryUsername)
Set the activeDirectoryUsername property: The active directory user name.- Parameters:
activeDirectoryUsername- the activeDirectoryUsername value to set.- Returns:
- the UserSessionInner object itself.
-
createTime
public OffsetDateTime createTime()
Get the createTime property: The timestamp of the user session create.- Returns:
- the createTime value.
-
withCreateTime
public UserSessionInner withCreateTime(OffsetDateTime createTime)
Set the createTime property: The timestamp of the user session create.- Parameters:
createTime- the createTime value to set.- Returns:
- the UserSessionInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-