Class EventResponseBuilder


  • public class EventResponseBuilder
    extends Object
    • Constructor Detail

      • EventResponseBuilder

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

      • 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
      • 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