Class Bet.Builder
java.lang.Object
com.sportradar.mbs.sdk.entities.common.Bet.Builder
- Enclosing class:
Bet
A builder class for creating instances of the Bet class.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns the instance of the Bet class.Sets the ID of the bet.setContext
(BetContext value) Sets the context of the bet.setSelections
(Selection... value) Sets the selections of the bet.Sets the stake of the bet.
-
Method Details
-
build
Builds and returns the instance of the Bet class.- Returns:
- The instance of the Bet class.
-
setStake
Sets the stake of the bet.- Parameters:
value
- The stake of the bet.- Returns:
- The builder instance.
-
setSelections
Sets the selections of the bet.- Parameters:
value
- The selections of the bet.- Returns:
- The builder instance.
-
setBetId
Sets the ID of the bet.- Parameters:
value
- The ID of the bet.- Returns:
- The builder instance.
-
setContext
Sets the context of the bet.- Parameters:
value
- The context of the bet.- Returns:
- The builder instance.
-