Package odata.msgraph.client.entity
Class TimeCard
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ChangeTrackedEntity
-
- odata.msgraph.client.entity.TimeCard
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class TimeCard extends ChangeTrackedEntity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeCard.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<TimeCardBreak>breaksprotected StringbreaksNextLinkprotected TimeCardEventclockInEventprotected TimeCardEventclockOutEventprotected ConfirmedByconfirmedByprotected ItemBodynotesprotected TimeCardEntryoriginalEntryprotected TimeCardStatestateprotected StringuserId-
Fields inherited from class odata.msgraph.client.entity.ChangeTrackedEntity
createdBy, createdDateTime, lastModifiedBy, lastModifiedDateTime
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTimeCard()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeCard.BuilderbuilderTimeCard()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.ActionRequestReturningNonCollectionUnwrapped<TimeCard>clockOut(Boolean isAtApprovedLocation, ItemBody notes)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<TimeCard>confirm()com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<TimeCard>endBreak(Boolean isAtApprovedLocation, ItemBody notes)com.github.davidmoten.odata.client.CollectionPage<TimeCardBreak>getBreaks()com.github.davidmoten.odata.client.CollectionPage<TimeCardBreak>getBreaks(com.github.davidmoten.odata.client.HttpRequestOptions options)com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<TimeCardEvent>getClockInEvent()Optional<TimeCardEvent>getClockOutEvent()Optional<ConfirmedBy>getConfirmedBy()Optional<ItemBody>getNotes()Optional<TimeCardEntry>getOriginalEntry()Optional<TimeCardState>getState()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserId()StringodataTypeName()TimeCardpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)TimeCardput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<TimeCard>startBreak(Boolean isAtApprovedLocation, ItemBody notes)StringtoString()TimeCardwithBreaks(List<TimeCardBreak> breaks)TimeCardwithClockInEvent(TimeCardEvent clockInEvent)TimeCardwithClockOutEvent(TimeCardEvent clockOutEvent)TimeCardwithConfirmedBy(ConfirmedBy confirmedBy)TimeCardwithNotes(ItemBody notes)TimeCardwithOriginalEntry(TimeCardEntry originalEntry)TimeCardwithState(TimeCardState state)TimeCardwithUnmappedField(String name, Object value)TimeCardwithUserId(String userId)-
Methods inherited from class odata.msgraph.client.entity.ChangeTrackedEntity
getCreatedBy, getCreatedDateTime, getLastModifiedBy, getLastModifiedDateTime, stageForDeletion, withCreatedBy, withCreatedDateTime, withLastModifiedBy, withLastModifiedDateTime
-
-
-
-
Field Detail
-
breaks
protected List<TimeCardBreak> breaks
-
breaksNextLink
protected String breaksNextLink
-
clockInEvent
protected TimeCardEvent clockInEvent
-
clockOutEvent
protected TimeCardEvent clockOutEvent
-
confirmedBy
protected ConfirmedBy confirmedBy
-
notes
protected ItemBody notes
-
originalEntry
protected TimeCardEntry originalEntry
-
state
protected TimeCardState state
-
userId
protected String userId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classChangeTrackedEntity
-
builderTimeCard
public static TimeCard.Builder builderTimeCard()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classChangeTrackedEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classChangeTrackedEntity
-
getBreaks
public com.github.davidmoten.odata.client.CollectionPage<TimeCardBreak> getBreaks()
-
withBreaks
public TimeCard withBreaks(List<TimeCardBreak> breaks)
-
getBreaks
public com.github.davidmoten.odata.client.CollectionPage<TimeCardBreak> getBreaks(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
getClockInEvent
public Optional<TimeCardEvent> getClockInEvent()
-
withClockInEvent
public TimeCard withClockInEvent(TimeCardEvent clockInEvent)
-
getClockOutEvent
public Optional<TimeCardEvent> getClockOutEvent()
-
withClockOutEvent
public TimeCard withClockOutEvent(TimeCardEvent clockOutEvent)
-
getConfirmedBy
public Optional<ConfirmedBy> getConfirmedBy()
-
withConfirmedBy
public TimeCard withConfirmedBy(ConfirmedBy confirmedBy)
-
getOriginalEntry
public Optional<TimeCardEntry> getOriginalEntry()
-
withOriginalEntry
public TimeCard withOriginalEntry(TimeCardEntry originalEntry)
-
getState
public Optional<TimeCardState> getState()
-
withState
public TimeCard withState(TimeCardState state)
-
withUnmappedField
public TimeCard withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classChangeTrackedEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classChangeTrackedEntity
-
patch
public TimeCard patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classChangeTrackedEntity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public TimeCard put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classChangeTrackedEntity- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
clockOut
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<TimeCard> clockOut(Boolean isAtApprovedLocation, ItemBody notes)
-
confirm
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<TimeCard> confirm()
-
endBreak
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<TimeCard> endBreak(Boolean isAtApprovedLocation, ItemBody notes)
-
startBreak
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<TimeCard> startBreak(Boolean isAtApprovedLocation, ItemBody notes)
-
toString
public String toString()
- Overrides:
toStringin classChangeTrackedEntity
-
-