Package com.moesif.api.models
Class EventResponseBuilder
java.lang.Object
com.moesif.api.models.EventResponseBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResponse bodybuild()Build the instance with the given valuesKey/Value map of response headersIP Address from the response, such as the server IP Addressstatus(int status) HTTP Status code such as 200Time when response receivedtransferEncoding(String transferEncoding) Transfer Encoding of the body such as "base64", null value implies "json" transfer encoding
-
Constructor Details
-
EventResponseBuilder
public EventResponseBuilder()Default constructor to initialize the instance
-
-
Method Details
-
time
Time when response received- Parameters:
time- the field to set- Returns:
- itself
-
status
HTTP Status code such as 200- Parameters:
status- the field to set- Returns:
- itself
-
headers
Key/Value map of response headers- Parameters:
headers- the field to set- Returns:
- itself
-
body
Response body- Parameters:
body- the field to set- Returns:
- itself
-
transferEncoding
Transfer Encoding of the body such as "base64", null value implies "json" transfer encoding- Parameters:
transferEncoding- the field to set- Returns:
- itself
-
ipAddress
IP Address from the response, such as the server IP Address- Parameters:
ipAddress- the field to set- Returns:
- itself
-
build
Build the instance with the given values- Returns:
- The built EventResponseModel
-