public class TimeOffRequest extends ScheduleChangeRequest implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeOffRequest.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
endDateTime |
protected OffsetDateTime |
startDateTime |
protected String |
timeOffReasonId |
assignedTo, managerActionDateTime, managerActionMessage, managerUserId, senderDateTime, senderMessage, senderUserId, statecreatedDateTime, lastModifiedBy, lastModifiedDateTimechangedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
TimeOffRequest() |
| Modifier and Type | Method and Description |
|---|---|
static TimeOffRequest.Builder |
builderTimeOffRequest()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<OffsetDateTime> |
getEndDateTime() |
Optional<OffsetDateTime> |
getStartDateTime() |
Optional<String> |
getTimeOffReasonId() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
TimeOffRequest |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
TimeOffRequest |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
TimeOffRequest |
withEndDateTime(OffsetDateTime endDateTime) |
TimeOffRequest |
withStartDateTime(OffsetDateTime startDateTime) |
TimeOffRequest |
withTimeOffReasonId(String timeOffReasonId) |
approve, decline, getAssignedTo, getManagerActionDateTime, getManagerActionMessage, getManagerUserId, getSenderDateTime, getSenderMessage, getSenderUserId, getState, withAssignedTo, withManagerActionDateTime, withManagerActionMessage, withManagerUserId, withSenderDateTime, withSenderMessage, withSenderUserId, withStategetCreatedDateTime, getLastModifiedBy, getLastModifiedDateTime, stageForDeletion, withCreatedDateTime, withLastModifiedBy, withLastModifiedDateTimeprotected OffsetDateTime startDateTime
protected OffsetDateTime endDateTime
protected String timeOffReasonId
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class ScheduleChangeRequestpublic static TimeOffRequest.Builder builderTimeOffRequest()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class ScheduleChangeRequestpublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class ScheduleChangeRequestpublic Optional<OffsetDateTime> getStartDateTime()
public TimeOffRequest withStartDateTime(OffsetDateTime startDateTime)
public Optional<OffsetDateTime> getEndDateTime()
public TimeOffRequest withEndDateTime(OffsetDateTime endDateTime)
public TimeOffRequest withTimeOffReasonId(String timeOffReasonId)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class ScheduleChangeRequestpublic TimeOffRequest patch()
this with changed fields reset.patch in class ScheduleChangeRequestthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic TimeOffRequest put()
this
with changed fields reset (they were ignored anyway).put in class ScheduleChangeRequestthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic String toString()
toString in class ScheduleChangeRequestCopyright © 2018–2020. All rights reserved.