Class EventRequestBuilder


  • public class EventRequestBuilder
    extends Object
    • Constructor Detail

      • EventRequestBuilder

        public EventRequestBuilder()
        Default constructor to initialize the instance
    • Method Detail

      • time

        public EventRequestBuilder time​(Date time)
        Time when request was made
        Parameters:
        time - the field to set
        Returns:
        itself
      • uri

        public EventRequestBuilder uri​(String uri)
        full uri of request such as https://www.example.com/my_path?param=1
        Parameters:
        uri - the field to set
        Returns:
        itself
      • verb

        public EventRequestBuilder verb​(String verb)
        verb of the API request such as GET or POST
        Parameters:
        verb - the field to set
        Returns:
        itself
      • apiVersion

        public EventRequestBuilder apiVersion​(String apiVersion)
        Optionally tag the call with your API or App version
        Parameters:
        apiVersion - the field to set
        Returns:
        itself
      • ipAddress

        public EventRequestBuilder ipAddress​(String ipAddress)
        IP Address of the client if known.
        Parameters:
        ipAddress - the field to set
        Returns:
        itself
      • transferEncoding

        public EventRequestBuilder 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
      • build

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