Package com.moesif.api.models
Class EventRequestBuilder
java.lang.Object
com.moesif.api.models.EventRequestBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiVersion(String apiVersion) Optionally tag the call with your API or App versionRequest bodybuild()Build the instance with the given valuesKey/Value map of request headersIP Address of the client if known.Time when request was madetransferEncoding(String transferEncoding) Transfer Encoding of the body such as "base64", null value implies "json" transfer encodingfull uri of request such as https://www.example.com/my_path?param=1verb of the API request such as GET or POST
-
Constructor Details
-
EventRequestBuilder
public EventRequestBuilder()Default constructor to initialize the instance
-
-
Method Details
-
time
Time when request was made- Parameters:
time- the field to set- Returns:
- itself
-
uri
full uri of request such as https://www.example.com/my_path?param=1- Parameters:
uri- the field to set- Returns:
- itself
-
verb
verb of the API request such as GET or POST- Parameters:
verb- the field to set- Returns:
- itself
-
headers
Key/Value map of request headers- Parameters:
headers- the field to set- Returns:
- itself
-
apiVersion
Optionally tag the call with your API or App version- Parameters:
apiVersion- the field to set- Returns:
- itself
-
ipAddress
IP Address of the client if known.- Parameters:
ipAddress- the field to set- Returns:
- itself
-
body
Request 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
-
build
Build the instance with the given values- Returns:
- the built EventRequestModel
-