Interface ProductSelectionSetCustomTypeAction
- All Superinterfaces:
ProductSelectionUpdateAction
,ResourceUpdateAction<ProductSelectionUpdateAction>
ProductSelectionSetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSelectionSetCustomTypeAction productSelectionSetCustomTypeAction = ProductSelectionSetCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for ProductSelectionSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductSelectionSetCustomTypeActionbuilder
(ProductSelectionSetCustomTypeAction template) create builder for ProductSelectionSetCustomTypeAction instancedeepCopy
(ProductSelectionSetCustomTypeAction template) factory method to create a deep copy of ProductSelectionSetCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the ProductSelection.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the ProductSelection with Custom Fields.of()
factory methodof
(ProductSelectionSetCustomTypeAction template) factory method to create a shallow copy ProductSelectionSetCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the ProductSelection.void
Defines the Type that extends the ProductSelection with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionSetCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionUpdateAction
getAction, withProductSelectionUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOM_TYPE
discriminator value for ProductSelectionSetCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the ProductSelection with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ProductSelection.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the ProductSelection.
- Returns:
- fields
-
setType
Defines the Type that extends the ProductSelection with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ProductSelection.
- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the ProductSelection.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of ProductSelectionSetCustomTypeAction
-
of
factory method to create a shallow copy ProductSelectionSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductSelectionSetCustomTypeAction deepCopy(@Nullable ProductSelectionSetCustomTypeAction template) factory method to create a deep copy of ProductSelectionSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductSelectionSetCustomTypeAction- Returns:
- builder
-
builder
static ProductSelectionSetCustomTypeActionBuilder builder(ProductSelectionSetCustomTypeAction template) create builder for ProductSelectionSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductSelectionSetCustomTypeAction
default <T> T withProductSelectionSetCustomTypeAction(Function<ProductSelectionSetCustomTypeAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductSelectionSetCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-