UserSessionInner Class

public final class UserSessionInner
extends ProxyResource

Represents a UserSession definition.

Constructor Summary

Constructor Description
UserSessionInner()

Creates an instance of UserSessionInner class.

Method Summary

Modifier and Type Method and Description
String activeDirectoryUsername()

Get the activeDirectoryUsername property: The active directory user name.

ApplicationType applicationType()

Get the applicationType property: Application type of application.

OffsetDateTime createTime()

Get the createTime property: The timestamp of the user session create.

static UserSessionInner fromJson(JsonReader jsonReader)

Reads an instance of UserSessionInner from the JsonReader.

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 objectId property: ObjectId of user session.

SessionState sessionState()

Get the sessionState property: State of user session.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String userPrincipalName()

Get the userPrincipalName property: The user principal name.

void validate()

Validates the instance.

UserSessionInner withActiveDirectoryUsername(String activeDirectoryUsername)

Set the activeDirectoryUsername property: The active directory user name.

UserSessionInner withApplicationType(ApplicationType applicationType)

Set the applicationType property: Application type of application.

UserSessionInner withCreateTime(OffsetDateTime createTime)

Set the createTime property: The timestamp of the user session create.

UserSessionInner withSessionState(SessionState sessionState)

Set the sessionState property: State of user session.

UserSessionInner withUserPrincipalName(String userPrincipalName)

Set the userPrincipalName property: The user principal name.

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:

the activeDirectoryUsername value.

applicationType

public ApplicationType applicationType()

Get the applicationType property: Application type of application.

Returns:

the applicationType value.

createTime

public OffsetDateTime createTime()

Get the createTime property: The timestamp of the user session create.

Returns:

the createTime value.

fromJson

public static UserSessionInner fromJson(JsonReader jsonReader)

Reads an instance of UserSessionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UserSessionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

UserSessionInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

UserSessionInner.name()

Returns:

the name value.

objectId

public String objectId()

Get the objectId property: ObjectId of user session. (internal use).

Returns:

the objectId value.

sessionState

public SessionState sessionState()

Get the sessionState property: State of user session.

Returns:

the sessionState value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

UserSessionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

UserSessionInner.type()

Returns:

the type value.

userPrincipalName

public String userPrincipalName()

Get the userPrincipalName property: The user principal name.

Returns:

the userPrincipalName value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

Applies to