Class EventResponseBuilder

java.lang.Object
com.moesif.api.models.EventResponseBuilder

public class EventResponseBuilder extends Object
  • Constructor Details

    • EventResponseBuilder

      public EventResponseBuilder()
      Default constructor to initialize the instance
  • Method Details

    • time

      public EventResponseBuilder time(Date time)
      Time when response received
      Parameters:
      time - the field to set
      Returns:
      itself
    • status

      public EventResponseBuilder status(int status)
      HTTP Status code such as 200
      Parameters:
      status - the field to set
      Returns:
      itself
    • headers

      public EventResponseBuilder headers(Map<String,String> headers)
      Key/Value map of response headers
      Parameters:
      headers - the field to set
      Returns:
      itself
    • body

      public EventResponseBuilder body(Object body)
      Response body
      Parameters:
      body - the field to set
      Returns:
      itself
    • transferEncoding

      public EventResponseBuilder transferEncoding(String transferEncoding)
      Transfer Encoding of the body such as "base64", null value implies "json" transfer encoding
      Parameters:
      transferEncoding - the field to set
      Returns:
      itself
    • ipAddress

      public EventResponseBuilder ipAddress(String ipAddress)
      IP Address from the response, such as the server IP Address
      Parameters:
      ipAddress - the field to set
      Returns:
      itself
    • build

      public EventResponseModel build()
      Build the instance with the given values
      Returns:
      The built EventResponseModel