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 instancecopyDeep()static MessagesConfigurationDraftdeepCopy(MessagesConfigurationDraft template) factory method to create a deep copy of MessagesConfigurationDraft@NotNull IntegerSpecifies the number of days each Message should be available via the Messages Query API.@NotNull BooleanSetting totrueactivates the Messages Query feature.static MessagesConfigurationDraftof()factory methodstatic MessagesConfigurationDraftof(MessagesConfigurationDraft template) factory method to create a shallow copy MessagesConfigurationDraftvoidsetDeleteDaysAfterCreation(Integer deleteDaysAfterCreation) Specifies the number of days each Message should be available via the Messages Query API.voidsetEnabled(Boolean enabled) Setting totrueactivates the Messages Query feature.static com.fasterxml.jackson.core.type.TypeReference<MessagesConfigurationDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getEnabled
Setting to
trueactivates 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
trueactivates 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
-
copyDeep
MessagesConfigurationDraft copyDeep() -
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
-