Package com.mypurecloud.sdk.v2.model
Class BuCreateTimeOffPlanRequest
java.lang.Object
com.mypurecloud.sdk.v2.model.BuCreateTimeOffPlanRequest
- All Implemented Interfaces:
Serializable
BuCreateTimeOffPlanRequest
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAuto approval rule for this time-off plan. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivityCodeIds(List<String> activityCodeIds) The IDs of activity codes to associate with this time-off planautoApprovalRule(BuCreateTimeOffPlanRequest.AutoApprovalRuleEnum autoApprovalRule) Auto approval rule for this time-off plan.autoPublishApprovedTimeOffRequests(Boolean autoPublishApprovedTimeOffRequests) Whether newly approved time-off requests with activity codes associated with this time-off plan should be automatically published to the schedulebusinessUnitAssociation(CreateTimeOffPlanBusinessUnitAssociation businessUnitAssociation) Business unit association, if the time-off plan belongs to a business unit. managementUnitAssociation must not be set if this is populatedcountAgainstTimeOffLimits(Boolean countAgainstTimeOffLimits) Whether this time-off plan should count against time-off limits.daysBeforeStartToExpireFromWaitlist(Integer daysBeforeStartToExpireFromWaitlist) The number of days before the time-off request start date for when the request will be expired from the waitlist.Whether this time-off plan should be used by agents.booleangetName()inthashCode()hrisTimeOffType(HrisTimeOffType hrisTimeOffType) Time-off type, if this time-off plan is associated with the integrationmanagementUnitAssociation(CreateTimeOffPlanManagementUnitAssociation managementUnitAssociation) Management unit association, if the time-off plan belongs to a management unit. businessUnitAssociation must not be set if this is populatedThe name of this time-off planoverrideDates(List<OverrideDate> overrideDates) A list of override dates to check for conflicts with time-off request dates.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.voidsetActivityCodeIds(List<String> activityCodeIds) voidsetAutoApprovalRule(BuCreateTimeOffPlanRequest.AutoApprovalRuleEnum autoApprovalRule) voidsetAutoPublishApprovedTimeOffRequests(Boolean autoPublishApprovedTimeOffRequests) voidsetBusinessUnitAssociation(CreateTimeOffPlanBusinessUnitAssociation businessUnitAssociation) voidsetCountAgainstTimeOffLimits(Boolean countAgainstTimeOffLimits) voidsetDaysBeforeStartToExpireFromWaitlist(Integer daysBeforeStartToExpireFromWaitlist) voidsetEnabled(Boolean enabled) voidsetHrisTimeOffType(HrisTimeOffType hrisTimeOffType) voidsetManagementUnitAssociation(CreateTimeOffPlanManagementUnitAssociation managementUnitAssociation) voidvoidsetOverrideDates(List<OverrideDate> overrideDates) voidsetRestrictedActivityCodeIds(List<String> restrictedActivityCodeIds) toString()
-
Constructor Details
-
BuCreateTimeOffPlanRequest
public BuCreateTimeOffPlanRequest() -
BuCreateTimeOffPlanRequest
-
-
Method Details
-
name
The name of this time-off plan -
getName
-
setName
-
activityCodeIds
The IDs of activity codes to associate with this time-off plan -
getActivityCodeIds
-
setActivityCodeIds
-
autoApprovalRule
public BuCreateTimeOffPlanRequest autoApprovalRule(BuCreateTimeOffPlanRequest.AutoApprovalRuleEnum autoApprovalRule) Auto approval rule for this time-off plan. Default is Never -
getAutoApprovalRule
-
setAutoApprovalRule
-
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
-
setDaysBeforeStartToExpireFromWaitlist
-
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
-
setAutoPublishApprovedTimeOffRequests
-
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
-
setRestrictedActivityCodeIds
-
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
-
setOverrideDates
-
hrisTimeOffType
Time-off type, if this time-off plan is associated with the integration -
getHrisTimeOffType
-
setHrisTimeOffType
-
enabled
Whether this time-off plan should be used by agents. Default is true -
getEnabled
-
setEnabled
-
countAgainstTimeOffLimits
Whether this time-off plan should count against time-off limits. Default is false -
getCountAgainstTimeOffLimits
-
setCountAgainstTimeOffLimits
-
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
-
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
-
setManagementUnitAssociation
public void setManagementUnitAssociation(CreateTimeOffPlanManagementUnitAssociation managementUnitAssociation) -
equals
-
hashCode
public int hashCode() -
toString
-