public class TimeOff extends ChangeTrackedEntity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeOff.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected TimeOffItem |
draftTimeOff |
protected Boolean |
isStagedForDeletion |
protected TimeOffItem |
sharedTimeOff |
protected String |
userId |
createdDateTime, lastModifiedBy, lastModifiedDateTimechangedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
TimeOff() |
| Modifier and Type | Method and Description |
|---|---|
static TimeOff.Builder |
builderTimeOff()
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<TimeOffItem> |
getDraftTimeOff() |
Optional<Boolean> |
getIsStagedForDeletion() |
Optional<TimeOffItem> |
getSharedTimeOff() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
Optional<String> |
getUserId() |
String |
odataTypeName() |
TimeOff |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
TimeOff |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
TimeOff |
withDraftTimeOff(TimeOffItem draftTimeOff) |
TimeOff |
withIsStagedForDeletion(Boolean isStagedForDeletion) |
TimeOff |
withSharedTimeOff(TimeOffItem sharedTimeOff) |
TimeOff |
withUserId(String userId) |
getCreatedDateTime, getLastModifiedBy, getLastModifiedDateTime, stageForDeletion, withCreatedDateTime, withLastModifiedBy, withLastModifiedDateTimeprotected TimeOffItem sharedTimeOff
protected TimeOffItem draftTimeOff
protected String userId
protected Boolean isStagedForDeletion
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class ChangeTrackedEntitypublic static TimeOff.Builder builderTimeOff()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class ChangeTrackedEntitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class ChangeTrackedEntitypublic Optional<TimeOffItem> getSharedTimeOff()
public TimeOff withSharedTimeOff(TimeOffItem sharedTimeOff)
public Optional<TimeOffItem> getDraftTimeOff()
public TimeOff withDraftTimeOff(TimeOffItem draftTimeOff)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class ChangeTrackedEntitypublic TimeOff patch()
this with changed fields reset.patch in class ChangeTrackedEntitythis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic TimeOff put()
this
with changed fields reset (they were ignored anyway).put in class ChangeTrackedEntitythis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic String toString()
toString in class ChangeTrackedEntityCopyright © 2018–2020. All rights reserved.