Class ScheduleChangeRequest

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel
Direct Known Subclasses:
OfferShiftRequest, OpenShiftChangeRequest, TimeOffRequest

@Generated("com.microsoft.kiota") public class ScheduleChangeRequest extends ChangeTrackedEntity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • ScheduleChangeRequest

      public ScheduleChangeRequest()
      Instantiates a new ScheduleChangeRequest and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static ScheduleChangeRequest createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a ScheduleChangeRequest
    • getAssignedTo

      @Nullable public ScheduleChangeRequestActor getAssignedTo()
      Gets the assignedTo property value. Indicates who the request is assigned to. Possible values are: sender, recipient, manager, system, unknownFutureValue.
      Returns:
      a ScheduleChangeRequestActor
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class ChangeTrackedEntity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getManagerActionDateTime

      @Nullable public OffsetDateTime getManagerActionDateTime()
      Gets the managerActionDateTime property value. The date and time when the manager approved or declined the scheduleChangeRequest. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getManagerActionMessage

      @Nullable public String getManagerActionMessage()
      Gets the managerActionMessage property value. The message sent by the manager regarding the scheduleChangeRequest. Optional.
      Returns:
      a String
    • getManagerUserId

      @Nullable public String getManagerUserId()
      Gets the managerUserId property value. The user ID of the manager who approved or declined the scheduleChangeRequest.
      Returns:
      a String
    • getSenderDateTime

      @Nullable public OffsetDateTime getSenderDateTime()
      Gets the senderDateTime property value. The date and time when the sender sent the scheduleChangeRequest. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getSenderMessage

      @Nullable public String getSenderMessage()
      Gets the senderMessage property value. The message sent by the sender of the scheduleChangeRequest. Optional.
      Returns:
      a String
    • getSenderUserId

      @Nullable public String getSenderUserId()
      Gets the senderUserId property value. The user ID of the sender of the scheduleChangeRequest.
      Returns:
      a String
    • getState

      @Nullable public ScheduleChangeState getState()
      Gets the state property value. The state of the scheduleChangeRequest. Possible values are: pending, approved, declined, unknownFutureValue.
      Returns:
      a ScheduleChangeState
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class ChangeTrackedEntity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAssignedTo

      public void setAssignedTo(@Nullable ScheduleChangeRequestActor value)
      Sets the assignedTo property value. Indicates who the request is assigned to. Possible values are: sender, recipient, manager, system, unknownFutureValue.
      Parameters:
      value - Value to set for the assignedTo property.
    • setManagerActionDateTime

      public void setManagerActionDateTime(@Nullable OffsetDateTime value)
      Sets the managerActionDateTime property value. The date and time when the manager approved or declined the scheduleChangeRequest. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the managerActionDateTime property.
    • setManagerActionMessage

      public void setManagerActionMessage(@Nullable String value)
      Sets the managerActionMessage property value. The message sent by the manager regarding the scheduleChangeRequest. Optional.
      Parameters:
      value - Value to set for the managerActionMessage property.
    • setManagerUserId

      public void setManagerUserId(@Nullable String value)
      Sets the managerUserId property value. The user ID of the manager who approved or declined the scheduleChangeRequest.
      Parameters:
      value - Value to set for the managerUserId property.
    • setSenderDateTime

      public void setSenderDateTime(@Nullable OffsetDateTime value)
      Sets the senderDateTime property value. The date and time when the sender sent the scheduleChangeRequest. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the senderDateTime property.
    • setSenderMessage

      public void setSenderMessage(@Nullable String value)
      Sets the senderMessage property value. The message sent by the sender of the scheduleChangeRequest. Optional.
      Parameters:
      value - Value to set for the senderMessage property.
    • setSenderUserId

      public void setSenderUserId(@Nullable String value)
      Sets the senderUserId property value. The user ID of the sender of the scheduleChangeRequest.
      Parameters:
      value - Value to set for the senderUserId property.
    • setState

      public void setState(@Nullable ScheduleChangeState value)
      Sets the state property value. The state of the scheduleChangeRequest. Possible values are: pending, approved, declined, unknownFutureValue.
      Parameters:
      value - Value to set for the state property.