Class Amount.Builder

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

public static class Amount.Builder extends Object
Builder class for creating instances of the Amount class.
  • Method Details

    • build

      public Amount build()
      Builds and returns the Amount instance.
      Returns:
      the built Amount instance
    • setCurrency

      public Amount.Builder setCurrency(String value)
      Sets the currency value of the amount being built.
      Parameters:
      value - the currency value to set
      Returns:
      the Builder instance
    • setValue

      public Amount.Builder setValue(BigDecimal value)
      Sets the numeric value of the amount being built.
      Parameters:
      value - the numeric value to set
      Returns:
      the Builder instance