Class MessagesConfigurationBuilder
java.lang.Object
com.commercetools.api.models.message.MessagesConfigurationBuilder
- All Implemented Interfaces:
Builder<MessagesConfiguration>
- Direct Known Subclasses:
MessageConfigurationBuilder
MessagesConfigurationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MessagesConfiguration messagesConfiguration = MessagesConfiguration.builder()
.enabled(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MessagesConfiguration with checking for non-null required valuesbuilds MessagesConfiguration without checking for non-null required valuesdeleteDaysAfterCreation
(Integer deleteDaysAfterCreation) Specifies the number of days each Message should be available via the Messages Query API.Whentrue
, the Messages Query feature is active.Specifies the number of days each Message should be available via the Messages Query API.Whentrue
, the Messages Query feature is active.static MessagesConfigurationBuilder
of()
factory method for an instance of MessagesConfigurationBuilderstatic MessagesConfigurationBuilder
of
(MessagesConfiguration template) create builder for MessagesConfiguration instance
-
Constructor Details
-
MessagesConfigurationBuilder
public MessagesConfigurationBuilder()
-
-
Method Details
-
enabled
When
true
, the Messages Query feature is active.- Parameters:
enabled
- value to be set- Returns:
- Builder
-
deleteDaysAfterCreation
public MessagesConfigurationBuilder deleteDaysAfterCreation(@Nullable Integer deleteDaysAfterCreation) 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- Returns:
- Builder
-
getEnabled
When
true
, the Messages Query feature is active.- 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. This field may not be present on Projects created before 8 October 2018.
- Returns:
- deleteDaysAfterCreation
-
build
builds MessagesConfiguration with checking for non-null required values- Specified by:
build
in interfaceBuilder<MessagesConfiguration>
- Returns:
- MessagesConfiguration
-
buildUnchecked
builds MessagesConfiguration without checking for non-null required values- Returns:
- MessagesConfiguration
-
of
factory method for an instance of MessagesConfigurationBuilder- Returns:
- builder
-
of
create builder for MessagesConfiguration instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-