Interface ChangeValueGiftLineItemChangeValue
- All Superinterfaces:
ChangeValueChangeValue
ChangeValueGiftLineItemChangeValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeValueGiftLineItemChangeValue changeValueGiftLineItemChangeValue = ChangeValueGiftLineItemChangeValue.builder()
.product(productBuilder -> productBuilder)
.variantId(1)
.distributionChannel(distributionChannelBuilder -> distributionChannelBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ChangeValueGiftLineItemChangeValue -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ChangeValueGiftLineItemChangeValuebuilder
(ChangeValueGiftLineItemChangeValue template) create builder for ChangeValueGiftLineItemChangeValue instancedeepCopy
(ChangeValueGiftLineItemChangeValue template) factory method to create a deep copy of ChangeValueGiftLineItemChangeValue@NotNull @Valid Reference
Channel with ChannelRoleEnumProductDistribution
.@NotNull @Valid Reference
Reference to a Product.@Valid Reference
Channel with ChannelRoleEnumInventorySupply
.@NotNull String
getType()
@NotNull Integer
id
of the ProductVariant.of()
factory methodof
(ChangeValueGiftLineItemChangeValue template) factory method to create a shallow copy ChangeValueGiftLineItemChangeValuevoid
setDistributionChannel
(Reference distributionChannel) Channel with ChannelRoleEnumProductDistribution
.void
setProduct
(Reference product) Reference to a Product.void
setSupplyChannel
(Reference supplyChannel) Channel with ChannelRoleEnumInventorySupply
.void
setVariantId
(Integer variantId) id
of the ProductVariant.static com.fasterxml.jackson.core.type.TypeReference<ChangeValueGiftLineItemChangeValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.history.models.change_value.ChangeValueChangeValue
withChangeValueChangeValue
-
Field Details
-
GIFT_LINE_ITEM
discriminator value for ChangeValueGiftLineItemChangeValue- See Also:
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceChangeValueChangeValue
- Returns:
- type
-
getProduct
Reference to a Product.
- Returns:
- product
-
getVariantId
id
of the ProductVariant.- Returns:
- variantId
-
getSupplyChannel
Channel with ChannelRoleEnum
InventorySupply
.- Returns:
- supplyChannel
-
getDistributionChannel
Channel with ChannelRoleEnum
ProductDistribution
.- Returns:
- distributionChannel
-
setProduct
Reference to a Product.
- Parameters:
product
- value to be set
-
setVariantId
id
of the ProductVariant.- Parameters:
variantId
- value to be set
-
setSupplyChannel
Channel with ChannelRoleEnum
InventorySupply
.- Parameters:
supplyChannel
- value to be set
-
setDistributionChannel
Channel with ChannelRoleEnum
ProductDistribution
.- Parameters:
distributionChannel
- value to be set
-
of
factory method- Returns:
- instance of ChangeValueGiftLineItemChangeValue
-
of
factory method to create a shallow copy ChangeValueGiftLineItemChangeValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ChangeValueGiftLineItemChangeValue deepCopy(@Nullable ChangeValueGiftLineItemChangeValue template) factory method to create a deep copy of ChangeValueGiftLineItemChangeValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChangeValueGiftLineItemChangeValue- Returns:
- builder
-
builder
static ChangeValueGiftLineItemChangeValueBuilder builder(ChangeValueGiftLineItemChangeValue template) create builder for ChangeValueGiftLineItemChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withChangeValueGiftLineItemChangeValue
default <T> T withChangeValueGiftLineItemChangeValue(Function<ChangeValueGiftLineItemChangeValue, 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<ChangeValueGiftLineItemChangeValue> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-