UserSessionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. desktopvirtualization. fluent. models. UserSessionInner
- com.
- com.
public final class UserSessionInner
extends ProxyResource
Represents a UserSession definition.
Constructor Summary
| Constructor | Description |
|---|---|
| UserSessionInner() |
Creates an instance of User |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
activeDirectoryUsername()
Get the active |
|
Application |
applicationType()
Get the application |
|
Offset |
createTime()
Get the create |
|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
| String |
objectId()
Get the object |
|
Session |
sessionState()
Get the session |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| String |
userPrincipalName()
Get the user |
| void |
validate()
Validates the instance. |
|
User |
withActiveDirectoryUsername(String activeDirectoryUsername)
Set the active |
|
User |
withApplicationType(ApplicationType applicationType)
Set the application |
|
User |
withCreateTime(OffsetDateTime createTime)
Set the create |
|
User |
withSessionState(SessionState sessionState)
Set the session |
|
User |
withUserPrincipalName(String userPrincipalName)
Set the user |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
UserSessionInner
public UserSessionInner()
Creates an instance of UserSessionInner class.
Method Details
activeDirectoryUsername
public String activeDirectoryUsername()
Get the activeDirectoryUsername property: The active directory user name.
Returns:
applicationType
public ApplicationType applicationType()
Get the applicationType property: Application type of application.
Returns:
createTime
public OffsetDateTime createTime()
Get the createTime property: The timestamp of the user session create.
Returns:
fromJson
public static UserSessionInner fromJson(JsonReader jsonReader)
Reads an instance of UserSessionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
UserSessionInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
UserSessionInner.name()Returns:
objectId
public String objectId()
Get the objectId property: ObjectId of user session. (internal use).
Returns:
sessionState
public SessionState sessionState()
Get the sessionState property: State of user session.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
UserSessionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
UserSessionInner.type()Returns:
userPrincipalName
public String userPrincipalName()
Get the userPrincipalName property: The user principal name.
Returns:
validate
public void validate()
Validates the instance.
withActiveDirectoryUsername
public UserSessionInner withActiveDirectoryUsername(String activeDirectoryUsername)
Set the activeDirectoryUsername property: The active directory user name.
Parameters:
Returns:
withApplicationType
public UserSessionInner withApplicationType(ApplicationType applicationType)
Set the applicationType property: Application type of application.
Parameters:
Returns:
withCreateTime
public UserSessionInner withCreateTime(OffsetDateTime createTime)
Set the createTime property: The timestamp of the user session create.
Parameters:
Returns:
withSessionState
public UserSessionInner withSessionState(SessionState sessionState)
Set the sessionState property: State of user session.
Parameters:
Returns:
withUserPrincipalName
public UserSessionInner withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name.
Parameters:
Returns: