Class MicrosoftGraphSwapShiftsChangeRequest
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChangeTrackedEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleChangeRequest
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOfferShiftRequest
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphSwapShiftsChangeRequest
-
public final class MicrosoftGraphSwapShiftsChangeRequest extends MicrosoftGraphOfferShiftRequest
swapShiftsChangeRequest.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphSwapShiftsChangeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: swapShiftsChangeRequest.String
recipientShiftId()
Get the recipientShiftId property: ShiftId for the recipient user with whom the request is to swap.void
validate()
Validates the instance.MicrosoftGraphSwapShiftsChangeRequest
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: swapShiftsChangeRequest.MicrosoftGraphSwapShiftsChangeRequest
withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)
Set the assignedTo property: The assignedTo property.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: The state property.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOfferShiftRequest
recipientActionDateTime, recipientActionMessage, recipientUserId, senderShiftId
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScheduleChangeRequest
assignedTo, managerActionDateTime, managerActionMessage, managerUserId, senderDateTime, senderMessage, senderUserId, state
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChangeTrackedEntity
createdDateTime, lastModifiedBy, lastModifiedDateTime
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
recipientShiftId
public String recipientShiftId()
Get the recipientShiftId property: ShiftId for the recipient user with whom the request is to swap.- Returns:
- the recipientShiftId value.
-
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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: swapShiftsChangeRequest.- Overrides:
additionalProperties
in classMicrosoftGraphOfferShiftRequest
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphSwapShiftsChangeRequest withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: swapShiftsChangeRequest.- Overrides:
withAdditionalProperties
in classMicrosoftGraphOfferShiftRequest
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphSwapShiftsChangeRequest object itself.
-
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:
withRecipientActionDateTime
in classMicrosoftGraphOfferShiftRequest
- Parameters:
recipientActionDateTime
- the recipientActionDateTime value to set.- Returns:
- the MicrosoftGraphOfferShiftRequest object itself.
-
withRecipientActionMessage
public MicrosoftGraphSwapShiftsChangeRequest withRecipientActionMessage(String recipientActionMessage)
Set the recipientActionMessage property: Custom message sent by recipient of the offer shift request.- Overrides:
withRecipientActionMessage
in classMicrosoftGraphOfferShiftRequest
- Parameters:
recipientActionMessage
- the recipientActionMessage value to set.- Returns:
- the MicrosoftGraphOfferShiftRequest object itself.
-
withRecipientUserId
public MicrosoftGraphSwapShiftsChangeRequest withRecipientUserId(String recipientUserId)
Set the recipientUserId property: User ID of the recipient of the offer shift request.- Overrides:
withRecipientUserId
in classMicrosoftGraphOfferShiftRequest
- Parameters:
recipientUserId
- the recipientUserId value to set.- Returns:
- the MicrosoftGraphOfferShiftRequest object itself.
-
withSenderShiftId
public MicrosoftGraphSwapShiftsChangeRequest withSenderShiftId(String senderShiftId)
Set the senderShiftId property: User ID of the sender of the offer shift request.- Overrides:
withSenderShiftId
in classMicrosoftGraphOfferShiftRequest
- Parameters:
senderShiftId
- the senderShiftId value to set.- Returns:
- the MicrosoftGraphOfferShiftRequest object itself.
-
withAssignedTo
public MicrosoftGraphSwapShiftsChangeRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)
Set the assignedTo property: The assignedTo property.- Overrides:
withAssignedTo
in classMicrosoftGraphOfferShiftRequest
- Parameters:
assignedTo
- the assignedTo value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerActionDateTime
public MicrosoftGraphSwapShiftsChangeRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)
Set the managerActionDateTime property: The managerActionDateTime property.- Overrides:
withManagerActionDateTime
in classMicrosoftGraphOfferShiftRequest
- Parameters:
managerActionDateTime
- the managerActionDateTime value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerActionMessage
public MicrosoftGraphSwapShiftsChangeRequest withManagerActionMessage(String managerActionMessage)
Set the managerActionMessage property: The managerActionMessage property.- Overrides:
withManagerActionMessage
in classMicrosoftGraphOfferShiftRequest
- Parameters:
managerActionMessage
- the managerActionMessage value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerUserId
public MicrosoftGraphSwapShiftsChangeRequest withManagerUserId(String managerUserId)
Set the managerUserId property: The managerUserId property.- Overrides:
withManagerUserId
in classMicrosoftGraphOfferShiftRequest
- Parameters:
managerUserId
- the managerUserId value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderDateTime
public MicrosoftGraphSwapShiftsChangeRequest withSenderDateTime(OffsetDateTime senderDateTime)
Set the senderDateTime property: The senderDateTime property.- Overrides:
withSenderDateTime
in classMicrosoftGraphOfferShiftRequest
- Parameters:
senderDateTime
- the senderDateTime value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderMessage
public MicrosoftGraphSwapShiftsChangeRequest withSenderMessage(String senderMessage)
Set the senderMessage property: The senderMessage property.- Overrides:
withSenderMessage
in classMicrosoftGraphOfferShiftRequest
- Parameters:
senderMessage
- the senderMessage value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderUserId
public MicrosoftGraphSwapShiftsChangeRequest withSenderUserId(String senderUserId)
Set the senderUserId property: The senderUserId property.- Overrides:
withSenderUserId
in classMicrosoftGraphOfferShiftRequest
- Parameters:
senderUserId
- the senderUserId value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withState
public MicrosoftGraphSwapShiftsChangeRequest withState(MicrosoftGraphScheduleChangeState state)
Set the state property: The state property.- Overrides:
withState
in classMicrosoftGraphOfferShiftRequest
- Parameters:
state
- the state value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
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:
withCreatedDateTime
in classMicrosoftGraphOfferShiftRequest
- Parameters:
createdDateTime
- the createdDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedBy
public MicrosoftGraphSwapShiftsChangeRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.- Overrides:
withLastModifiedBy
in classMicrosoftGraphOfferShiftRequest
- Parameters:
lastModifiedBy
- the lastModifiedBy value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
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:
withLastModifiedDateTime
in classMicrosoftGraphOfferShiftRequest
- Parameters:
lastModifiedDateTime
- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withId
public MicrosoftGraphSwapShiftsChangeRequest withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphOfferShiftRequest
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphOfferShiftRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-