Class CategorySetCustomTypeActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategorySetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CategorySetCustomTypeAction>
public class CategorySetCustomTypeActionBuilder
extends Object
implements Builder<CategorySetCustomTypeAction>
CategorySetCustomTypeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetCustomTypeAction categorySetCustomTypeAction = CategorySetCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CategorySetCustomTypeAction with checking for non-null required valuesbuilds CategorySetCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Category.Sets the Custom Fields fields for the Category.Sets the Custom Fields fields for the Category.getType()
Defines the Type that extends the Category with Custom Fields.of()
factory method for an instance of CategorySetCustomTypeActionBuilderof
(CategorySetCustomTypeAction template) create builder for CategorySetCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the Category with Custom Fields.Defines the Type that extends the Category with Custom Fields.Sets the Custom Fields fields for the Category.Defines the Type that extends the Category with Custom Fields.
-
Constructor Details
-
CategorySetCustomTypeActionBuilder
public CategorySetCustomTypeActionBuilder()
-
-
Method Details
-
type
public CategorySetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Category with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Category.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public CategorySetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Category with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Category.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Category with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Category.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public CategorySetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Category.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public CategorySetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Category.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Category.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the Category with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Category.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Category.
- Returns:
- fields
-
build
builds CategorySetCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CategorySetCustomTypeAction>
- Returns:
- CategorySetCustomTypeAction
-
buildUnchecked
builds CategorySetCustomTypeAction without checking for non-null required values- Returns:
- CategorySetCustomTypeAction
-
of
factory method for an instance of CategorySetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for CategorySetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-