Package odata.msgraph.client.entity
Class OfferShiftRequest
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.ChangeTrackedEntity
-
- odata.msgraph.client.entity.ScheduleChangeRequest
-
- odata.msgraph.client.entity.OfferShiftRequest
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
SwapShiftsChangeRequest
public class OfferShiftRequest extends ScheduleChangeRequest implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOfferShiftRequest.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimerecipientActionDateTimeprotected StringrecipientActionMessageprotected StringrecipientUserIdprotected StringsenderShiftId-
Fields inherited from class odata.msgraph.client.entity.ScheduleChangeRequest
assignedTo, managerActionDateTime, managerActionMessage, managerUserId, senderDateTime, senderMessage, senderUserId, state
-
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 protectedOfferShiftRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OfferShiftRequest.BuilderbuilderOfferShiftRequest()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.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getRecipientActionDateTime()Org.OData.Core.V1.ComputedOptional<String>getRecipientActionMessage()Optional<String>getRecipientUserId()Optional<String>getSenderShiftId()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()OfferShiftRequestpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)OfferShiftRequestput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()OfferShiftRequestwithRecipientActionDateTime(OffsetDateTime recipientActionDateTime)Returns an immutable copy ofthiswith just therecipientActionDateTimefield changed.OfferShiftRequestwithRecipientActionMessage(String recipientActionMessage)OfferShiftRequestwithRecipientUserId(String recipientUserId)OfferShiftRequestwithSenderShiftId(String senderShiftId)OfferShiftRequestwithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.entity.ScheduleChangeRequest
approve, decline, getAssignedTo, getManagerActionDateTime, getManagerActionMessage, getManagerUserId, getSenderDateTime, getSenderMessage, getSenderUserId, getState, withAssignedTo, withManagerActionDateTime, withManagerActionMessage, withManagerUserId, withSenderDateTime, withSenderMessage, withSenderUserId, withState
-
Methods inherited from class odata.msgraph.client.entity.ChangeTrackedEntity
getCreatedBy, getCreatedDateTime, getLastModifiedBy, getLastModifiedDateTime, stageForDeletion, withCreatedBy, withCreatedDateTime, withLastModifiedBy, withLastModifiedDateTime
-
-
-
-
Field Detail
-
recipientActionDateTime
protected OffsetDateTime recipientActionDateTime
-
recipientActionMessage
protected String recipientActionMessage
-
recipientUserId
protected String recipientUserId
-
senderShiftId
protected String senderShiftId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classScheduleChangeRequest
-
builderOfferShiftRequest
public static OfferShiftRequest.Builder builderOfferShiftRequest()
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 classScheduleChangeRequest
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classScheduleChangeRequest
-
getRecipientActionDateTime
public Optional<OffsetDateTime> getRecipientActionDateTime()
Org.OData.Core.V1.Computed
true
- Returns:
- property recipientActionDateTime
-
withRecipientActionDateTime
public OfferShiftRequest withRecipientActionDateTime(OffsetDateTime recipientActionDateTime)
Returns an immutable copy ofthiswith just therecipientActionDateTimefield 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:
recipientActionDateTime- new value ofrecipientActionDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therecipientActionDateTimefield changed
-
withRecipientActionMessage
public OfferShiftRequest withRecipientActionMessage(String recipientActionMessage)
-
withRecipientUserId
public OfferShiftRequest withRecipientUserId(String recipientUserId)
-
withSenderShiftId
public OfferShiftRequest withSenderShiftId(String senderShiftId)
-
withUnmappedField
public OfferShiftRequest withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classScheduleChangeRequest
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classScheduleChangeRequest
-
patch
public OfferShiftRequest patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classScheduleChangeRequest- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public OfferShiftRequest put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classScheduleChangeRequest- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classScheduleChangeRequest
-
-