Class Response.Builder

java.lang.Object
com.sportradar.mbs.sdk.entities.internal.Response.Builder
Enclosing class:
Response

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

    • build

      public Response build()
      Builds and returns the Response instance.
      Returns:
      The Response instance.
    • setCorrelationId

      public Response.Builder setCorrelationId(String value)
      Sets the correlation ID of the response.
      Parameters:
      value - The correlation ID to set.
      Returns:
      The Builder instance.
    • setTimestampUtc

      public Response.Builder setTimestampUtc(long value)
      Sets the UTC millis timestamp of the response.
      Parameters:
      value - The UTC millis timestamp to set.
      Returns:
      The Builder instance.
    • setOperation

      public Response.Builder setOperation(String value)
      Sets the operation of the response.
      Parameters:
      value - The operation to set.
      Returns:
      The Builder instance.
    • setVersion

      public Response.Builder setVersion(String value)
      Sets the version of the response.
      Parameters:
      value - The version to set.
      Returns:
      The Builder instance.
    • setContent

      public Response.Builder setContent(ContentResponse value)
      Sets the content of the response.
      Parameters:
      value - The content to set.
      Returns:
      The Builder instance.