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