Class WorkforceIntegration

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

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

    • WorkforceIntegration

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

    • createFromDiscriminatorValue

      @Nonnull public static WorkforceIntegration 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 WorkforceIntegration
    • getApiVersion

      @Nullable public Integer getApiVersion()
      Gets the apiVersion property value. API version for the callback URL. Start with 1.
      Returns:
      a Integer
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Name of the workforce integration.
      Returns:
      a String
    • getEligibilityFilteringEnabledEntities

      @Nullable public EnumSet<EligibilityFilteringEnabledEntities> getEligibilityFilteringEnabledEntities()
      Gets the eligibilityFilteringEnabledEntities property value. Support to view eligibility-filtered results. Possible values are: none, swapRequest, offerShiftRequest, unknownFutureValue, timeOffReason. Use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: timeOffReason.
      Returns:
      a EnumSet<EligibilityFilteringEnabledEntities>
    • getEncryption

      @Nullable public WorkforceIntegrationEncryption getEncryption()
      Gets the encryption property value. The workforce integration encryption resource.
      Returns:
      a WorkforceIntegrationEncryption
    • 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>>
    • getIsActive

      @Nullable public Boolean getIsActive()
      Gets the isActive property value. Indicates whether this workforce integration is currently active and available.
      Returns:
      a Boolean
    • getSupportedEntities

      @Nullable public EnumSet<WorkforceIntegrationSupportedEntities> getSupportedEntities()
      Gets the supportedEntities property value. The Shifts entities supported for synchronous change notifications. Shifts call back to the provided URL when client changes occur to the entities specified in this property. By default, no entities are supported for change notifications. Possible values are: none, shift, swapRequest, userShiftPreferences, openShift, openShiftRequest, offerShiftRequest, unknownFutureValue, timeCard, timeOffReason, timeOff, timeOffRequest. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: timeCard , timeOffReason , timeOff , timeOffRequest.
      Returns:
      a EnumSet<WorkforceIntegrationSupportedEntities>
    • getUrl

      @Nullable public String getUrl()
      Gets the url property value. Workforce Integration URL for callbacks from the Shifts service.
      Returns:
      a String
    • 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
    • setApiVersion

      public void setApiVersion(@Nullable Integer value)
      Sets the apiVersion property value. API version for the callback URL. Start with 1.
      Parameters:
      value - Value to set for the apiVersion property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Name of the workforce integration.
      Parameters:
      value - Value to set for the displayName property.
    • setEligibilityFilteringEnabledEntities

      public void setEligibilityFilteringEnabledEntities(@Nullable EnumSet<EligibilityFilteringEnabledEntities> value)
      Sets the eligibilityFilteringEnabledEntities property value. Support to view eligibility-filtered results. Possible values are: none, swapRequest, offerShiftRequest, unknownFutureValue, timeOffReason. Use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: timeOffReason.
      Parameters:
      value - Value to set for the eligibilityFilteringEnabledEntities property.
    • setEncryption

      public void setEncryption(@Nullable WorkforceIntegrationEncryption value)
      Sets the encryption property value. The workforce integration encryption resource.
      Parameters:
      value - Value to set for the encryption property.
    • setIsActive

      public void setIsActive(@Nullable Boolean value)
      Sets the isActive property value. Indicates whether this workforce integration is currently active and available.
      Parameters:
      value - Value to set for the isActive property.
    • setSupportedEntities

      public void setSupportedEntities(@Nullable EnumSet<WorkforceIntegrationSupportedEntities> value)
      Sets the supportedEntities property value. The Shifts entities supported for synchronous change notifications. Shifts call back to the provided URL when client changes occur to the entities specified in this property. By default, no entities are supported for change notifications. Possible values are: none, shift, swapRequest, userShiftPreferences, openShift, openShiftRequest, offerShiftRequest, unknownFutureValue, timeCard, timeOffReason, timeOff, timeOffRequest. Use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: timeCard , timeOffReason , timeOff , timeOffRequest.
      Parameters:
      value - Value to set for the supportedEntities property.
    • setUrl

      public void setUrl(@Nullable String value)
      Sets the url property value. Workforce Integration URL for callbacks from the Shifts service.
      Parameters:
      value - Value to set for the url property.