Class CategorySetCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.category.CategorySetCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<CategorySetCustomFieldAction>
public class CategorySetCustomFieldActionBuilder
extends Object
implements Builder<CategorySetCustomFieldAction>
CategorySetCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetCustomFieldAction categorySetCustomFieldAction = CategorySetCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CategorySetCustomFieldAction with checking for non-null required valuesbuilds CategorySetCustomFieldAction without checking for non-null required valuesgetName()Name of the Custom Field.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Name of the Custom Field.of()factory method for an instance of CategorySetCustomFieldActionBuilderof(CategorySetCustomFieldAction template) create builder for CategorySetCustomFieldAction instanceIfvalueis absent ornull, this field will be removed if it exists.
-
Constructor Details
-
CategorySetCustomFieldActionBuilder
public CategorySetCustomFieldActionBuilder()
-
-
Method Details
-
name
Name of the Custom Field.
- Parameters:
name- value to be set- Returns:
- Builder
-
value
If
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Parameters:
value- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Returns:
- value
-
build
builds CategorySetCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CategorySetCustomFieldAction>- Returns:
- CategorySetCustomFieldAction
-
buildUnchecked
builds CategorySetCustomFieldAction without checking for non-null required values- Returns:
- CategorySetCustomFieldAction
-
of
factory method for an instance of CategorySetCustomFieldActionBuilder- Returns:
- builder
-
of
create builder for CategorySetCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-