public class OfferShiftRequest extends ScheduleChangeRequest implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
OfferShiftRequest.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
recipientActionDateTime |
protected String |
recipientActionMessage |
protected String |
recipientUserId |
protected String |
senderShiftId |
assignedTo, managerActionDateTime, managerActionMessage, managerUserId, senderDateTime, senderMessage, senderUserId, statecreatedDateTime, lastModifiedBy, lastModifiedDateTimechangedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
OfferShiftRequest() |
| Modifier and Type | Method and Description |
|---|---|
static OfferShiftRequest.Builder |
builderOfferShiftRequest()
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<OffsetDateTime> |
getRecipientActionDateTime()
Org.OData.Core.V1.Computed
|
Optional<String> |
getRecipientActionMessage() |
Optional<String> |
getRecipientUserId() |
Optional<String> |
getSenderShiftId() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
OfferShiftRequest |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
OfferShiftRequest |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
OfferShiftRequest |
withRecipientActionDateTime(OffsetDateTime recipientActionDateTime)
Returns an immutable copy of
this with just the recipientActionDateTime field changed. |
OfferShiftRequest |
withRecipientActionMessage(String recipientActionMessage) |
OfferShiftRequest |
withRecipientUserId(String recipientUserId) |
OfferShiftRequest |
withSenderShiftId(String senderShiftId) |
approve, decline, getAssignedTo, getManagerActionDateTime, getManagerActionMessage, getManagerUserId, getSenderDateTime, getSenderMessage, getSenderUserId, getState, withAssignedTo, withManagerActionDateTime, withManagerActionMessage, withManagerUserId, withSenderDateTime, withSenderMessage, withSenderUserId, withStategetCreatedDateTime, getLastModifiedBy, getLastModifiedDateTime, stageForDeletion, withCreatedDateTime, withLastModifiedBy, withLastModifiedDateTimeprotected String recipientActionMessage
protected OffsetDateTime recipientActionDateTime
protected String senderShiftId
protected String recipientUserId
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class ScheduleChangeRequestpublic static OfferShiftRequest.Builder builderOfferShiftRequest()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class ScheduleChangeRequestpublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class ScheduleChangeRequestpublic OfferShiftRequest withRecipientActionMessage(String recipientActionMessage)
public Optional<OffsetDateTime> getRecipientActionDateTime()
Org.OData.Core.V1.Computed
true
public OfferShiftRequest withRecipientActionDateTime(OffsetDateTime recipientActionDateTime)
this with just the recipientActionDateTime field changed. Field description below. The field name
is also added to an internal map of changed fields in the returned object so
that when this.patch() is called (if available)on the returned object
only the changed fields are submitted.
Org.OData.Core.V1.Computed
true
recipientActionDateTime - new value of recipientActionDateTime field (as defined in service metadata)this with just the recipientActionDateTime field changedpublic OfferShiftRequest withSenderShiftId(String senderShiftId)
public OfferShiftRequest withRecipientUserId(String recipientUserId)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class ScheduleChangeRequestpublic OfferShiftRequest patch()
this with changed fields reset.patch in class ScheduleChangeRequestthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic OfferShiftRequest put()
this
with changed fields reset (they were ignored anyway).put in class ScheduleChangeRequestthis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic String toString()
toString in class ScheduleChangeRequestCopyright © 2018–2020. All rights reserved.