Class TimeOff.Builder
- java.lang.Object
-
- com.stackone.stackone_client_java.models.components.TimeOff.Builder
-
- Enclosing class:
- TimeOff
public static final class TimeOff.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TimeOff.BuilderapproverId(java.lang.String approverId)The approver IDTimeOff.BuilderapproverId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> approverId)The approver IDTimeOffbuild()TimeOff.Buildercomment(java.lang.String comment)Allows users to provide additional context or notes for their time off requestTimeOff.Buildercomment(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> comment)Allows users to provide additional context or notes for their time off requestTimeOff.BuildercreatedDate(java.time.OffsetDateTime createdDate)The created date of the time off requestTimeOff.BuildercreatedDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdDate)The created date of the time off requestTimeOff.Builderduration(java.lang.String duration)The duration of the time off requestTimeOff.Builderduration(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> duration)The duration of the time off requestTimeOff.BuilderemployeeId(java.lang.String employeeId)The employee IDTimeOff.BuilderemployeeId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> employeeId)The employee IDTimeOff.BuilderendDate(java.lang.String endDate)Inclusive end date of the time off request (ISO8601 date-time without timezone).TimeOff.BuilderendDate(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> endDate)Inclusive end date of the time off request (ISO8601 date-time without timezone).TimeOff.BuilderendHalfDay(EndHalfDay endHalfDay)True if the end of the time off request ends half way through the dayTimeOff.BuilderendHalfDay(org.openapitools.jackson.nullable.JsonNullable<? extends EndHalfDay> endHalfDay)True if the end of the time off request ends half way through the dayTimeOff.Builderid(java.lang.String id)Unique identifierTimeOff.Builderid(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)Unique identifierTimeOff.Builderpolicy(Policy policy)The time off policy associated with Time OffTimeOff.Builderpolicy(org.openapitools.jackson.nullable.JsonNullable<? extends Policy> policy)The time off policy associated with Time OffTimeOff.Builderreason(TimeOffReason reason)TimeOff.Builderreason(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffReason> reason)TimeOff.BuilderremoteApproverId(java.lang.String remoteApproverId)Provider's unique identifier of the approverTimeOff.BuilderremoteApproverId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteApproverId)Provider's unique identifier of the approverTimeOff.BuilderremoteEmployeeId(java.lang.String remoteEmployeeId)Provider's unique identifier of the employeeTimeOff.BuilderremoteEmployeeId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteEmployeeId)Provider's unique identifier of the employeeTimeOff.BuilderremoteId(java.lang.String remoteId)Provider's unique identifierTimeOff.BuilderremoteId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId)Provider's unique identifierTimeOff.BuilderremoteTimeOffPolicyId(java.lang.String remoteTimeOffPolicyId)Provider's unique identifier of the time off policy id associated with this time off requestTimeOff.BuilderremoteTimeOffPolicyId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteTimeOffPolicyId)Provider's unique identifier of the time off policy id associated with this time off requestTimeOff.BuilderstartDate(java.lang.String startDate)The start date of the time off request (ISO8601 date-time without timezone)TimeOff.BuilderstartDate(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> startDate)The start date of the time off request (ISO8601 date-time without timezone)TimeOff.BuilderstartHalfDay(StartHalfDay startHalfDay)True if the start of the time off request begins half way through the dayTimeOff.BuilderstartHalfDay(org.openapitools.jackson.nullable.JsonNullable<? extends StartHalfDay> startHalfDay)True if the start of the time off request begins half way through the dayTimeOff.Builderstatus(TimeOffStatus status)The status of the time off requestTimeOff.Builderstatus(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffStatus> status)The status of the time off requestTimeOff.BuildertimeOffPolicyId(java.lang.String timeOffPolicyId)The time off policy id associated with this time off requestTimeOff.BuildertimeOffPolicyId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> timeOffPolicyId)The time off policy id associated with this time off requestTimeOff.Buildertype(TimeOffType type)Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.TimeOff.Buildertype(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffType> type)Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.TimeOff.BuilderupdatedDate(java.time.OffsetDateTime updatedDate)The updated date of the time off requestTimeOff.BuilderupdatedDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedDate)The updated date of the time off request
-
-
-
Method Detail
-
id
public TimeOff.Builder id(java.lang.String id)
Unique identifier
-
id
public TimeOff.Builder id(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)
Unique identifier
-
remoteId
public TimeOff.Builder remoteId(java.lang.String remoteId)
Provider's unique identifier
-
remoteId
public TimeOff.Builder remoteId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId)
Provider's unique identifier
-
employeeId
public TimeOff.Builder employeeId(java.lang.String employeeId)
The employee ID
-
employeeId
public TimeOff.Builder employeeId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> employeeId)
The employee ID
-
remoteEmployeeId
public TimeOff.Builder remoteEmployeeId(java.lang.String remoteEmployeeId)
Provider's unique identifier of the employee
-
remoteEmployeeId
public TimeOff.Builder remoteEmployeeId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteEmployeeId)
Provider's unique identifier of the employee
-
approverId
public TimeOff.Builder approverId(java.lang.String approverId)
The approver ID
-
approverId
public TimeOff.Builder approverId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> approverId)
The approver ID
-
remoteApproverId
public TimeOff.Builder remoteApproverId(java.lang.String remoteApproverId)
Provider's unique identifier of the approver
-
remoteApproverId
public TimeOff.Builder remoteApproverId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteApproverId)
Provider's unique identifier of the approver
-
status
public TimeOff.Builder status(TimeOffStatus status)
The status of the time off request
-
status
public TimeOff.Builder status(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffStatus> status)
The status of the time off request
-
type
@Deprecated public TimeOff.Builder type(TimeOffType type)
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The type of the time off request
-
type
@Deprecated public TimeOff.Builder type(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffType> type)
Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.The type of the time off request
-
startDate
public TimeOff.Builder startDate(java.lang.String startDate)
The start date of the time off request (ISO8601 date-time without timezone)
-
startDate
public TimeOff.Builder startDate(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> startDate)
The start date of the time off request (ISO8601 date-time without timezone)
-
endDate
public TimeOff.Builder endDate(java.lang.String endDate)
Inclusive end date of the time off request (ISO8601 date-time without timezone). The time off includes this day
-
endDate
public TimeOff.Builder endDate(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> endDate)
Inclusive end date of the time off request (ISO8601 date-time without timezone). The time off includes this day
-
startHalfDay
public TimeOff.Builder startHalfDay(StartHalfDay startHalfDay)
True if the start of the time off request begins half way through the day
-
startHalfDay
public TimeOff.Builder startHalfDay(org.openapitools.jackson.nullable.JsonNullable<? extends StartHalfDay> startHalfDay)
True if the start of the time off request begins half way through the day
-
endHalfDay
public TimeOff.Builder endHalfDay(EndHalfDay endHalfDay)
True if the end of the time off request ends half way through the day
-
endHalfDay
public TimeOff.Builder endHalfDay(org.openapitools.jackson.nullable.JsonNullable<? extends EndHalfDay> endHalfDay)
True if the end of the time off request ends half way through the day
-
duration
public TimeOff.Builder duration(java.lang.String duration)
The duration of the time off request
-
duration
public TimeOff.Builder duration(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> duration)
The duration of the time off request
-
timeOffPolicyId
public TimeOff.Builder timeOffPolicyId(java.lang.String timeOffPolicyId)
The time off policy id associated with this time off request
-
timeOffPolicyId
public TimeOff.Builder timeOffPolicyId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> timeOffPolicyId)
The time off policy id associated with this time off request
-
remoteTimeOffPolicyId
public TimeOff.Builder remoteTimeOffPolicyId(java.lang.String remoteTimeOffPolicyId)
Provider's unique identifier of the time off policy id associated with this time off request
-
remoteTimeOffPolicyId
public TimeOff.Builder remoteTimeOffPolicyId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteTimeOffPolicyId)
Provider's unique identifier of the time off policy id associated with this time off request
-
reason
public TimeOff.Builder reason(TimeOffReason reason)
-
reason
public TimeOff.Builder reason(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffReason> reason)
-
createdDate
public TimeOff.Builder createdDate(java.time.OffsetDateTime createdDate)
The created date of the time off request
-
createdDate
public TimeOff.Builder createdDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdDate)
The created date of the time off request
-
updatedDate
public TimeOff.Builder updatedDate(java.time.OffsetDateTime updatedDate)
The updated date of the time off request
-
updatedDate
public TimeOff.Builder updatedDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedDate)
The updated date of the time off request
-
policy
public TimeOff.Builder policy(Policy policy)
The time off policy associated with Time Off
-
policy
public TimeOff.Builder policy(org.openapitools.jackson.nullable.JsonNullable<? extends Policy> policy)
The time off policy associated with Time Off
-
comment
public TimeOff.Builder comment(java.lang.String comment)
Allows users to provide additional context or notes for their time off request
-
comment
public TimeOff.Builder comment(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> comment)
Allows users to provide additional context or notes for their time off request
-
build
public TimeOff build()
-
-