Class TicketResponse.Builder

java.lang.Object
com.sportradar.mbs.sdk.entities.response.TicketResponse.Builder
Enclosing class:
TicketResponse

public static class TicketResponse.Builder extends Object
Represents a builder for the TicketResponse class.
  • Method Details

    • build

      public TicketResponse build()
      Builds the TicketResponse instance.
      Returns:
      The built TicketResponse instance.
    • setCode

      public TicketResponse.Builder setCode(int value)
      Sets the code of the ticket response.
      Parameters:
      value - The code of the ticket response.
      Returns:
      The TicketResponse.Builder instance.
    • setExchangeRate

      public TicketResponse.Builder setExchangeRate(ExchangeRate... value)
      Sets the exchange rates of the ticket response.
      Parameters:
      value - The exchange rates of the ticket response.
      Returns:
      The TicketResponse.Builder instance.
    • setSignature

      public TicketResponse.Builder setSignature(String value)
      Sets the signature of the ticket response.
      Parameters:
      value - The signature of the ticket response.
      Returns:
      The TicketResponse.Builder instance.
    • setBetDetails

      public TicketResponse.Builder setBetDetails(BetDetail... value)
      Sets the bet details of the ticket response.
      Parameters:
      value - The bet details of the ticket response.
      Returns:
      The TicketResponse.Builder instance.
    • setMessage

      public TicketResponse.Builder setMessage(String value)
      Sets the message of the ticket response.
      Parameters:
      value - The message of the ticket response.
      Returns:
      The TicketResponse.Builder instance.
    • setTicketId

      public TicketResponse.Builder setTicketId(String value)
      Sets the ticket ID of the ticket response.
      Parameters:
      value - The ticket ID of the ticket response.
      Returns:
      The TicketResponse.Builder instance.
    • setStatus

      public TicketResponse.Builder setStatus(AcceptanceStatus value)
      Sets the acceptance status of the ticket response.
      Parameters:
      value - The acceptance status of the ticket response.
      Returns:
      The TicketResponse.Builder instance.