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 MessagesConfigurationBuilder
builder()
builder factory method for MessagesConfigurationstatic MessagesConfigurationBuilder
builder
(MessagesConfiguration template) create builder for MessagesConfiguration instancestatic MessagesConfiguration
deepCopy
(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 Boolean
Whentrue
, the Messages Query feature is active.static MessagesConfiguration
of()
factory methodstatic MessagesConfiguration
of
(MessagesConfiguration template) factory method to create a shallow copy MessagesConfigurationvoid
setDeleteDaysAfterCreation
(Integer deleteDaysAfterCreation) Specifies the number of days each Message should be available via the Messages Query API.void
setEnabled
(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> T
accessor 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
-
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
-