Class MessagesConfigurationImpl

java.lang.Object
com.commercetools.api.models.message.MessagesConfigurationImpl
All Implemented Interfaces:
MessagesConfiguration, io.vrap.rmf.base.client.ModelBase

public class MessagesConfigurationImpl extends Object implements MessagesConfiguration, io.vrap.rmf.base.client.ModelBase

Holds the configuration for the Messages Query feature for the Project.

  • Constructor Details

    • MessagesConfigurationImpl

      public MessagesConfigurationImpl()
      create empty instance
  • Method Details

    • getEnabled

      public Boolean getEnabled()

      When true, the Messages Query feature is active.

      Specified by:
      getEnabled in interface MessagesConfiguration
      Returns:
      enabled
    • getDeleteDaysAfterCreation

      public Integer getDeleteDaysAfterCreation()

      Specifies the number of days each Message should be available via the Messages Query API. For Messages older than the specified period, it is not guaranteed that they are still accessible via the API. This field may not be present on Projects created before 8 October 2018.

      Specified by:
      getDeleteDaysAfterCreation in interface MessagesConfiguration
      Returns:
      deleteDaysAfterCreation
    • setEnabled

      public void setEnabled(Boolean enabled)
      Description copied from interface: MessagesConfiguration

      When true, the Messages Query feature is active.

      Specified by:
      setEnabled in interface MessagesConfiguration
      Parameters:
      enabled - value to be set
    • setDeleteDaysAfterCreation

      public void setDeleteDaysAfterCreation(Integer deleteDaysAfterCreation)
      Description copied from interface: MessagesConfiguration

      Specifies the number of days each Message should be available via the Messages Query API. For Messages older than the specified period, it is not guaranteed that they are still accessible via the API. This field may not be present on Projects created before 8 October 2018.

      Specified by:
      setDeleteDaysAfterCreation in interface MessagesConfiguration
      Parameters:
      deleteDaysAfterCreation - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object