Package com.moesif.api.models
Class CompanyBuilder
java.lang.Object
com.moesif.api.models.CompanyBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance with the given valuescampaign(CampaignModel campaign) the campaigncompanyDomain(String companyDomain) Company Domain StringUser's company_id stringLast seen IP Address of the user if knownCustom user metadata as a JSON objectmodifiedTime(Date modifiedTime) Timestamp of when user was updated.sessionToken(String sessionToken) End user's auth/session token
-
Constructor Details
-
CompanyBuilder
public CompanyBuilder()Default constructor to initialize the instance
-
-
Method Details
-
companyId
User's company_id string- Parameters:
companyId- the field to set- Returns:
- itself
-
modifiedTime
Timestamp of when user was updated. (Moesif will use the current time if not set)- Parameters:
modifiedTime- the field to set- Returns:
- itself
-
ipAddress
Last seen IP Address of the user if known- Parameters:
ipAddress- the field to set- Returns:
- itself
-
sessionToken
End user's auth/session token- Parameters:
sessionToken- the field to set- Returns:
- itself
-
companyDomain
Company Domain String- Parameters:
companyDomain- the field to set- Returns:
- itself
-
metadata
Custom user metadata as a JSON object- Parameters:
metadata- the field to set- Returns:
- itself
-
campaign
the campaign- Parameters:
campaign- the field to set- Returns:
- itself
-
build
Build the instance with the given values- Returns:
- The built UserModel
-