Interface ChangeValueRelativeChangeValue
- All Superinterfaces:
ChangeValueChangeValue
ChangeValueRelativeChangeValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeValueRelativeChangeValue changeValueRelativeChangeValue = ChangeValueRelativeChangeValue.builder()
.permyriad(1)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ChangeValueRelativeChangeValuebuilder
(ChangeValueRelativeChangeValue template) create builder for ChangeValueRelativeChangeValue instancedeepCopy
(ChangeValueRelativeChangeValue template) factory method to create a deep copy of ChangeValueRelativeChangeValue@NotNull Integer
Fraction (per ten thousand) the price is reduced by.@NotNull String
getType()
of()
factory methodof
(ChangeValueRelativeChangeValue template) factory method to create a shallow copy ChangeValueRelativeChangeValuevoid
setPermyriad
(Integer permyriad) Fraction (per ten thousand) the price is reduced by.static com.fasterxml.jackson.core.type.TypeReference<ChangeValueRelativeChangeValue>
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
-
RELATIVE
discriminator value for ChangeValueRelativeChangeValue- See Also:
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceChangeValueChangeValue
- Returns:
- type
-
getPermyriad
Fraction (per ten thousand) the price is reduced by. For example, 1000 results in a 10% price reduction.
- Returns:
- permyriad
-
setPermyriad
Fraction (per ten thousand) the price is reduced by. For example, 1000 results in a 10% price reduction.
- Parameters:
permyriad
- value to be set
-
of
factory method- Returns:
- instance of ChangeValueRelativeChangeValue
-
of
factory method to create a shallow copy ChangeValueRelativeChangeValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ChangeValueRelativeChangeValue deepCopy(@Nullable ChangeValueRelativeChangeValue template) factory method to create a deep copy of ChangeValueRelativeChangeValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChangeValueRelativeChangeValue- Returns:
- builder
-
builder
create builder for ChangeValueRelativeChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withChangeValueRelativeChangeValue
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<ChangeValueRelativeChangeValue> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-