MicrosoftGraphSwapShiftsChangeRequest Class

public final class MicrosoftGraphSwapShiftsChangeRequest
extends MicrosoftGraphOfferShiftRequest

swapShiftsChangeRequest.

Constructor Summary

Constructor Description
MicrosoftGraphSwapShiftsChangeRequest()

Creates an instance of MicrosoftGraphSwapShiftsChangeRequest class.

Method Summary

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

Get the additionalProperties property: swapShiftsChangeRequest.

static MicrosoftGraphSwapShiftsChangeRequest fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphSwapShiftsChangeRequest from the JsonReader.

String recipientShiftId()

Get the recipientShiftId property: ShiftId for the recipient user with whom the request is to swap.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphSwapShiftsChangeRequest withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: swapShiftsChangeRequest.

MicrosoftGraphSwapShiftsChangeRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Set the assignedTo property: scheduleChangeRequestActor.

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

MicrosoftGraphSwapShiftsChangeRequest withId(String id)

Set the id property: Read-only.

MicrosoftGraphSwapShiftsChangeRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

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

MicrosoftGraphSwapShiftsChangeRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Set the managerActionDateTime property: The managerActionDateTime property.

MicrosoftGraphSwapShiftsChangeRequest withManagerActionMessage(String managerActionMessage)

Set the managerActionMessage property: The managerActionMessage property.

MicrosoftGraphSwapShiftsChangeRequest withManagerUserId(String managerUserId)

Set the managerUserId property: The managerUserId property.

MicrosoftGraphSwapShiftsChangeRequest withRecipientActionDateTime(OffsetDateTime recipientActionDateTime)

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

MicrosoftGraphSwapShiftsChangeRequest withRecipientActionMessage(String recipientActionMessage)

Set the recipientActionMessage property: Custom message sent by recipient of the offer shift request.

MicrosoftGraphSwapShiftsChangeRequest withRecipientShiftId(String recipientShiftId)

Set the recipientShiftId property: ShiftId for the recipient user with whom the request is to swap.

MicrosoftGraphSwapShiftsChangeRequest withRecipientUserId(String recipientUserId)

Set the recipientUserId property: User ID of the recipient of the offer shift request.

MicrosoftGraphSwapShiftsChangeRequest withSenderDateTime(OffsetDateTime senderDateTime)

Set the senderDateTime property: The senderDateTime property.

MicrosoftGraphSwapShiftsChangeRequest withSenderMessage(String senderMessage)

Set the senderMessage property: The senderMessage property.

MicrosoftGraphSwapShiftsChangeRequest withSenderShiftId(String senderShiftId)

Set the senderShiftId property: User ID of the sender of the offer shift request.

MicrosoftGraphSwapShiftsChangeRequest withSenderUserId(String senderUserId)

Set the senderUserId property: The senderUserId property.

MicrosoftGraphSwapShiftsChangeRequest withState(MicrosoftGraphScheduleChangeState state)

Set the state property: scheduleChangeState.

Methods inherited from MicrosoftGraphChangeTrackedEntity

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from MicrosoftGraphOfferShiftRequest

Methods inherited from MicrosoftGraphScheduleChangeRequest

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphSwapShiftsChangeRequest

public MicrosoftGraphSwapShiftsChangeRequest()

Creates an instance of MicrosoftGraphSwapShiftsChangeRequest class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: swapShiftsChangeRequest.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphSwapShiftsChangeRequest fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphSwapShiftsChangeRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

recipientShiftId

public String recipientShiftId()

Get the recipientShiftId property: ShiftId for the recipient user with whom the request is to swap.

Returns:

the recipientShiftId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.validate()

withAdditionalProperties

public MicrosoftGraphSwapShiftsChangeRequest withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: swapShiftsChangeRequest.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphSwapShiftsChangeRequest object itself.

withAssignedTo

public MicrosoftGraphSwapShiftsChangeRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Set the assignedTo property: scheduleChangeRequestActor.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Parameters:

assignedTo

withCreatedDateTime

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

MicrosoftGraphSwapShiftsChangeRequest.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withId

public MicrosoftGraphSwapShiftsChangeRequest withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withId(String id)

Parameters:

id

withLastModifiedBy

public MicrosoftGraphSwapShiftsChangeRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedDateTime

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

MicrosoftGraphSwapShiftsChangeRequest.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withManagerActionDateTime

public MicrosoftGraphSwapShiftsChangeRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Set the managerActionDateTime property: The managerActionDateTime property.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Parameters:

managerActionDateTime

withManagerActionMessage

public MicrosoftGraphSwapShiftsChangeRequest withManagerActionMessage(String managerActionMessage)

Set the managerActionMessage property: The managerActionMessage property.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withManagerActionMessage(String managerActionMessage)

Parameters:

managerActionMessage

withManagerUserId

public MicrosoftGraphSwapShiftsChangeRequest withManagerUserId(String managerUserId)

Set the managerUserId property: The managerUserId property.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withManagerUserId(String managerUserId)

Parameters:

managerUserId

withRecipientActionDateTime

public MicrosoftGraphSwapShiftsChangeRequest withRecipientActionDateTime(OffsetDateTime recipientActionDateTime)

Set the recipientActionDateTime 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:

MicrosoftGraphSwapShiftsChangeRequest.withRecipientActionDateTime(OffsetDateTime recipientActionDateTime)

Parameters:

recipientActionDateTime

withRecipientActionMessage

public MicrosoftGraphSwapShiftsChangeRequest withRecipientActionMessage(String recipientActionMessage)

Set the recipientActionMessage property: Custom message sent by recipient of the offer shift request.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withRecipientActionMessage(String recipientActionMessage)

Parameters:

recipientActionMessage

withRecipientShiftId

public MicrosoftGraphSwapShiftsChangeRequest withRecipientShiftId(String recipientShiftId)

Set the recipientShiftId property: ShiftId for the recipient user with whom the request is to swap.

Parameters:

recipientShiftId - the recipientShiftId value to set.

Returns:

the MicrosoftGraphSwapShiftsChangeRequest object itself.

withRecipientUserId

public MicrosoftGraphSwapShiftsChangeRequest withRecipientUserId(String recipientUserId)

Set the recipientUserId property: User ID of the recipient of the offer shift request.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withRecipientUserId(String recipientUserId)

Parameters:

recipientUserId

withSenderDateTime

public MicrosoftGraphSwapShiftsChangeRequest withSenderDateTime(OffsetDateTime senderDateTime)

Set the senderDateTime property: The senderDateTime property.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withSenderDateTime(OffsetDateTime senderDateTime)

Parameters:

senderDateTime

withSenderMessage

public MicrosoftGraphSwapShiftsChangeRequest withSenderMessage(String senderMessage)

Set the senderMessage property: The senderMessage property.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withSenderMessage(String senderMessage)

Parameters:

senderMessage

withSenderShiftId

public MicrosoftGraphSwapShiftsChangeRequest withSenderShiftId(String senderShiftId)

Set the senderShiftId property: User ID of the sender of the offer shift request.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withSenderShiftId(String senderShiftId)

Parameters:

senderShiftId

withSenderUserId

public MicrosoftGraphSwapShiftsChangeRequest withSenderUserId(String senderUserId)

Set the senderUserId property: The senderUserId property.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withSenderUserId(String senderUserId)

Parameters:

senderUserId

withState

public MicrosoftGraphSwapShiftsChangeRequest withState(MicrosoftGraphScheduleChangeState state)

Set the state property: scheduleChangeState.

Overrides:

MicrosoftGraphSwapShiftsChangeRequest.withState(MicrosoftGraphScheduleChangeState state)

Parameters:

state

Applies to