Package odata.msgraph.client.beta.entity
Class ChangeTrackedEntity
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ChangeTrackedEntity
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
OpenShift,ScheduleChangeRequest,SchedulingGroup,Shift,ShiftPreferences,TimeCard,TimeOff,TimeOffReason,WorkforceIntegration
public class ChangeTrackedEntity extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Field Summary
Fields Modifier and Type Field Description protected IdentitySetcreatedByprotected OffsetDateTimecreatedDateTimeprotected IdentitySetlastModifiedByprotected OffsetDateTimelastModifiedDateTime-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChangeTrackedEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<IdentitySet>getCreatedBy()Optional<OffsetDateTime>getCreatedDateTime()Org.OData.Core.V1.ComputedOptional<IdentitySet>getLastModifiedBy()Org.OData.Core.V1.ComputedOptional<OffsetDateTime>getLastModifiedDateTime()Org.OData.Core.V1.Computedcom.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ChangeTrackedEntitypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ChangeTrackedEntityput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnstageForDeletion()StringtoString()ChangeTrackedEntitywithCreatedBy(IdentitySet createdBy)ChangeTrackedEntitywithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.ChangeTrackedEntitywithLastModifiedBy(IdentitySet lastModifiedBy)Returns an immutable copy ofthiswith just thelastModifiedByfield changed.ChangeTrackedEntitywithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.ChangeTrackedEntitywithUnmappedField(String name, String value)
-
-
-
Field Detail
-
createdBy
protected IdentitySet createdBy
-
createdDateTime
protected OffsetDateTime createdDateTime
-
lastModifiedBy
protected IdentitySet lastModifiedBy
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getCreatedBy
public Optional<IdentitySet> getCreatedBy()
-
withCreatedBy
public ChangeTrackedEntity withCreatedBy(IdentitySet createdBy)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
Org.OData.Core.V1.Computed
true
- Returns:
- property createdDateTime
-
withCreatedDateTime
public ChangeTrackedEntity withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getLastModifiedBy
public Optional<IdentitySet> getLastModifiedBy()
Org.OData.Core.V1.Computed
true
- Returns:
- property lastModifiedBy
-
withLastModifiedBy
public ChangeTrackedEntity withLastModifiedBy(IdentitySet lastModifiedBy)
Returns an immutable copy ofthiswith just thelastModifiedByfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
lastModifiedBy- new value oflastModifiedByfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedByfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
Org.OData.Core.V1.Computed
true
- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public ChangeTrackedEntity withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Core.V1.Computed
true
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
withUnmappedField
public ChangeTrackedEntity withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public ChangeTrackedEntity patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public ChangeTrackedEntity put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
stageForDeletion
public com.github.davidmoten.odata.client.ActionRequestNoReturn stageForDeletion()
-
-