Package com.moesif.api.models
Class EventResponseBuilder
- java.lang.Object
-
- com.moesif.api.models.EventResponseBuilder
-
public class EventResponseBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description EventResponseBuilder()Default constructor to initialize the instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventResponseBuilderbody(Object body)Response bodyEventResponseModelbuild()Build the instance with the given valuesEventResponseBuilderheaders(Map<String,String> headers)Key/Value map of response headersEventResponseBuilderipAddress(String ipAddress)IP Address from the response, such as the server IP AddressEventResponseBuilderstatus(int status)HTTP Status code such as 200EventResponseBuildertime(Date time)Time when response receivedEventResponseBuildertransferEncoding(String transferEncoding)Transfer Encoding of the body such as "base64", null value implies "json" transfer encoding
-
-
-
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
-
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
-
-