Interface CategorySetCustomTypeAction
- All Superinterfaces:
CategoryUpdateAction
,ResourceUpdateAction<CategoryUpdateAction>
CategorySetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetCustomTypeAction categorySetCustomTypeAction = CategorySetCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for CategorySetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategorySetCustomTypeActionbuilder
(CategorySetCustomTypeAction template) create builder for CategorySetCustomTypeAction instancestatic CategorySetCustomTypeAction
deepCopy
(CategorySetCustomTypeAction template) factory method to create a deep copy of CategorySetCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the Category.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the Category with Custom Fields.static CategorySetCustomTypeAction
of()
factory methodstatic CategorySetCustomTypeAction
of
(CategorySetCustomTypeAction template) factory method to create a shallow copy CategorySetCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the Category.void
Defines the Type that extends the Category with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<CategorySetCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOM_TYPE
discriminator value for CategorySetCustomTypeAction- See Also:
-
-
Method Details
-
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
-
setType
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
-
setFields
Sets the Custom Fields fields for the Category.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of CategorySetCustomTypeAction
-
of
factory method to create a shallow copy CategorySetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CategorySetCustomTypeAction deepCopy(@Nullable CategorySetCustomTypeAction template) factory method to create a deep copy of CategorySetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategorySetCustomTypeAction- Returns:
- builder
-
builder
create builder for CategorySetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCategorySetCustomTypeAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-