MicrosoftGraphPresence Class

public final class MicrosoftGraphPresence
extends MicrosoftGraphEntity

presence.

Constructor Summary

Constructor Description
MicrosoftGraphPresence()

Creates an instance of MicrosoftGraphPresence class.

Method Summary

Modifier and Type Method and Description
String activity()

Get the activity property: The supplemental information to a user's availability.

Map<String,Object> additionalProperties()

Get the additionalProperties property: presence.

String availability()

Get the availability property: The base presence information for a user.

static MicrosoftGraphPresence fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPresence from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphPresence withActivity(String activity)

Set the activity property: The supplemental information to a user's availability.

MicrosoftGraphPresence withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: presence.

MicrosoftGraphPresence withAvailability(String availability)

Set the availability property: The base presence information for a user.

MicrosoftGraphPresence withId(String id)

Set the id property: Read-only.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPresence

public MicrosoftGraphPresence()

Creates an instance of MicrosoftGraphPresence class.

Method Details

activity

public String activity()

Get the activity property: The supplemental information to a user's availability. Possible values are Available, Away, BeRightBack,Busy, DoNotDisturb, InACall, InAConferenceCall, Inactive,InAMeeting, Offline, OffWork,OutOfOffice, PresenceUnknown,Presenting, UrgentInterruptionsOnly.

Returns:

the activity value.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: presence.

Overrides:

MicrosoftGraphPresence.additionalProperties()

Returns:

the additionalProperties value.

availability

public String availability()

Get the availability property: The base presence information for a user. Possible values are Available, AvailableIdle, Away, BeRightBack, Busy, BusyIdle, DoNotDisturb, Offline, PresenceUnknown.

Returns:

the availability value.

fromJson

public static MicrosoftGraphPresence fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPresence from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphPresence.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphPresence.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphPresence.validate()

withActivity

public MicrosoftGraphPresence withActivity(String activity)

Set the activity property: The supplemental information to a user's availability. Possible values are Available, Away, BeRightBack,Busy, DoNotDisturb, InACall, InAConferenceCall, Inactive,InAMeeting, Offline, OffWork,OutOfOffice, PresenceUnknown,Presenting, UrgentInterruptionsOnly.

Parameters:

activity - the activity value to set.

Returns:

the MicrosoftGraphPresence object itself.

withAdditionalProperties

public MicrosoftGraphPresence withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: presence.

Overrides:

MicrosoftGraphPresence.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPresence object itself.

withAvailability

public MicrosoftGraphPresence withAvailability(String availability)

Set the availability property: The base presence information for a user. Possible values are Available, AvailableIdle, Away, BeRightBack, Busy, BusyIdle, DoNotDisturb, Offline, PresenceUnknown.

Parameters:

availability - the availability value to set.

Returns:

the MicrosoftGraphPresence object itself.

withId

public MicrosoftGraphPresence withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphPresence.withId(String id)

Parameters:

id

Applies to