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 Stringdiscriminator value for CategorySetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CategorySetCustomTypeActionbuilder(CategorySetCustomTypeAction template) create builder for CategorySetCustomTypeAction instancecopyDeep()static CategorySetCustomTypeActiondeepCopy(CategorySetCustomTypeAction template) factory method to create a deep copy of CategorySetCustomTypeAction@Valid FieldContainerObject containing the Custom Fields fields for the Category.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the Category with Custom Fields.static CategorySetCustomTypeActionof()factory methodstatic CategorySetCustomTypeActionof(CategorySetCustomTypeAction template) factory method to create a shallow copy CategorySetCustomTypeActionvoidsetFields(FieldContainer fields) Object containing the Custom Fields fields for the Category.voidDefines the Type that extends the Category with Custom Fields.static tools.jackson.core.type.TypeReference<CategorySetCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateActionMethods 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
Object containing the Custom Fields fields for the Category.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- 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
Object containing the Custom Fields fields for the Category.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- 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
-
copyDeep
CategorySetCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceCategoryUpdateAction
-
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
-