Class CategoryCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CategoryCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CategoryCreatedMessagePayload>
public class CategoryCreatedMessagePayloadBuilder
extends Object
implements Builder<CategoryCreatedMessagePayload>
CategoryCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryCreatedMessagePayload categoryCreatedMessagePayload = CategoryCreatedMessagePayload.builder()
.category(categoryBuilder -> categoryBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CategoryCreatedMessagePayload with checking for non-null required valuesbuilds CategoryCreatedMessagePayload without checking for non-null required valuesCategory that was created.category
(Function<CategoryBuilder, CategoryBuilder> builder) Category that was created.Category that was created.of()
factory method for an instance of CategoryCreatedMessagePayloadBuilderof
(CategoryCreatedMessagePayload template) create builder for CategoryCreatedMessagePayload instancewithCategory
(Function<CategoryBuilder, Category> builder) Category that was created.
-
Constructor Details
-
CategoryCreatedMessagePayloadBuilder
public CategoryCreatedMessagePayloadBuilder()
-
-
Method Details
-
category
public CategoryCreatedMessagePayloadBuilder category(Function<CategoryBuilder, CategoryBuilder> builder) Category that was created.
- Parameters:
builder
- function to build the category value- Returns:
- Builder
-
withCategory
public CategoryCreatedMessagePayloadBuilder withCategory(Function<CategoryBuilder, Category> builder) Category that was created.
- Parameters:
builder
- function to build the category value- Returns:
- Builder
-
category
Category that was created.
- Parameters:
category
- value to be set- Returns:
- Builder
-
getCategory
Category that was created.
- Returns:
- category
-
build
builds CategoryCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategoryCreatedMessagePayload>
- Returns:
- CategoryCreatedMessagePayload
-
buildUnchecked
builds CategoryCreatedMessagePayload without checking for non-null required values- Returns:
- CategoryCreatedMessagePayload
-
of
factory method for an instance of CategoryCreatedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for CategoryCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-