Class TimeOff
- java.lang.Object
-
- com.stackone.stackone_client_java.models.components.TimeOff
-
public class TimeOff extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeOff.Builder
-
Constructor Summary
Constructors Constructor Description TimeOff()TimeOff(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> employeeId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteEmployeeId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> approverId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteApproverId, org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffStatus> status, org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffType> type, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> startDate, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> endDate, org.openapitools.jackson.nullable.JsonNullable<? extends StartHalfDay> startHalfDay, org.openapitools.jackson.nullable.JsonNullable<? extends EndHalfDay> endHalfDay, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> duration, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> timeOffPolicyId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteTimeOffPolicyId, org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffReason> reason, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdDate, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedDate, org.openapitools.jackson.nullable.JsonNullable<? extends Policy> policy, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> comment)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.openapitools.jackson.nullable.JsonNullable<java.lang.String>approverId()The approver IDstatic TimeOff.Builderbuilder()org.openapitools.jackson.nullable.JsonNullable<java.lang.String>comment()Allows users to provide additional context or notes for their time off requestorg.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime>createdDate()The created date of the time off requestorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>duration()The duration of the time off requestorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>employeeId()The employee IDorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>endDate()Inclusive end date of the time off request (ISO8601 date-time without timezone).org.openapitools.jackson.nullable.JsonNullable<EndHalfDay>endHalfDay()True if the end of the time off request ends half way through the daybooleanequals(java.lang.Object o)inthashCode()org.openapitools.jackson.nullable.JsonNullable<java.lang.String>id()Unique identifierorg.openapitools.jackson.nullable.JsonNullable<Policy>policy()The time off policy associated with Time Offorg.openapitools.jackson.nullable.JsonNullable<TimeOffReason>reason()org.openapitools.jackson.nullable.JsonNullable<java.lang.String>remoteApproverId()Provider's unique identifier of the approverorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>remoteEmployeeId()Provider's unique identifier of the employeeorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>remoteId()Provider's unique identifierorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>remoteTimeOffPolicyId()Provider's unique identifier of the time off policy id associated with this time off requestorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>startDate()The start date of the time off request (ISO8601 date-time without timezone)org.openapitools.jackson.nullable.JsonNullable<StartHalfDay>startHalfDay()True if the start of the time off request begins half way through the dayorg.openapitools.jackson.nullable.JsonNullable<TimeOffStatus>status()The status of the time off requestorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>timeOffPolicyId()The time off policy id associated with this time off requestjava.lang.StringtoString()org.openapitools.jackson.nullable.JsonNullable<TimeOffType>type()Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime>updatedDate()The updated date of the time off requestTimeOffwithApproverId(java.lang.String approverId)The approver IDTimeOffwithApproverId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> approverId)The approver IDTimeOffwithComment(java.lang.String comment)Allows users to provide additional context or notes for their time off requestTimeOffwithComment(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> comment)Allows users to provide additional context or notes for their time off requestTimeOffwithCreatedDate(java.time.OffsetDateTime createdDate)The created date of the time off requestTimeOffwithCreatedDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdDate)The created date of the time off requestTimeOffwithDuration(java.lang.String duration)The duration of the time off requestTimeOffwithDuration(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> duration)The duration of the time off requestTimeOffwithEmployeeId(java.lang.String employeeId)The employee IDTimeOffwithEmployeeId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> employeeId)The employee IDTimeOffwithEndDate(java.lang.String endDate)Inclusive end date of the time off request (ISO8601 date-time without timezone).TimeOffwithEndDate(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> endDate)Inclusive end date of the time off request (ISO8601 date-time without timezone).TimeOffwithEndHalfDay(EndHalfDay endHalfDay)True if the end of the time off request ends half way through the dayTimeOffwithEndHalfDay(org.openapitools.jackson.nullable.JsonNullable<? extends EndHalfDay> endHalfDay)True if the end of the time off request ends half way through the dayTimeOffwithId(java.lang.String id)Unique identifierTimeOffwithId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)Unique identifierTimeOffwithPolicy(Policy policy)The time off policy associated with Time OffTimeOffwithPolicy(org.openapitools.jackson.nullable.JsonNullable<? extends Policy> policy)The time off policy associated with Time OffTimeOffwithReason(TimeOffReason reason)TimeOffwithReason(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffReason> reason)TimeOffwithRemoteApproverId(java.lang.String remoteApproverId)Provider's unique identifier of the approverTimeOffwithRemoteApproverId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteApproverId)Provider's unique identifier of the approverTimeOffwithRemoteEmployeeId(java.lang.String remoteEmployeeId)Provider's unique identifier of the employeeTimeOffwithRemoteEmployeeId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteEmployeeId)Provider's unique identifier of the employeeTimeOffwithRemoteId(java.lang.String remoteId)Provider's unique identifierTimeOffwithRemoteId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId)Provider's unique identifierTimeOffwithRemoteTimeOffPolicyId(java.lang.String remoteTimeOffPolicyId)Provider's unique identifier of the time off policy id associated with this time off requestTimeOffwithRemoteTimeOffPolicyId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteTimeOffPolicyId)Provider's unique identifier of the time off policy id associated with this time off requestTimeOffwithStartDate(java.lang.String startDate)The start date of the time off request (ISO8601 date-time without timezone)TimeOffwithStartDate(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> startDate)The start date of the time off request (ISO8601 date-time without timezone)TimeOffwithStartHalfDay(StartHalfDay startHalfDay)True if the start of the time off request begins half way through the dayTimeOffwithStartHalfDay(org.openapitools.jackson.nullable.JsonNullable<? extends StartHalfDay> startHalfDay)True if the start of the time off request begins half way through the dayTimeOffwithStatus(TimeOffStatus status)The status of the time off requestTimeOffwithStatus(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffStatus> status)The status of the time off requestTimeOffwithTimeOffPolicyId(java.lang.String timeOffPolicyId)The time off policy id associated with this time off requestTimeOffwithTimeOffPolicyId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> timeOffPolicyId)The time off policy id associated with this time off requestTimeOffwithType(TimeOffType type)Deprecated.field: This will be removed in a future release, please migrate away from it as soon as possible.TimeOffwithType(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.TimeOffwithUpdatedDate(java.time.OffsetDateTime updatedDate)The updated date of the time off requestTimeOffwithUpdatedDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedDate)The updated date of the time off request
-
-
-
Constructor Detail
-
TimeOff
public TimeOff(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> employeeId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteEmployeeId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> approverId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteApproverId, org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffStatus> status, org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffType> type, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> startDate, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> endDate, org.openapitools.jackson.nullable.JsonNullable<? extends StartHalfDay> startHalfDay, org.openapitools.jackson.nullable.JsonNullable<? extends EndHalfDay> endHalfDay, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> duration, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> timeOffPolicyId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteTimeOffPolicyId, org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffReason> reason, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdDate, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedDate, org.openapitools.jackson.nullable.JsonNullable<? extends Policy> policy, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> comment)
-
TimeOff
public TimeOff()
-
-
Method Detail
-
id
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id()
Unique identifier
-
remoteId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId()
Provider's unique identifier
-
employeeId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> employeeId()
The employee ID
-
remoteEmployeeId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteEmployeeId()
Provider's unique identifier of the employee
-
approverId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> approverId()
The approver ID
-
remoteApproverId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteApproverId()
Provider's unique identifier of the approver
-
status
public org.openapitools.jackson.nullable.JsonNullable<TimeOffStatus> status()
The status of the time off request
-
type
@Deprecated public org.openapitools.jackson.nullable.JsonNullable<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 org.openapitools.jackson.nullable.JsonNullable<java.lang.String> startDate()
The start date of the time off request (ISO8601 date-time without timezone)
-
endDate
public 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 org.openapitools.jackson.nullable.JsonNullable<StartHalfDay> startHalfDay()
True if the start of the time off request begins half way through the day
-
endHalfDay
public org.openapitools.jackson.nullable.JsonNullable<EndHalfDay> endHalfDay()
True if the end of the time off request ends half way through the day
-
duration
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> duration()
The duration of the time off request
-
timeOffPolicyId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> timeOffPolicyId()
The time off policy id associated with this time off request
-
remoteTimeOffPolicyId
public 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 org.openapitools.jackson.nullable.JsonNullable<TimeOffReason> reason()
-
createdDate
public org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdDate()
The created date of the time off request
-
updatedDate
public org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedDate()
The updated date of the time off request
-
policy
public org.openapitools.jackson.nullable.JsonNullable<Policy> policy()
The time off policy associated with Time Off
-
comment
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> comment()
Allows users to provide additional context or notes for their time off request
-
builder
public static final TimeOff.Builder builder()
-
withId
public TimeOff withId(java.lang.String id)
Unique identifier
-
withId
public TimeOff withId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)
Unique identifier
-
withRemoteId
public TimeOff withRemoteId(java.lang.String remoteId)
Provider's unique identifier
-
withRemoteId
public TimeOff withRemoteId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId)
Provider's unique identifier
-
withEmployeeId
public TimeOff withEmployeeId(java.lang.String employeeId)
The employee ID
-
withEmployeeId
public TimeOff withEmployeeId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> employeeId)
The employee ID
-
withRemoteEmployeeId
public TimeOff withRemoteEmployeeId(java.lang.String remoteEmployeeId)
Provider's unique identifier of the employee
-
withRemoteEmployeeId
public TimeOff withRemoteEmployeeId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteEmployeeId)
Provider's unique identifier of the employee
-
withApproverId
public TimeOff withApproverId(java.lang.String approverId)
The approver ID
-
withApproverId
public TimeOff withApproverId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> approverId)
The approver ID
-
withRemoteApproverId
public TimeOff withRemoteApproverId(java.lang.String remoteApproverId)
Provider's unique identifier of the approver
-
withRemoteApproverId
public TimeOff withRemoteApproverId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteApproverId)
Provider's unique identifier of the approver
-
withStatus
public TimeOff withStatus(TimeOffStatus status)
The status of the time off request
-
withStatus
public TimeOff withStatus(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffStatus> status)
The status of the time off request
-
withType
@Deprecated public TimeOff withType(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
-
withType
@Deprecated public TimeOff withType(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
-
withStartDate
public TimeOff withStartDate(java.lang.String startDate)
The start date of the time off request (ISO8601 date-time without timezone)
-
withStartDate
public TimeOff withStartDate(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> startDate)
The start date of the time off request (ISO8601 date-time without timezone)
-
withEndDate
public TimeOff withEndDate(java.lang.String endDate)
Inclusive end date of the time off request (ISO8601 date-time without timezone). The time off includes this day
-
withEndDate
public TimeOff withEndDate(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
-
withStartHalfDay
public TimeOff withStartHalfDay(StartHalfDay startHalfDay)
True if the start of the time off request begins half way through the day
-
withStartHalfDay
public TimeOff withStartHalfDay(org.openapitools.jackson.nullable.JsonNullable<? extends StartHalfDay> startHalfDay)
True if the start of the time off request begins half way through the day
-
withEndHalfDay
public TimeOff withEndHalfDay(EndHalfDay endHalfDay)
True if the end of the time off request ends half way through the day
-
withEndHalfDay
public TimeOff withEndHalfDay(org.openapitools.jackson.nullable.JsonNullable<? extends EndHalfDay> endHalfDay)
True if the end of the time off request ends half way through the day
-
withDuration
public TimeOff withDuration(java.lang.String duration)
The duration of the time off request
-
withDuration
public TimeOff withDuration(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> duration)
The duration of the time off request
-
withTimeOffPolicyId
public TimeOff withTimeOffPolicyId(java.lang.String timeOffPolicyId)
The time off policy id associated with this time off request
-
withTimeOffPolicyId
public TimeOff withTimeOffPolicyId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> timeOffPolicyId)
The time off policy id associated with this time off request
-
withRemoteTimeOffPolicyId
public TimeOff withRemoteTimeOffPolicyId(java.lang.String remoteTimeOffPolicyId)
Provider's unique identifier of the time off policy id associated with this time off request
-
withRemoteTimeOffPolicyId
public TimeOff withRemoteTimeOffPolicyId(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
-
withReason
public TimeOff withReason(TimeOffReason reason)
-
withReason
public TimeOff withReason(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffReason> reason)
-
withCreatedDate
public TimeOff withCreatedDate(java.time.OffsetDateTime createdDate)
The created date of the time off request
-
withCreatedDate
public TimeOff withCreatedDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdDate)
The created date of the time off request
-
withUpdatedDate
public TimeOff withUpdatedDate(java.time.OffsetDateTime updatedDate)
The updated date of the time off request
-
withUpdatedDate
public TimeOff withUpdatedDate(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedDate)
The updated date of the time off request
-
withPolicy
public TimeOff withPolicy(org.openapitools.jackson.nullable.JsonNullable<? extends Policy> policy)
The time off policy associated with Time Off
-
withComment
public TimeOff withComment(java.lang.String comment)
Allows users to provide additional context or notes for their time off request
-
withComment
public TimeOff withComment(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> comment)
Allows users to provide additional context or notes for their time off request
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-