MicrosoftGraphTimeOff Class

public final class MicrosoftGraphTimeOff
extends MicrosoftGraphChangeTrackedEntity

timeOff.

Constructor Summary

Constructor Description
MicrosoftGraphTimeOff()

Creates an instance of MicrosoftGraphTimeOff class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: timeOff.

MicrosoftGraphTimeOffItem draftTimeOff()

Get the draftTimeOff property: timeOffItem.

static MicrosoftGraphTimeOff fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeOff from the JsonReader.

MicrosoftGraphTimeOffItem sharedTimeOff()

Get the sharedTimeOff property: timeOffItem.

JsonWriter toJson(JsonWriter jsonWriter)
String userId()

Get the userId property: ID of the user assigned to the timeOff.

void validate()

Validates the instance.

MicrosoftGraphTimeOff withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: timeOff.

MicrosoftGraphTimeOff withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphTimeOff withDraftTimeOff(MicrosoftGraphTimeOffItem draftTimeOff)

Set the draftTimeOff property: timeOffItem.

MicrosoftGraphTimeOff withId(String id)

Set the id property: Read-only.

MicrosoftGraphTimeOff withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

MicrosoftGraphTimeOff withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphTimeOff withSharedTimeOff(MicrosoftGraphTimeOffItem sharedTimeOff)

Set the sharedTimeOff property: timeOffItem.

MicrosoftGraphTimeOff withUserId(String userId)

Set the userId property: ID of the user assigned to the timeOff.

Methods inherited from MicrosoftGraphChangeTrackedEntity

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTimeOff

public MicrosoftGraphTimeOff()

Creates an instance of MicrosoftGraphTimeOff class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: timeOff.

Overrides:

MicrosoftGraphTimeOff.additionalProperties()

Returns:

the additionalProperties value.

draftTimeOff

public MicrosoftGraphTimeOffItem draftTimeOff()

Get the draftTimeOff property: timeOffItem.

Returns:

the draftTimeOff value.

fromJson

public static MicrosoftGraphTimeOff fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeOff from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphTimeOff 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 MicrosoftGraphTimeOff.

sharedTimeOff

public MicrosoftGraphTimeOffItem sharedTimeOff()

Get the sharedTimeOff property: timeOffItem.

Returns:

the sharedTimeOff value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTimeOff.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

userId

public String userId()

Get the userId property: ID of the user assigned to the timeOff. Required.

Returns:

the userId value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTimeOff.validate()

withAdditionalProperties

public MicrosoftGraphTimeOff withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: timeOff.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTimeOff object itself.

withCreatedDateTime

public MicrosoftGraphTimeOff withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Overrides:

MicrosoftGraphTimeOff.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withDraftTimeOff

public MicrosoftGraphTimeOff withDraftTimeOff(MicrosoftGraphTimeOffItem draftTimeOff)

Set the draftTimeOff property: timeOffItem.

Parameters:

draftTimeOff - the draftTimeOff value to set.

Returns:

the MicrosoftGraphTimeOff object itself.

withId

public MicrosoftGraphTimeOff withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphTimeOff.withId(String id)

Parameters:

id

withLastModifiedBy

public MicrosoftGraphTimeOff withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphTimeOff.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedDateTime

public MicrosoftGraphTimeOff withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Overrides:

MicrosoftGraphTimeOff.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withSharedTimeOff

public MicrosoftGraphTimeOff withSharedTimeOff(MicrosoftGraphTimeOffItem sharedTimeOff)

Set the sharedTimeOff property: timeOffItem.

Parameters:

sharedTimeOff - the sharedTimeOff value to set.

Returns:

the MicrosoftGraphTimeOff object itself.

withUserId

public MicrosoftGraphTimeOff withUserId(String userId)

Set the userId property: ID of the user assigned to the timeOff. Required.

Parameters:

userId - the userId value to set.

Returns:

the MicrosoftGraphTimeOff object itself.

Applies to