Class 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.”
    • Field Detail

      • isDefault

        protected Boolean isDefault
      • locale

        protected String locale
      • messageTemplate

        protected String messageTemplate
      • subject

        protected String subject
    • Constructor Detail

      • LocalizedNotificationMessage

        protected LocalizedNotificationMessage()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • 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 of 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.”

        Parameters:
        isDefault - new value of isDefault field (as defined in service metadata)
        Returns:
        immutable copy of this with just the isDefault field 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 of 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.”

        Parameters:
        lastModifiedDateTime - new value of lastModifiedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastModifiedDateTime field 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 of 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.”

        Parameters:
        locale - new value of locale field (as defined in service metadata)
        Returns:
        immutable copy of this with just the locale field changed
      • getMessageTemplate

        public Optional<String> getMessageTemplate()
        “The Message Template content.”
        Returns:
        property messageTemplate
      • withMessageTemplate

        public LocalizedNotificationMessage withMessageTemplate​(String messageTemplate)
        Returns an immutable copy of 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.”

        Parameters:
        messageTemplate - new value of messageTemplate field (as defined in service metadata)
        Returns:
        immutable copy of this with just the messageTemplate field changed
      • getSubject

        public Optional<String> getSubject()
        “The Message Template Subject.”
        Returns:
        property subject
      • withSubject

        public LocalizedNotificationMessage withSubject​(String subject)
        Returns an immutable copy of 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.”

        Parameters:
        subject - new value of subject field (as defined in service metadata)
        Returns:
        immutable copy of this with just the subject field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public LocalizedNotificationMessage patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public LocalizedNotificationMessage put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected