Class Bet.Builder

java.lang.Object
com.sportradar.mbs.sdk.entities.common.Bet.Builder
Enclosing class:
Bet

public static class Bet.Builder extends Object
A builder class for creating instances of the Bet class.
  • Method Details

    • build

      public Bet build()
      Builds and returns the instance of the Bet class.
      Returns:
      The instance of the Bet class.
    • setStake

      public Bet.Builder setStake(Stake... value)
      Sets the stake of the bet.
      Parameters:
      value - The stake of the bet.
      Returns:
      The builder instance.
    • setSelections

      public Bet.Builder setSelections(Selection... value)
      Sets the selections of the bet.
      Parameters:
      value - The selections of the bet.
      Returns:
      The builder instance.
    • setBetId

      public Bet.Builder setBetId(String value)
      Sets the ID of the bet.
      Parameters:
      value - The ID of the bet.
      Returns:
      The builder instance.
    • setContext

      public Bet.Builder setContext(BetContext value)
      Sets the context of the bet.
      Parameters:
      value - The context of the bet.
      Returns:
      The builder instance.