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 Stringdiscriminator value for ProductSelectionSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductSelectionSetCustomTypeActionbuilder(ProductSelectionSetCustomTypeAction template) create builder for ProductSelectionSetCustomTypeAction instancecopyDeep()deepCopy(ProductSelectionSetCustomTypeAction template) factory method to create a deep copy of ProductSelectionSetCustomTypeAction@Valid FieldContainerObject containing the Custom Fields fields for the ProductSelection.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the ProductSelection with Custom Fields.of()factory methodof(ProductSelectionSetCustomTypeAction template) factory method to create a shallow copy ProductSelectionSetCustomTypeActionvoidsetFields(FieldContainer fields) Object containing the Custom Fields fields for the ProductSelection.voidDefines the Type that extends the ProductSelection with Custom Fields.static tools.jackson.core.type.TypeReference<ProductSelectionSetCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_selection.ProductSelectionUpdateAction
getAction, withProductSelectionUpdateActionMethods 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
Object containing the Custom Fields fields for the ProductSelection.
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 ProductSelection with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ProductSelection.
- Parameters:
type- value to be set
-
setFields
Object containing the Custom Fields fields for the ProductSelection.
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 ProductSelectionSetCustomTypeAction
-
of
factory method to create a shallow copy ProductSelectionSetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductSelectionSetCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceProductSelectionUpdateAction
-
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
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-