-
public class VisitorInfoUpdateRequest.BuilderUsed for creating the VisitorInfoUpdateRequest.
If some visitor information is not set or is
{@code null}then it will not be updated on the server.Usage example:LinkedTreeMapcustomAttributes = new LinkedTreeMap<>(); customAttributes.put("age", "21+"); customAttributes.put("custom_id", "H5AC76"); Glia.updateVisitorInfo( new VisitorInfoUpdateRequest.Builder() .setName("Mr. Example Man") .setEmail("mr.example.man@email.com") .setCustomAttributes(customAttributes) .build(), error -> { /* Handle callback */ } );
-
-
Field Summary
Fields Modifier and Type Field Description private Stringnameprivate Stringemailprivate Stringphoneprivate Stringnoteprivate StringexternalIdprivate LinkedTreeMap<String, String>customAttributesprivate VisitorInfoUpdateRequest.NoteUpdateMethodnoteUpdateMethodprivate VisitorInfoUpdateRequest.CustomAttributesUpdateMethodcustomAttrsUpdateMethod
-
Method Summary
Modifier and Type Method Description VisitorInfoUpdateRequest.BuildersetName(String name)VisitorInfoUpdateRequest.BuildersetEmail(String email)VisitorInfoUpdateRequest.BuildersetPhone(String phone)VisitorInfoUpdateRequest.BuildersetNote(String note)VisitorInfoUpdateRequest.BuildersetExternalId(@Nullable() String externalId)VisitorInfoUpdateRequest.BuildersetCustomAttributes(LinkedTreeMap<String, String> customAttributes)VisitorInfoUpdateRequest.BuildersetNoteUpdateMethod(VisitorInfoUpdateRequest.NoteUpdateMethod noteUpdateMethod)VisitorInfoUpdateRequest.BuildersetCustomAttrsUpdateMethod(VisitorInfoUpdateRequest.CustomAttributesUpdateMethod customAttrsUpdateMethod)VisitorInfoUpdateRequestbuild()-
-
Method Detail
-
setName
VisitorInfoUpdateRequest.Builder setName(String name)
-
setEmail
VisitorInfoUpdateRequest.Builder setEmail(String email)
-
setPhone
VisitorInfoUpdateRequest.Builder setPhone(String phone)
-
setNote
VisitorInfoUpdateRequest.Builder setNote(String note)
-
setExternalId
@NonNull() VisitorInfoUpdateRequest.Builder setExternalId(@Nullable() String externalId)
-
setCustomAttributes
VisitorInfoUpdateRequest.Builder setCustomAttributes(LinkedTreeMap<String, String> customAttributes)
-
setNoteUpdateMethod
VisitorInfoUpdateRequest.Builder setNoteUpdateMethod(VisitorInfoUpdateRequest.NoteUpdateMethod noteUpdateMethod)
-
setCustomAttrsUpdateMethod
VisitorInfoUpdateRequest.Builder setCustomAttrsUpdateMethod(VisitorInfoUpdateRequest.CustomAttributesUpdateMethod customAttrsUpdateMethod)
-
build
VisitorInfoUpdateRequest build()
-
-
-
-