Package com.commercetools.api.models.me
Interface MyCartSetCustomTypeAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
MyCartSetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetCustomTypeAction myCartSetCustomTypeAction = MyCartSetCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartSetCustomTypeActionbuilder(MyCartSetCustomTypeAction template) create builder for MyCartSetCustomTypeAction instancecopyDeep()static MyCartSetCustomTypeActiondeepCopy(MyCartSetCustomTypeAction template) factory method to create a deep copy of MyCartSetCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for the Cart.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the Cart with Custom Fields.static MyCartSetCustomTypeActionof()factory methodstatic MyCartSetCustomTypeActionof(MyCartSetCustomTypeAction template) factory method to create a shallow copy MyCartSetCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for the Cart.voidDefines the Type that extends the Cart with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<MyCartSetCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOM_TYPE
discriminator value for MyCartSetCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the Cart with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Cart.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Cart.
- Returns:
- fields
-
setType
Defines the Type that extends the Cart with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Cart.
- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the Cart.
- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of MyCartSetCustomTypeAction
-
of
factory method to create a shallow copy MyCartSetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCartSetCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
factory method to create a deep copy of MyCartSetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartSetCustomTypeAction- Returns:
- builder
-
builder
create builder for MyCartSetCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartSetCustomTypeAction
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
-