MicrosoftGraphOfferShiftRequest Class

public class MicrosoftGraphOfferShiftRequest
extends MicrosoftGraphScheduleChangeRequest

offerShiftRequest.

Constructor Summary

Constructor Description
MicrosoftGraphOfferShiftRequest()

Creates an instance of MicrosoftGraphOfferShiftRequest class.

Method Summary

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

Get the additionalProperties property: offerShiftRequest.

static MicrosoftGraphOfferShiftRequest fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOfferShiftRequest from the JsonReader.

OffsetDateTime recipientActionDateTime()

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

String recipientActionMessage()

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

String recipientUserId()

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

String senderShiftId()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphOfferShiftRequest withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: offerShiftRequest.

MicrosoftGraphOfferShiftRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Set the assignedTo property: scheduleChangeRequestActor.

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

MicrosoftGraphOfferShiftRequest withId(String id)

Set the id property: Read-only.

MicrosoftGraphOfferShiftRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

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

MicrosoftGraphOfferShiftRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Set the managerActionDateTime property: The managerActionDateTime property.

MicrosoftGraphOfferShiftRequest withManagerActionMessage(String managerActionMessage)

Set the managerActionMessage property: The managerActionMessage property.

MicrosoftGraphOfferShiftRequest withManagerUserId(String managerUserId)

Set the managerUserId property: The managerUserId property.

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

MicrosoftGraphOfferShiftRequest withRecipientActionMessage(String recipientActionMessage)

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

MicrosoftGraphOfferShiftRequest withRecipientUserId(String recipientUserId)

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

MicrosoftGraphOfferShiftRequest withSenderDateTime(OffsetDateTime senderDateTime)

Set the senderDateTime property: The senderDateTime property.

MicrosoftGraphOfferShiftRequest withSenderMessage(String senderMessage)

Set the senderMessage property: The senderMessage property.

MicrosoftGraphOfferShiftRequest withSenderShiftId(String senderShiftId)

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

MicrosoftGraphOfferShiftRequest withSenderUserId(String senderUserId)

Set the senderUserId property: The senderUserId property.

MicrosoftGraphOfferShiftRequest withState(MicrosoftGraphScheduleChangeState state)

Set the state property: scheduleChangeState.

Methods inherited from MicrosoftGraphChangeTrackedEntity

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from MicrosoftGraphScheduleChangeRequest

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphOfferShiftRequest

public MicrosoftGraphOfferShiftRequest()

Creates an instance of MicrosoftGraphOfferShiftRequest class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: offerShiftRequest.

Overrides:

MicrosoftGraphOfferShiftRequest.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphOfferShiftRequest fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphOfferShiftRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

recipientActionDateTime

public OffsetDateTime recipientActionDateTime()

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

Returns:

the recipientActionDateTime value.

recipientActionMessage

public String recipientActionMessage()

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

Returns:

the recipientActionMessage value.

recipientUserId

public String recipientUserId()

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

Returns:

the recipientUserId value.

senderShiftId

public String senderShiftId()

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

Returns:

the senderShiftId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphOfferShiftRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphOfferShiftRequest.validate()

withAdditionalProperties

public MicrosoftGraphOfferShiftRequest withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: offerShiftRequest.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphOfferShiftRequest object itself.

withAssignedTo

public MicrosoftGraphOfferShiftRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Set the assignedTo property: scheduleChangeRequestActor.

Overrides:

MicrosoftGraphOfferShiftRequest.withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)

Parameters:

assignedTo

withCreatedDateTime

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

MicrosoftGraphOfferShiftRequest.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withId

public MicrosoftGraphOfferShiftRequest withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphOfferShiftRequest.withId(String id)

Parameters:

id

withLastModifiedBy

public MicrosoftGraphOfferShiftRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Set the lastModifiedBy property: identitySet.

Overrides:

MicrosoftGraphOfferShiftRequest.withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)

Parameters:

lastModifiedBy

withLastModifiedDateTime

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

MicrosoftGraphOfferShiftRequest.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withManagerActionDateTime

public MicrosoftGraphOfferShiftRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Set the managerActionDateTime property: The managerActionDateTime property.

Overrides:

MicrosoftGraphOfferShiftRequest.withManagerActionDateTime(OffsetDateTime managerActionDateTime)

Parameters:

managerActionDateTime

withManagerActionMessage

public MicrosoftGraphOfferShiftRequest withManagerActionMessage(String managerActionMessage)

Set the managerActionMessage property: The managerActionMessage property.

Overrides:

MicrosoftGraphOfferShiftRequest.withManagerActionMessage(String managerActionMessage)

Parameters:

managerActionMessage

withManagerUserId

public MicrosoftGraphOfferShiftRequest withManagerUserId(String managerUserId)

Set the managerUserId property: The managerUserId property.

Overrides:

MicrosoftGraphOfferShiftRequest.withManagerUserId(String managerUserId)

Parameters:

managerUserId

withRecipientActionDateTime

public MicrosoftGraphOfferShiftRequest 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'.

Parameters:

recipientActionDateTime - the recipientActionDateTime value to set.

Returns:

the MicrosoftGraphOfferShiftRequest object itself.

withRecipientActionMessage

public MicrosoftGraphOfferShiftRequest withRecipientActionMessage(String recipientActionMessage)

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

Parameters:

recipientActionMessage - the recipientActionMessage value to set.

Returns:

the MicrosoftGraphOfferShiftRequest object itself.

withRecipientUserId

public MicrosoftGraphOfferShiftRequest withRecipientUserId(String recipientUserId)

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

Parameters:

recipientUserId - the recipientUserId value to set.

Returns:

the MicrosoftGraphOfferShiftRequest object itself.

withSenderDateTime

public MicrosoftGraphOfferShiftRequest withSenderDateTime(OffsetDateTime senderDateTime)

Set the senderDateTime property: The senderDateTime property.

Overrides:

MicrosoftGraphOfferShiftRequest.withSenderDateTime(OffsetDateTime senderDateTime)

Parameters:

senderDateTime

withSenderMessage

public MicrosoftGraphOfferShiftRequest withSenderMessage(String senderMessage)

Set the senderMessage property: The senderMessage property.

Overrides:

MicrosoftGraphOfferShiftRequest.withSenderMessage(String senderMessage)

Parameters:

senderMessage

withSenderShiftId

public MicrosoftGraphOfferShiftRequest withSenderShiftId(String senderShiftId)

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

Parameters:

senderShiftId - the senderShiftId value to set.

Returns:

the MicrosoftGraphOfferShiftRequest object itself.

withSenderUserId

public MicrosoftGraphOfferShiftRequest withSenderUserId(String senderUserId)

Set the senderUserId property: The senderUserId property.

Overrides:

MicrosoftGraphOfferShiftRequest.withSenderUserId(String senderUserId)

Parameters:

senderUserId

withState

public MicrosoftGraphOfferShiftRequest withState(MicrosoftGraphScheduleChangeState state)

Set the state property: scheduleChangeState.

Overrides:

MicrosoftGraphOfferShiftRequest.withState(MicrosoftGraphScheduleChangeState state)

Parameters:

state

Applies to