Share via


MicrosoftGraphTimeOffItem Class

public final class MicrosoftGraphTimeOffItem
extends MicrosoftGraphScheduleEntity

Represents a time off item.

Constructor Summary

Constructor Description
MicrosoftGraphTimeOffItem()

Creates an instance of MicrosoftGraphTimeOffItem class.

Method Summary

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

Get the additionalProperties property: timeOffItem.

static MicrosoftGraphTimeOffItem fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeOffItem from the JsonReader.

String timeOffReasonId()

Get the timeOffReasonId property: ID of the timeOffReason for this timeOffItem.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphTimeOffItem withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: timeOffItem.

MicrosoftGraphTimeOffItem withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The endDateTime property.

MicrosoftGraphTimeOffItem withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The startDateTime property.

MicrosoftGraphTimeOffItem withTheme(MicrosoftGraphScheduleEntityTheme theme)

Set the theme property: scheduleEntityTheme.

MicrosoftGraphTimeOffItem withTimeOffReasonId(String timeOffReasonId)

Set the timeOffReasonId property: ID of the timeOffReason for this timeOffItem.

Methods inherited from MicrosoftGraphScheduleEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTimeOffItem

public MicrosoftGraphTimeOffItem()

Creates an instance of MicrosoftGraphTimeOffItem class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: timeOffItem.

Overrides:

MicrosoftGraphTimeOffItem.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphTimeOffItem fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeOffItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

timeOffReasonId

public String timeOffReasonId()

Get the timeOffReasonId property: ID of the timeOffReason for this timeOffItem. Required.

Returns:

the timeOffReasonId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTimeOffItem.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTimeOffItem.validate()

withAdditionalProperties

public MicrosoftGraphTimeOffItem withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: timeOffItem.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTimeOffItem object itself.

withEndDateTime

public MicrosoftGraphTimeOffItem withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime property: The endDateTime property.

Overrides:

MicrosoftGraphTimeOffItem.withEndDateTime(OffsetDateTime endDateTime)

Parameters:

endDateTime

withStartDateTime

public MicrosoftGraphTimeOffItem withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: The startDateTime property.

Overrides:

MicrosoftGraphTimeOffItem.withStartDateTime(OffsetDateTime startDateTime)

Parameters:

startDateTime

withTheme

public MicrosoftGraphTimeOffItem withTheme(MicrosoftGraphScheduleEntityTheme theme)

Set the theme property: scheduleEntityTheme.

Overrides:

MicrosoftGraphTimeOffItem.withTheme(MicrosoftGraphScheduleEntityTheme theme)

Parameters:

theme

withTimeOffReasonId

public MicrosoftGraphTimeOffItem withTimeOffReasonId(String timeOffReasonId)

Set the timeOffReasonId property: ID of the timeOffReason for this timeOffItem. Required.

Parameters:

timeOffReasonId - the timeOffReasonId value to set.

Returns:

the MicrosoftGraphTimeOffItem object itself.

Applies to