Package odata.msgraph.client.beta.entity
Class ScheduleChangeRequest
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.ChangeTrackedEntity
-
- odata.msgraph.client.beta.entity.ScheduleChangeRequest
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
OfferShiftRequest,OpenShiftChangeRequest,TimeOffRequest
public class ScheduleChangeRequest extends ChangeTrackedEntity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Field Summary
Fields Modifier and Type Field Description protected ScheduleChangeRequestActorassignedToprotected OffsetDateTimemanagerActionDateTimeprotected StringmanagerActionMessageprotected StringmanagerUserIdprotected OffsetDateTimesenderDateTimeprotected StringsenderMessageprotected StringsenderUserIdprotected ScheduleChangeStatestate-
Fields inherited from class odata.msgraph.client.beta.entity.ChangeTrackedEntity
createdBy, createdDateTime, lastModifiedBy, lastModifiedDateTime
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedScheduleChangeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.ActionRequestNoReturnapprove(String message)com.github.davidmoten.odata.client.ActionRequestNoReturndecline(String message)Optional<ScheduleChangeRequestActor>getAssignedTo()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getManagerActionDateTime()Org.OData.Core.V1.ComputedOptional<String>getManagerActionMessage()Optional<String>getManagerUserId()Org.OData.Core.V1.ComputedOptional<OffsetDateTime>getSenderDateTime()Org.OData.Core.V1.ComputedOptional<String>getSenderMessage()Optional<String>getSenderUserId()Org.OData.Core.V1.ComputedOptional<ScheduleChangeState>getState()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ScheduleChangeRequestpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ScheduleChangeRequestput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ScheduleChangeRequestwithAssignedTo(ScheduleChangeRequestActor assignedTo)ScheduleChangeRequestwithManagerActionDateTime(OffsetDateTime managerActionDateTime)Returns an immutable copy ofthiswith just themanagerActionDateTimefield changed.ScheduleChangeRequestwithManagerActionMessage(String managerActionMessage)ScheduleChangeRequestwithManagerUserId(String managerUserId)Returns an immutable copy ofthiswith just themanagerUserIdfield changed.ScheduleChangeRequestwithSenderDateTime(OffsetDateTime senderDateTime)Returns an immutable copy ofthiswith just thesenderDateTimefield changed.ScheduleChangeRequestwithSenderMessage(String senderMessage)ScheduleChangeRequestwithSenderUserId(String senderUserId)Returns an immutable copy ofthiswith just thesenderUserIdfield changed.ScheduleChangeRequestwithState(ScheduleChangeState state)ScheduleChangeRequestwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.ChangeTrackedEntity
getCreatedBy, getCreatedDateTime, getLastModifiedBy, getLastModifiedDateTime, stageForDeletion, withCreatedBy, withCreatedDateTime, withLastModifiedBy, withLastModifiedDateTime
-
-
-
-
Field Detail
-
assignedTo
protected ScheduleChangeRequestActor assignedTo
-
managerActionDateTime
protected OffsetDateTime managerActionDateTime
-
managerActionMessage
protected String managerActionMessage
-
managerUserId
protected String managerUserId
-
senderDateTime
protected OffsetDateTime senderDateTime
-
senderMessage
protected String senderMessage
-
senderUserId
protected String senderUserId
-
state
protected ScheduleChangeState state
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classChangeTrackedEntity
-
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
-
getAssignedTo
public Optional<ScheduleChangeRequestActor> getAssignedTo()
-
withAssignedTo
public ScheduleChangeRequest withAssignedTo(ScheduleChangeRequestActor assignedTo)
-
getManagerActionDateTime
public Optional<OffsetDateTime> getManagerActionDateTime()
Org.OData.Core.V1.Computed
true
- Returns:
- property managerActionDateTime
-
withManagerActionDateTime
public ScheduleChangeRequest withManagerActionDateTime(OffsetDateTime managerActionDateTime)
Returns an immutable copy ofthiswith just themanagerActionDateTimefield 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:
managerActionDateTime- new value ofmanagerActionDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagerActionDateTimefield changed
-
withManagerActionMessage
public ScheduleChangeRequest withManagerActionMessage(String managerActionMessage)
-
getManagerUserId
public Optional<String> getManagerUserId()
Org.OData.Core.V1.Computed
true
- Returns:
- property managerUserId
-
withManagerUserId
public ScheduleChangeRequest withManagerUserId(String managerUserId)
Returns an immutable copy ofthiswith just themanagerUserIdfield 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:
managerUserId- new value ofmanagerUserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagerUserIdfield changed
-
getSenderDateTime
public Optional<OffsetDateTime> getSenderDateTime()
Org.OData.Core.V1.Computed
true
- Returns:
- property senderDateTime
-
withSenderDateTime
public ScheduleChangeRequest withSenderDateTime(OffsetDateTime senderDateTime)
Returns an immutable copy ofthiswith just thesenderDateTimefield 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:
senderDateTime- new value ofsenderDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesenderDateTimefield changed
-
withSenderMessage
public ScheduleChangeRequest withSenderMessage(String senderMessage)
-
getSenderUserId
public Optional<String> getSenderUserId()
Org.OData.Core.V1.Computed
true
- Returns:
- property senderUserId
-
withSenderUserId
public ScheduleChangeRequest withSenderUserId(String senderUserId)
Returns an immutable copy ofthiswith just thesenderUserIdfield 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:
senderUserId- new value ofsenderUserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesenderUserIdfield changed
-
getState
public Optional<ScheduleChangeState> getState()
-
withState
public ScheduleChangeRequest withState(ScheduleChangeState state)
-
withUnmappedField
public ScheduleChangeRequest withUnmappedField(String name, String 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 ScheduleChangeRequest 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 ScheduleChangeRequest 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
-
decline
public com.github.davidmoten.odata.client.ActionRequestNoReturn decline(String message)
-
approve
public com.github.davidmoten.odata.client.ActionRequestNoReturn approve(String message)
-
toString
public String toString()
- Overrides:
toStringin classChangeTrackedEntity
-
-