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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ChangeValueGiftLineItemChangeValue -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ChangeValueGiftLineItemChangeValuebuilder(ChangeValueGiftLineItemChangeValue template) create builder for ChangeValueGiftLineItemChangeValue instancecopyDeep()deepCopy(ChangeValueGiftLineItemChangeValue template) factory method to create a deep copy of ChangeValueGiftLineItemChangeValue@NotNull @Valid ReferenceChannel with ChannelRoleEnumProductDistribution.@NotNull @Valid ReferenceReference to a Product.@Valid ReferenceChannel with ChannelRoleEnumInventorySupply.@NotNull StringgetType()@NotNull Integeridof the ProductVariant.of()factory methodof(ChangeValueGiftLineItemChangeValue template) factory method to create a shallow copy ChangeValueGiftLineItemChangeValuevoidsetDistributionChannel(Reference distributionChannel) Channel with ChannelRoleEnumProductDistribution.voidsetProduct(Reference product) Reference to a Product.voidsetSupplyChannel(Reference supplyChannel) Channel with ChannelRoleEnumInventorySupply.voidsetVariantId(Integer variantId) idof the ProductVariant.static com.fasterxml.jackson.core.type.TypeReference<ChangeValueGiftLineItemChangeValue>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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:
getTypein interfaceChangeValueChangeValue- Returns:
- type
-
getProduct
Reference to a Product.
- Returns:
- product
-
getVariantId
idof 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
idof 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
-
copyDeep
ChangeValueGiftLineItemChangeValue copyDeep()- Specified by:
copyDeepin interfaceChangeValueChangeValue
-
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
-