Class ChangeValueRelativeChangeValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.ChangeValueRelativeChangeValueBuilder
- All Implemented Interfaces:
Builder<ChangeValueRelativeChangeValue>
public class ChangeValueRelativeChangeValueBuilder
extends Object
implements Builder<ChangeValueRelativeChangeValue>
ChangeValueRelativeChangeValueBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ChangeValueRelativeChangeValue with checking for non-null required valuesbuilds ChangeValueRelativeChangeValue without checking for non-null required valuesFraction (per ten thousand) the price is reduced by.of()
factory method for an instance of ChangeValueRelativeChangeValueBuilderof
(ChangeValueRelativeChangeValue template) create builder for ChangeValueRelativeChangeValue instanceFraction (per ten thousand) the price is reduced by.
-
Constructor Details
-
ChangeValueRelativeChangeValueBuilder
public ChangeValueRelativeChangeValueBuilder()
-
-
Method Details
-
permyriad
Fraction (per ten thousand) the price is reduced by. For example, 1000 results in a 10% price reduction.
- Parameters:
permyriad
- value to be set- Returns:
- Builder
-
getPermyriad
Fraction (per ten thousand) the price is reduced by. For example, 1000 results in a 10% price reduction.
- Returns:
- permyriad
-
build
builds ChangeValueRelativeChangeValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<ChangeValueRelativeChangeValue>
- Returns:
- ChangeValueRelativeChangeValue
-
buildUnchecked
builds ChangeValueRelativeChangeValue without checking for non-null required values- Returns:
- ChangeValueRelativeChangeValue
-
of
factory method for an instance of ChangeValueRelativeChangeValueBuilder- Returns:
- builder
-
of
create builder for ChangeValueRelativeChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-