Class OpenShift

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

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

    • OpenShift

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

    • createFromDiscriminatorValue

      @Nonnull public static OpenShift 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 OpenShift
    • getDraftOpenShift

      @Nullable public OpenShiftItem getDraftOpenShift()
      Gets the draftOpenShift property value. Draft changes in the openShift are only visible to managers until they're shared.
      Returns:
      a OpenShiftItem
    • 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>>
    • getIsStagedForDeletion

      @Nullable public Boolean getIsStagedForDeletion()
      Gets the isStagedForDeletion property value. The openShift is marked for deletion, a process that is finalized when the schedule is shared.
      Returns:
      a Boolean
    • getSchedulingGroupId

      @Nullable public String getSchedulingGroupId()
      Gets the schedulingGroupId property value. The ID of the schedulingGroup that contains the openShift.
      Returns:
      a String
    • getSharedOpenShift

      @Nullable public OpenShiftItem getSharedOpenShift()
      Gets the sharedOpenShift property value. The shared version of this openShift that is viewable by both employees and managers.
      Returns:
      a OpenShiftItem
    • 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
    • setDraftOpenShift

      public void setDraftOpenShift(@Nullable OpenShiftItem value)
      Sets the draftOpenShift property value. Draft changes in the openShift are only visible to managers until they're shared.
      Parameters:
      value - Value to set for the draftOpenShift property.
    • setIsStagedForDeletion

      public void setIsStagedForDeletion(@Nullable Boolean value)
      Sets the isStagedForDeletion property value. The openShift is marked for deletion, a process that is finalized when the schedule is shared.
      Parameters:
      value - Value to set for the isStagedForDeletion property.
    • setSchedulingGroupId

      public void setSchedulingGroupId(@Nullable String value)
      Sets the schedulingGroupId property value. The ID of the schedulingGroup that contains the openShift.
      Parameters:
      value - Value to set for the schedulingGroupId property.
    • setSharedOpenShift

      public void setSharedOpenShift(@Nullable OpenShiftItem value)
      Sets the sharedOpenShift property value. The shared version of this openShift that is viewable by both employees and managers.
      Parameters:
      value - Value to set for the sharedOpenShift property.