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.StringrecipientShiftId()Get the recipientShiftId property: ShiftId for the recipient user with whom the request is to swap.voidvalidate()Validates the instance.MicrosoftGraphSwapShiftsChangeRequestwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: swapShiftsChangeRequest.MicrosoftGraphSwapShiftsChangeRequestwithAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)Set the assignedTo property: The assignedTo property.MicrosoftGraphSwapShiftsChangeRequestwithCreatedDateTime(OffsetDateTime createdDateTime)Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphSwapShiftsChangeRequestwithId(String id)Set the id property: Read-only.MicrosoftGraphSwapShiftsChangeRequestwithLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)Set the lastModifiedBy property: identitySet.MicrosoftGraphSwapShiftsChangeRequestwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphSwapShiftsChangeRequestwithManagerActionDateTime(OffsetDateTime managerActionDateTime)Set the managerActionDateTime property: The managerActionDateTime property.MicrosoftGraphSwapShiftsChangeRequestwithManagerActionMessage(String managerActionMessage)Set the managerActionMessage property: The managerActionMessage property.MicrosoftGraphSwapShiftsChangeRequestwithManagerUserId(String managerUserId)Set the managerUserId property: The managerUserId property.MicrosoftGraphSwapShiftsChangeRequestwithRecipientActionDateTime(OffsetDateTime recipientActionDateTime)Set the recipientActionDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphSwapShiftsChangeRequestwithRecipientActionMessage(String recipientActionMessage)Set the recipientActionMessage property: Custom message sent by recipient of the offer shift request.MicrosoftGraphSwapShiftsChangeRequestwithRecipientShiftId(String recipientShiftId)Set the recipientShiftId property: ShiftId for the recipient user with whom the request is to swap.MicrosoftGraphSwapShiftsChangeRequestwithRecipientUserId(String recipientUserId)Set the recipientUserId property: User ID of the recipient of the offer shift request.MicrosoftGraphSwapShiftsChangeRequestwithSenderDateTime(OffsetDateTime senderDateTime)Set the senderDateTime property: The senderDateTime property.MicrosoftGraphSwapShiftsChangeRequestwithSenderMessage(String senderMessage)Set the senderMessage property: The senderMessage property.MicrosoftGraphSwapShiftsChangeRequestwithSenderShiftId(String senderShiftId)Set the senderShiftId property: User ID of the sender of the offer shift request.MicrosoftGraphSwapShiftsChangeRequestwithSenderUserId(String senderUserId)Set the senderUserId property: The senderUserId property.MicrosoftGraphSwapShiftsChangeRequestwithState(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:
additionalPropertiesin classMicrosoftGraphOfferShiftRequest- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphSwapShiftsChangeRequest withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: swapShiftsChangeRequest.- Overrides:
withAdditionalPropertiesin 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:
withRecipientActionDateTimein 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:
withRecipientActionMessagein 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:
withRecipientUserIdin 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:
withSenderShiftIdin 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:
withAssignedToin 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:
withManagerActionDateTimein 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:
withManagerActionMessagein 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:
withManagerUserIdin 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:
withSenderDateTimein 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:
withSenderMessagein 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:
withSenderUserIdin 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:
withStatein 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:
withCreatedDateTimein 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:
withLastModifiedByin 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:
withLastModifiedDateTimein 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:
withIdin classMicrosoftGraphOfferShiftRequest- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphOfferShiftRequest- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-