Class BuCreateTimeOffPlanRequest

java.lang.Object
com.mypurecloud.sdk.v2.model.BuCreateTimeOffPlanRequest
All Implemented Interfaces:
Serializable

public class BuCreateTimeOffPlanRequest extends Object implements Serializable
BuCreateTimeOffPlanRequest
See Also:
  • Constructor Details

    • BuCreateTimeOffPlanRequest

      public BuCreateTimeOffPlanRequest()
    • BuCreateTimeOffPlanRequest

      public BuCreateTimeOffPlanRequest(Boolean initWithEmptyList)
  • Method Details

    • name

      public BuCreateTimeOffPlanRequest name(String name)
      The name of this time-off plan
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • activityCodeIds

      public BuCreateTimeOffPlanRequest activityCodeIds(List<String> activityCodeIds)
      The IDs of activity codes to associate with this time-off plan
    • getActivityCodeIds

      public List<String> getActivityCodeIds()
    • setActivityCodeIds

      public void setActivityCodeIds(List<String> activityCodeIds)
    • autoApprovalRule

      Auto approval rule for this time-off plan. Default is Never
    • getAutoApprovalRule

    • setAutoApprovalRule

      public void setAutoApprovalRule(BuCreateTimeOffPlanRequest.AutoApprovalRuleEnum autoApprovalRule)
    • daysBeforeStartToExpireFromWaitlist

      public BuCreateTimeOffPlanRequest daysBeforeStartToExpireFromWaitlist(Integer daysBeforeStartToExpireFromWaitlist)
      The number of days before the time-off request start date for when the request will be expired from the waitlist. Default is 0
    • getDaysBeforeStartToExpireFromWaitlist

      public Integer getDaysBeforeStartToExpireFromWaitlist()
    • setDaysBeforeStartToExpireFromWaitlist

      public void setDaysBeforeStartToExpireFromWaitlist(Integer daysBeforeStartToExpireFromWaitlist)
    • autoPublishApprovedTimeOffRequests

      public BuCreateTimeOffPlanRequest autoPublishApprovedTimeOffRequests(Boolean autoPublishApprovedTimeOffRequests)
      Whether newly approved time-off requests with activity codes associated with this time-off plan should be automatically published to the schedule
    • getAutoPublishApprovedTimeOffRequests

      public Boolean getAutoPublishApprovedTimeOffRequests()
    • setAutoPublishApprovedTimeOffRequests

      public void setAutoPublishApprovedTimeOffRequests(Boolean autoPublishApprovedTimeOffRequests)
    • restrictedActivityCodeIds

      public BuCreateTimeOffPlanRequest restrictedActivityCodeIds(List<String> restrictedActivityCodeIds)
      The IDs of non time-off activity codes to check for conflicts in case the auto approval rule specifies checking activity codes. If these activity codes are present in schedule and overlap with the time-off request duration, the request will not be auto approved
    • getRestrictedActivityCodeIds

      public List<String> getRestrictedActivityCodeIds()
    • setRestrictedActivityCodeIds

      public void setRestrictedActivityCodeIds(List<String> restrictedActivityCodeIds)
    • overrideDates

      public BuCreateTimeOffPlanRequest overrideDates(List<OverrideDate> overrideDates)
      A list of override dates to check for conflicts with time-off request dates. If a conflict is found, the request will not be auto-approved
    • getOverrideDates

      public List<OverrideDate> getOverrideDates()
    • setOverrideDates

      public void setOverrideDates(List<OverrideDate> overrideDates)
    • hrisTimeOffType

      public BuCreateTimeOffPlanRequest hrisTimeOffType(HrisTimeOffType hrisTimeOffType)
      Time-off type, if this time-off plan is associated with the integration
    • getHrisTimeOffType

      public HrisTimeOffType getHrisTimeOffType()
    • setHrisTimeOffType

      public void setHrisTimeOffType(HrisTimeOffType hrisTimeOffType)
    • enabled

      public BuCreateTimeOffPlanRequest enabled(Boolean enabled)
      Whether this time-off plan should be used by agents. Default is true
    • getEnabled

      public Boolean getEnabled()
    • setEnabled

      public void setEnabled(Boolean enabled)
    • countAgainstTimeOffLimits

      public BuCreateTimeOffPlanRequest countAgainstTimeOffLimits(Boolean countAgainstTimeOffLimits)
      Whether this time-off plan should count against time-off limits. Default is false
    • getCountAgainstTimeOffLimits

      public Boolean getCountAgainstTimeOffLimits()
    • setCountAgainstTimeOffLimits

      public void setCountAgainstTimeOffLimits(Boolean countAgainstTimeOffLimits)
    • businessUnitAssociation

      public BuCreateTimeOffPlanRequest businessUnitAssociation(CreateTimeOffPlanBusinessUnitAssociation businessUnitAssociation)
      Business unit association, if the time-off plan belongs to a business unit. managementUnitAssociation must not be set if this is populated
    • getBusinessUnitAssociation

      public CreateTimeOffPlanBusinessUnitAssociation getBusinessUnitAssociation()
    • setBusinessUnitAssociation

      public void setBusinessUnitAssociation(CreateTimeOffPlanBusinessUnitAssociation businessUnitAssociation)
    • managementUnitAssociation

      public BuCreateTimeOffPlanRequest managementUnitAssociation(CreateTimeOffPlanManagementUnitAssociation managementUnitAssociation)
      Management unit association, if the time-off plan belongs to a management unit. businessUnitAssociation must not be set if this is populated
    • getManagementUnitAssociation

      public CreateTimeOffPlanManagementUnitAssociation getManagementUnitAssociation()
    • setManagementUnitAssociation

      public void setManagementUnitAssociation(CreateTimeOffPlanManagementUnitAssociation managementUnitAssociation)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object