Class Amount.Builder
java.lang.Object
com.sportradar.mbs.sdk.entities.common.Amount.Builder
- Enclosing class:
Amount
Builder class for creating instances of the Amount class.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns the Amount instance.setCurrency
(String value) Sets the currency value of the amount being built.setValue
(BigDecimal value) Sets the numeric value of the amount being built.
-
Method Details
-
build
Builds and returns the Amount instance.- Returns:
- the built Amount instance
-
setCurrency
Sets the currency value of the amount being built.- Parameters:
value
- the currency value to set- Returns:
- the Builder instance
-
setValue
Sets the numeric value of the amount being built.- Parameters:
value
- the numeric value to set- Returns:
- the Builder instance
-