Class CategoryChangeParentActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategoryChangeParentActionBuilder
- All Implemented Interfaces:
Builder<CategoryChangeParentAction>
public class CategoryChangeParentActionBuilder
extends Object
implements Builder<CategoryChangeParentAction>
CategoryChangeParentActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryChangeParentAction categoryChangeParentAction = CategoryChangeParentAction.builder()
.parent(parentBuilder -> parentBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CategoryChangeParentAction with checking for non-null required valuesbuilds CategoryChangeParentAction without checking for non-null required valuesNew value to set as parent.of()
factory method for an instance of CategoryChangeParentActionBuilderof
(CategoryChangeParentAction template) create builder for CategoryChangeParentAction instanceparent
(CategoryResourceIdentifier parent) New value to set as parent.New value to set as parent.New value to set as parent.
-
Constructor Details
-
CategoryChangeParentActionBuilder
public CategoryChangeParentActionBuilder()
-
-
Method Details
-
parent
public CategoryChangeParentActionBuilder parent(Function<CategoryResourceIdentifierBuilder, CategoryResourceIdentifierBuilder> builder) New value to set as parent.
- Parameters:
builder
- function to build the parent value- Returns:
- Builder
-
withParent
public CategoryChangeParentActionBuilder withParent(Function<CategoryResourceIdentifierBuilder, CategoryResourceIdentifier> builder) New value to set as parent.
- Parameters:
builder
- function to build the parent value- Returns:
- Builder
-
parent
New value to set as parent.
- Parameters:
parent
- value to be set- Returns:
- Builder
-
getParent
New value to set as parent.
- Returns:
- parent
-
build
builds CategoryChangeParentAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategoryChangeParentAction>
- Returns:
- CategoryChangeParentAction
-
buildUnchecked
builds CategoryChangeParentAction without checking for non-null required values- Returns:
- CategoryChangeParentAction
-
of
factory method for an instance of CategoryChangeParentActionBuilder- Returns:
- builder
-
of
create builder for CategoryChangeParentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-