Interface MessagesConfiguration
- All Known Subinterfaces:
MessageConfiguration
public interface MessagesConfiguration
Holds the configuration for the Messages Query feature for the Project.
Example to create an instance using the builder pattern
MessagesConfiguration messagesConfiguration = MessagesConfiguration.builder()
.enabled(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MessagesConfigurationBuilderbuilder()builder factory method for MessagesConfigurationstatic MessagesConfigurationBuilderbuilder(MessagesConfiguration template) create builder for MessagesConfiguration instancecopyDeep()static MessagesConfigurationdeepCopy(MessagesConfiguration template) factory method to create a deep copy of MessagesConfigurationSpecifies the number of days each Message should be available via the Messages Query API.@NotNull BooleanWhentrue, the Messages Query feature is active.static MessagesConfigurationof()factory methodstatic MessagesConfigurationof(MessagesConfiguration template) factory method to create a shallow copy MessagesConfigurationvoidsetDeleteDaysAfterCreation(Integer deleteDaysAfterCreation) Specifies the number of days each Message should be available via the Messages Query API.voidsetEnabled(Boolean enabled) Whentrue, the Messages Query feature is active.static com.fasterxml.jackson.core.type.TypeReference<MessagesConfiguration>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getEnabled
When
true, the Messages Query feature is active.- Returns:
- enabled
-
getDeleteDaysAfterCreation
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.
- Returns:
- deleteDaysAfterCreation
-
setEnabled
When
true, the Messages Query feature is active.- Parameters:
enabled- value to be set
-
setDeleteDaysAfterCreation
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.
- Parameters:
deleteDaysAfterCreation- value to be set
-
of
factory method- Returns:
- instance of MessagesConfiguration
-
of
factory method to create a shallow copy MessagesConfiguration- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MessagesConfiguration copyDeep() -
deepCopy
factory method to create a deep copy of MessagesConfiguration- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MessagesConfiguration- Returns:
- builder
-
builder
create builder for MessagesConfiguration instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMessagesConfiguration
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-