Package com.moesif.api.models
Class EventRequestBuilder
- java.lang.Object
-
- com.moesif.api.models.EventRequestBuilder
-
public class EventRequestBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description EventRequestBuilder()Default constructor to initialize the instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventRequestBuilderapiVersion(String apiVersion)Optionally tag the call with your API or App versionEventRequestBuilderbody(Object body)Request bodyEventRequestModelbuild()Build the instance with the given valuesEventRequestBuilderheaders(Map<String,String> headers)Key/Value map of request headersEventRequestBuilderipAddress(String ipAddress)IP Address of the client if known.EventRequestBuildertime(Date time)Time when request was madeEventRequestBuildertransferEncoding(String transferEncoding)Transfer Encoding of the body such as "base64", null value implies "json" transfer encodingEventRequestBuilderuri(String uri)full uri of request such as https://www.example.com/my_path?param=1EventRequestBuilderverb(String verb)verb of the API request such as GET or POST
-
-
-
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
-
headers
public EventRequestBuilder headers(Map<String,String> headers)
Key/Value map of request headers- Parameters:
headers- 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
-
body
public EventRequestBuilder body(Object body)
Request body- Parameters:
body- 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
-
-