Package odata.msgraph.client.entity
Class LocalizedNotificationMessage
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.LocalizedNotificationMessage
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class LocalizedNotificationMessage extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The text content of a Notification Message Template for the specified locale.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLocalizedNotificationMessage.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanisDefaultprotected OffsetDateTimelastModifiedDateTimeprotected Stringlocaleprotected StringmessageTemplateprotected Stringsubject-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocalizedNotificationMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalizedNotificationMessage.BuilderbuilderLocalizedNotificationMessage()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<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.UnmappedFieldsgetUnmappedFields()StringodataTypeName()LocalizedNotificationMessagepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)LocalizedNotificationMessageput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()LocalizedNotificationMessagewithIsDefault(Boolean isDefault)Returns an immutable copy ofthiswith just theisDefaultfield changed.LocalizedNotificationMessagewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.LocalizedNotificationMessagewithLocale(String locale)Returns an immutable copy ofthiswith just thelocalefield changed.LocalizedNotificationMessagewithMessageTemplate(String messageTemplate)Returns an immutable copy ofthiswith just themessageTemplatefield changed.LocalizedNotificationMessagewithSubject(String subject)Returns an immutable copy ofthiswith just thesubjectfield changed.LocalizedNotificationMessagewithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
isDefault
protected Boolean isDefault
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
locale
protected String locale
-
messageTemplate
protected String messageTemplate
-
subject
protected String subject
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderLocalizedNotificationMessage
public static LocalizedNotificationMessage.Builder builderLocalizedNotificationMessage()
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 classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getIsDefault
public Optional<Boolean> getIsDefault()
“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.”- Returns:
- property isDefault
-
withIsDefault
public LocalizedNotificationMessage withIsDefault(Boolean isDefault)
Returns an immutable copy ofthiswith just theisDefaultfield 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.“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.”
- Parameters:
isDefault- new value ofisDefaultfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisDefaultfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“DateTime the object was last modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public LocalizedNotificationMessage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“DateTime the object was last modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getLocale
public Optional<String> getLocale()
“The Locale for which this message is destined.”- Returns:
- property locale
-
withLocale
public LocalizedNotificationMessage withLocale(String locale)
Returns an immutable copy ofthiswith just thelocalefield 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.“The Locale for which this message is destined.”
- Parameters:
locale- new value oflocalefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelocalefield changed
-
getMessageTemplate
public Optional<String> getMessageTemplate()
“The Message Template content.”- Returns:
- property messageTemplate
-
withMessageTemplate
public LocalizedNotificationMessage withMessageTemplate(String messageTemplate)
Returns an immutable copy ofthiswith just themessageTemplatefield 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.“The Message Template content.”
- Parameters:
messageTemplate- new value ofmessageTemplatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themessageTemplatefield changed
-
getSubject
public Optional<String> getSubject()
“The Message Template Subject.”- Returns:
- property subject
-
withSubject
public LocalizedNotificationMessage withSubject(String subject)
Returns an immutable copy ofthiswith just thesubjectfield 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.“The Message Template Subject.”
- Parameters:
subject- new value ofsubjectfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesubjectfield changed
-
withUnmappedField
public LocalizedNotificationMessage withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public LocalizedNotificationMessage patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public LocalizedNotificationMessage put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-