Class CategorySlugChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CategorySlugChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CategorySlugChangedMessagePayload>
public class CategorySlugChangedMessagePayloadBuilder
extends Object
implements Builder<CategorySlugChangedMessagePayload>
CategorySlugChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySlugChangedMessagePayload categorySlugChangedMessagePayload = CategorySlugChangedMessagePayload.builder()
.slug(slugBuilder -> slugBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CategorySlugChangedMessagePayload with checking for non-null required valuesbuilds CategorySlugChangedMessagePayload without checking for non-null required valuesThe slug of the Category before the Change Slug update action.getSlug()
The slug of the Category after the Change Slug update action.of()
factory method for an instance of CategorySlugChangedMessagePayloadBuilderof
(CategorySlugChangedMessagePayload template) create builder for CategorySlugChangedMessagePayload instanceoldSlug
(LocalizedString oldSlug) The slug of the Category before the Change Slug update action.The slug of the Category before the Change Slug update action.slug
(LocalizedString slug) The slug of the Category after the Change Slug update action.The slug of the Category after the Change Slug update action.The slug of the Category before the Change Slug update action.The slug of the Category after the Change Slug update action.
-
Constructor Details
-
CategorySlugChangedMessagePayloadBuilder
public CategorySlugChangedMessagePayloadBuilder()
-
-
Method Details
-
slug
public CategorySlugChangedMessagePayloadBuilder slug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The slug of the Category after the Change Slug update action.
- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
withSlug
public CategorySlugChangedMessagePayloadBuilder withSlug(Function<LocalizedStringBuilder, LocalizedString> builder) The slug of the Category after the Change Slug update action.
- Parameters:
builder
- function to build the slug value- Returns:
- Builder
-
slug
The slug of the Category after the Change Slug update action.
- Parameters:
slug
- value to be set- Returns:
- Builder
-
oldSlug
public CategorySlugChangedMessagePayloadBuilder oldSlug(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The slug of the Category before the Change Slug update action.
- Parameters:
builder
- function to build the oldSlug value- Returns:
- Builder
-
withOldSlug
public CategorySlugChangedMessagePayloadBuilder withOldSlug(Function<LocalizedStringBuilder, LocalizedString> builder) The slug of the Category before the Change Slug update action.
- Parameters:
builder
- function to build the oldSlug value- Returns:
- Builder
-
oldSlug
The slug of the Category before the Change Slug update action.
- Parameters:
oldSlug
- value to be set- Returns:
- Builder
-
getSlug
The slug of the Category after the Change Slug update action.
- Returns:
- slug
-
getOldSlug
The slug of the Category before the Change Slug update action.
- Returns:
- oldSlug
-
build
builds CategorySlugChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategorySlugChangedMessagePayload>
- Returns:
- CategorySlugChangedMessagePayload
-
buildUnchecked
builds CategorySlugChangedMessagePayload without checking for non-null required values- Returns:
- CategorySlugChangedMessagePayload
-
of
factory method for an instance of CategorySlugChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static CategorySlugChangedMessagePayloadBuilder of(CategorySlugChangedMessagePayload template) create builder for CategorySlugChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-