Class MicrosoftGraphOfferShiftRequest
- 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
-
- Direct Known Subclasses:
MicrosoftGraphSwapShiftsChangeRequest
public class MicrosoftGraphOfferShiftRequest extends MicrosoftGraphScheduleChangeRequest
offerShiftRequest.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphOfferShiftRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: offerShiftRequest.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.void
validate()
Validates the instance.MicrosoftGraphOfferShiftRequest
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: offerShiftRequest.MicrosoftGraphOfferShiftRequest
withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)
Set the assignedTo property: The assignedTo property.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: The state property.-
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
-
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.
-
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.
-
recipientActionMessage
public String recipientActionMessage()
Get the recipientActionMessage property: Custom message sent by recipient of the offer shift request.- Returns:
- the recipientActionMessage value.
-
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.
-
recipientUserId
public String recipientUserId()
Get the recipientUserId property: User ID of the recipient of the offer shift request.- Returns:
- the recipientUserId value.
-
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.
-
senderShiftId
public String senderShiftId()
Get the senderShiftId property: User ID of the sender of the offer shift request.- Returns:
- the senderShiftId value.
-
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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: offerShiftRequest.- Overrides:
additionalProperties
in classMicrosoftGraphScheduleChangeRequest
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphOfferShiftRequest withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: offerShiftRequest.- Overrides:
withAdditionalProperties
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphOfferShiftRequest object itself.
-
withAssignedTo
public MicrosoftGraphOfferShiftRequest withAssignedTo(MicrosoftGraphScheduleChangeRequestActor assignedTo)
Set the assignedTo property: The assignedTo property.- Overrides:
withAssignedTo
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
assignedTo
- the assignedTo value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerActionDateTime
public MicrosoftGraphOfferShiftRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)
Set the managerActionDateTime property: The managerActionDateTime property.- Overrides:
withManagerActionDateTime
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
managerActionDateTime
- the managerActionDateTime value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerActionMessage
public MicrosoftGraphOfferShiftRequest withManagerActionMessage(String managerActionMessage)
Set the managerActionMessage property: The managerActionMessage property.- Overrides:
withManagerActionMessage
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
managerActionMessage
- the managerActionMessage value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withManagerUserId
public MicrosoftGraphOfferShiftRequest withManagerUserId(String managerUserId)
Set the managerUserId property: The managerUserId property.- Overrides:
withManagerUserId
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
managerUserId
- the managerUserId value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderDateTime
public MicrosoftGraphOfferShiftRequest withSenderDateTime(OffsetDateTime senderDateTime)
Set the senderDateTime property: The senderDateTime property.- Overrides:
withSenderDateTime
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
senderDateTime
- the senderDateTime value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderMessage
public MicrosoftGraphOfferShiftRequest withSenderMessage(String senderMessage)
Set the senderMessage property: The senderMessage property.- Overrides:
withSenderMessage
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
senderMessage
- the senderMessage value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withSenderUserId
public MicrosoftGraphOfferShiftRequest withSenderUserId(String senderUserId)
Set the senderUserId property: The senderUserId property.- Overrides:
withSenderUserId
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
senderUserId
- the senderUserId value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
withState
public MicrosoftGraphOfferShiftRequest withState(MicrosoftGraphScheduleChangeState state)
Set the state property: The state property.- Overrides:
withState
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
state
- the state value to set.- Returns:
- the MicrosoftGraphScheduleChangeRequest object itself.
-
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:
withCreatedDateTime
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
createdDateTime
- the createdDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withLastModifiedBy
public MicrosoftGraphOfferShiftRequest withLastModifiedBy(MicrosoftGraphIdentitySet lastModifiedBy)
Set the lastModifiedBy property: identitySet.- Overrides:
withLastModifiedBy
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
lastModifiedBy
- the lastModifiedBy value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
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:
withLastModifiedDateTime
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
lastModifiedDateTime
- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphChangeTrackedEntity object itself.
-
withId
public MicrosoftGraphOfferShiftRequest withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphScheduleChangeRequest
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphScheduleChangeRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-