Interface ProjectSetDiscountsConfigurationAction
- All Superinterfaces:
ProjectUpdateAction,ResourceUpdateAction<ProjectUpdateAction>
ProjectSetDiscountsConfigurationAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectSetDiscountsConfigurationAction projectSetDiscountsConfigurationAction = ProjectSetDiscountsConfigurationAction.builder()
.discountsConfiguration(discountsConfigurationBuilder -> discountsConfigurationBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProjectSetDiscountsConfigurationAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProjectSetDiscountsConfigurationActioncreate builder for ProjectSetDiscountsConfigurationAction instancecopyDeep()factory method to create a deep copy of ProjectSetDiscountsConfigurationAction@NotNull @Valid DiscountsConfigurationConfiguration for the behavior of Cart and Product Discounts in the Project.of()factory methodof(ProjectSetDiscountsConfigurationAction template) factory method to create a shallow copy ProjectSetDiscountsConfigurationActionvoidsetDiscountsConfiguration(DiscountsConfiguration discountsConfiguration) Configuration for the behavior of Cart and Product Discounts in the Project.static com.fasterxml.jackson.core.type.TypeReference<ProjectSetDiscountsConfigurationAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProjectSetDiscountsConfigurationAction(Function<ProjectSetDiscountsConfigurationAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.project.ProjectUpdateAction
getAction, withProjectUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DISCOUNTS_CONFIGURATION
discriminator value for ProjectSetDiscountsConfigurationAction- See Also:
-
-
Method Details
-
getDiscountsConfiguration
Configuration for the behavior of Cart and Product Discounts in the Project.
- Returns:
- discountsConfiguration
-
setDiscountsConfiguration
Configuration for the behavior of Cart and Product Discounts in the Project.
- Parameters:
discountsConfiguration- value to be set
-
of
factory method- Returns:
- instance of ProjectSetDiscountsConfigurationAction
-
of
factory method to create a shallow copy ProjectSetDiscountsConfigurationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProjectSetDiscountsConfigurationAction copyDeep()- Specified by:
copyDeepin interfaceProjectUpdateAction
-
deepCopy
@Nullable static ProjectSetDiscountsConfigurationAction deepCopy(@Nullable ProjectSetDiscountsConfigurationAction template) factory method to create a deep copy of ProjectSetDiscountsConfigurationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectSetDiscountsConfigurationAction- Returns:
- builder
-
builder
static ProjectSetDiscountsConfigurationActionBuilder builder(ProjectSetDiscountsConfigurationAction template) create builder for ProjectSetDiscountsConfigurationAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProjectSetDiscountsConfigurationAction
default <T> T withProjectSetDiscountsConfigurationAction(Function<ProjectSetDiscountsConfigurationAction, 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<ProjectSetDiscountsConfigurationAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-