Class SubRateBuilder
java.lang.Object
com.commercetools.history.models.common.SubRateBuilder
SubRateBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SubRate subRate = SubRate.builder()
.name("{name}")
.amount(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionset the value to the amountbuild()
builds SubRate with checking for non-null required valuesbuilds SubRate without checking for non-null required valuesvalue of amount}getName()
value of name}set the value to the namestatic SubRateBuilder
of()
factory method for an instance of SubRateBuilderstatic SubRateBuilder
create builder for SubRate instance
-
Constructor Details
-
SubRateBuilder
public SubRateBuilder()
-
-
Method Details
-
name
set the value to the name- Parameters:
name
- value to be set- Returns:
- Builder
-
amount
set the value to the amount- Parameters:
amount
- value to be set- Returns:
- Builder
-
getName
value of name}- Returns:
- name
-
getAmount
value of amount}- Returns:
- amount
-
build
builds SubRate with checking for non-null required values -
buildUnchecked
builds SubRate without checking for non-null required values- Returns:
- SubRate
-
of
factory method for an instance of SubRateBuilder- Returns:
- builder
-
of
create builder for SubRate instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-