public class LocalizedNotificationMessage extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalizedNotificationMessage.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
isDefault |
protected OffsetDateTime |
lastModifiedDateTime |
protected String |
locale |
protected String |
messageTemplate |
protected String |
subject |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
LocalizedNotificationMessage() |
| Modifier and Type | Method and Description |
|---|---|
static LocalizedNotificationMessage.Builder |
builderLocalizedNotificationMessage()
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<Boolean> |
getIsDefault()
“Flag to indicate whether or not this is the default locale for language fallback
.
|
Optional<OffsetDateTime> |
getLastModifiedDateTime()
“DateTime the object was last modified.”
|
Optional<String> |
getLocale()
“The Locale for which this message is destined.”
|
Optional<String> |
getMessageTemplate()
“The Message Template content.”
|
Optional<String> |
getSubject()
“The Message Template Subject.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
LocalizedNotificationMessage |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
LocalizedNotificationMessage |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
LocalizedNotificationMessage |
withIsDefault(Boolean isDefault)
Returns an immutable copy of
this with just the isDefault field
changed. |
LocalizedNotificationMessage |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy of
this with just the lastModifiedDateTime field changed. |
LocalizedNotificationMessage |
withLocale(String locale)
Returns an immutable copy of
this with just the locale field
changed. |
LocalizedNotificationMessage |
withMessageTemplate(String messageTemplate)
Returns an immutable copy of
this with just the messageTemplate
field changed. |
LocalizedNotificationMessage |
withSubject(String subject)
Returns an immutable copy of
this with just the subject field
changed. |
protected OffsetDateTime lastModifiedDateTime
protected String locale
protected String subject
protected String messageTemplate
protected Boolean isDefault
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static LocalizedNotificationMessage.Builder builderLocalizedNotificationMessage()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<OffsetDateTime> getLastModifiedDateTime()
public LocalizedNotificationMessage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
this with just the lastModifiedDateTime 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.
“DateTime the object was last modified.”
lastModifiedDateTime - new value of lastModifiedDateTime field (as defined in service metadata)this with just the lastModifiedDateTime field changedpublic Optional<String> getLocale()
public LocalizedNotificationMessage withLocale(String locale)
this with just the locale 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.
“The Locale for which this message is destined.”
locale - new value of locale field (as defined in service metadata)this with just the locale field changedpublic Optional<String> getSubject()
public LocalizedNotificationMessage withSubject(String subject)
this with just the subject 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.
“The Message Template Subject.”
subject - new value of subject field (as defined in service metadata)this with just the subject field changedpublic Optional<String> getMessageTemplate()
public LocalizedNotificationMessage withMessageTemplate(String messageTemplate)
this with just the messageTemplate
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.
“The Message Template content.”
messageTemplate - new value of messageTemplate field (as defined in service metadata)this with just the messageTemplate field changedpublic Optional<Boolean> getIsDefault()
public LocalizedNotificationMessage withIsDefault(Boolean isDefault)
this with just the isDefault 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.
“Flag to indicate whether or not this is the default locale for language fallback . This flag can only be set. To unset, set this property to true on another Localized Notification Message.”
isDefault - new value of isDefault field (as defined in service metadata)this with just the isDefault field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic LocalizedNotificationMessage patch()
this with changed fields reset.public LocalizedNotificationMessage put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.