MicrosoftGraphTimeOffRequest Class

public final class MicrosoftGraphTimeOffRequest
extends MicrosoftGraphScheduleChangeRequest

timeOffRequest.

Constructor Summary

Constructor Description
MicrosoftGraphTimeOffRequest()

Creates an instance of MicrosoftGraphTimeOffRequest class.

Method Summary

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

Get the additionalProperties property: timeOffRequest.

OffsetDateTime endDateTime()

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

static MicrosoftGraphTimeOffRequest fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeOffRequest from the JsonReader.

OffsetDateTime startDateTime()

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

String timeOffReasonId()

Get the timeOffReasonId property: The reason for the time off.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphTimeOffRequest withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: timeOffRequest.

MicrosoftGraphTimeOffRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Set the assignedTo property: scheduleChangeRequestActor.

MicrosoftGraphTimeOffRequest 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.

MicrosoftGraphTimeOffRequest withEndDateTime(OffsetDateTime endDateTime)

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

MicrosoftGraphTimeOffRequest withId(String id)

Set the id property: Read-only.

MicrosoftGraphTimeOffRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

MicrosoftGraphTimeOffRequest 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.

MicrosoftGraphTimeOffRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Set the managerActionDateTime property: The managerActionDateTime property.

MicrosoftGraphTimeOffRequest withManagerActionMessage(String managerActionMessage)

Set the managerActionMessage property: The managerActionMessage property.

MicrosoftGraphTimeOffRequest withManagerUserId(String managerUserId)

Set the managerUserId property: The managerUserId property.

MicrosoftGraphTimeOffRequest withSenderDateTime(OffsetDateTime senderDateTime)

Set the senderDateTime property: The senderDateTime property.

MicrosoftGraphTimeOffRequest withSenderMessage(String senderMessage)

Set the senderMessage property: The senderMessage property.

MicrosoftGraphTimeOffRequest withSenderUserId(String senderUserId)

Set the senderUserId property: The senderUserId property.

MicrosoftGraphTimeOffRequest withStartDateTime(OffsetDateTime startDateTime)

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

MicrosoftGraphTimeOffRequest withState(MicrosoftGraphScheduleChangeState state)

Set the state property: scheduleChangeState.

MicrosoftGraphTimeOffRequest withTimeOffReasonId(String timeOffReasonId)

Set the timeOffReasonId property: The reason for the time off.

Methods inherited from MicrosoftGraphChangeTrackedEntity

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from MicrosoftGraphScheduleChangeRequest

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTimeOffRequest

public MicrosoftGraphTimeOffRequest()

Creates an instance of MicrosoftGraphTimeOffRequest class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: timeOffRequest.

Overrides:

MicrosoftGraphTimeOffRequest.additionalProperties()

Returns:

the additionalProperties value.

endDateTime

public OffsetDateTime endDateTime()

Get the endDateTime 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'.

Returns:

the endDateTime value.

fromJson

public static MicrosoftGraphTimeOffRequest fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTimeOffRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime 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'.

Returns:

the startDateTime value.

timeOffReasonId

public String timeOffReasonId()

Get the timeOffReasonId property: The reason for the time off.

Returns:

the timeOffReasonId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTimeOffRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTimeOffRequest.validate()

withAdditionalProperties

public MicrosoftGraphTimeOffRequest withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: timeOffRequest.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTimeOffRequest object itself.

withAssignedTo

public MicrosoftGraphTimeOffRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Set the assignedTo property: scheduleChangeRequestActor.

Overrides:

MicrosoftGraphTimeOffRequest.withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Parameters:

assignedTo

withCreatedDateTime

public MicrosoftGraphTimeOffRequest 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:

MicrosoftGraphTimeOffRequest.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withEndDateTime

public MicrosoftGraphTimeOffRequest withEndDateTime(OffsetDateTime endDateTime)

Set the endDateTime 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'.

Parameters:

endDateTime - the endDateTime value to set.

Returns:

the MicrosoftGraphTimeOffRequest object itself.

withId

public MicrosoftGraphTimeOffRequest withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphTimeOffRequest.withId(String id)

Parameters:

id

withLastModifiedBy

public MicrosoftGraphTimeOffRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphTimeOffRequest.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedDateTime

public MicrosoftGraphTimeOffRequest 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:

MicrosoftGraphTimeOffRequest.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withManagerActionDateTime

public MicrosoftGraphTimeOffRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Set the managerActionDateTime property: The managerActionDateTime property.

Overrides:

MicrosoftGraphTimeOffRequest.withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Parameters:

managerActionDateTime

withManagerActionMessage

public MicrosoftGraphTimeOffRequest withManagerActionMessage(String managerActionMessage)

Set the managerActionMessage property: The managerActionMessage property.

Overrides:

MicrosoftGraphTimeOffRequest.withManagerActionMessage(String managerActionMessage)

Parameters:

managerActionMessage

withManagerUserId

public MicrosoftGraphTimeOffRequest withManagerUserId(String managerUserId)

Set the managerUserId property: The managerUserId property.

Overrides:

MicrosoftGraphTimeOffRequest.withManagerUserId(String managerUserId)

Parameters:

managerUserId

withSenderDateTime

public MicrosoftGraphTimeOffRequest withSenderDateTime(OffsetDateTime senderDateTime)

Set the senderDateTime property: The senderDateTime property.

Overrides:

MicrosoftGraphTimeOffRequest.withSenderDateTime(OffsetDateTime senderDateTime)

Parameters:

senderDateTime

withSenderMessage

public MicrosoftGraphTimeOffRequest withSenderMessage(String senderMessage)

Set the senderMessage property: The senderMessage property.

Overrides:

MicrosoftGraphTimeOffRequest.withSenderMessage(String senderMessage)

Parameters:

senderMessage

withSenderUserId

public MicrosoftGraphTimeOffRequest withSenderUserId(String senderUserId)

Set the senderUserId property: The senderUserId property.

Overrides:

MicrosoftGraphTimeOffRequest.withSenderUserId(String senderUserId)

Parameters:

senderUserId

withStartDateTime

public MicrosoftGraphTimeOffRequest withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime 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'.

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the MicrosoftGraphTimeOffRequest object itself.

withState

public MicrosoftGraphTimeOffRequest withState(MicrosoftGraphScheduleChangeState state)

Set the state property: scheduleChangeState.

Overrides:

MicrosoftGraphTimeOffRequest.withState(MicrosoftGraphScheduleChangeState state)

Parameters:

state

withTimeOffReasonId

public MicrosoftGraphTimeOffRequest withTimeOffReasonId(String timeOffReasonId)

Set the timeOffReasonId property: The reason for the time off.

Parameters:

timeOffReasonId - the timeOffReasonId value to set.

Returns:

the MicrosoftGraphTimeOffRequest object itself.

Applies to