Interface MessagesConfigurationDraft
- All Superinterfaces:
Draft<MessagesConfigurationDraft>
- All Known Subinterfaces:
MessageConfigurationDraft
Defines the configuration for the Messages Query feature for the Project.
Example to create an instance using the builder pattern
MessagesConfigurationDraft messagesConfigurationDraft = MessagesConfigurationDraft.builder()
.enabled(true)
.deleteDaysAfterCreation(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MessagesConfigurationDraftbuilder
(MessagesConfigurationDraft template) create builder for MessagesConfigurationDraft instancestatic MessagesConfigurationDraft
deepCopy
(MessagesConfigurationDraft template) factory method to create a deep copy of MessagesConfigurationDraft@NotNull Integer
Specifies the number of days each Message should be available via the Messages Query API.@NotNull Boolean
Setting totrue
activates the Messages Query feature.static MessagesConfigurationDraft
of()
factory methodstatic MessagesConfigurationDraft
of
(MessagesConfigurationDraft template) factory method to create a shallow copy MessagesConfigurationDraftvoid
setDeleteDaysAfterCreation
(Integer deleteDaysAfterCreation) Specifies the number of days each Message should be available via the Messages Query API.void
setEnabled
(Boolean enabled) Setting totrue
activates the Messages Query feature.static com.fasterxml.jackson.core.type.TypeReference<MessagesConfigurationDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getEnabled
Setting to
true
activates the Messages Query feature.- Returns:
- enabled
-
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.
- Returns:
- deleteDaysAfterCreation
-
setEnabled
Setting to
true
activates the Messages Query feature.- 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.
- Parameters:
deleteDaysAfterCreation
- value to be set
-
of
factory method- Returns:
- instance of MessagesConfigurationDraft
-
of
factory method to create a shallow copy MessagesConfigurationDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MessagesConfigurationDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MessagesConfigurationDraft- Returns:
- builder
-
builder
create builder for MessagesConfigurationDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMessagesConfigurationDraft
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
-