public static class

ChatEntityField.Builder

extends Object
java.lang.Object
   ↳ com.salesforce.android.chat.core.model.ChatEntityField.Builder

Class Overview

Used to construct ChatEntityField objects for interacting with the fields of a Salesforce object via ChatEntity.

Summary

Public Constructors
Builder()
Public Methods
ChatEntityField build(String objectFieldName, ChatUserData chatUserData)
Create a new ChatEntityField that defines how Salesforce records are discovered and created by the value within a field.
ChatEntityField.Builder doCreate(boolean doCreate)
Define whether or not a new Salesforce record should be created if no matching results are found after performing a lookup if specified by passing true to doFind(boolean).
ChatEntityField.Builder doFind(boolean doFind)
Define whether or not this ChatEntityField will perform a lookup query for records that match the ChatUserData value within the specified Salesforce object field.
ChatEntityField.Builder isExactMatch(boolean isExactMatch)
Define whether or not the lookup should match Salesforce record results based on an exact match with the value provided by ChatUserData.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public ChatEntityField build (String objectFieldName, ChatUserData chatUserData)

Create a new ChatEntityField that defines how Salesforce records are discovered and created by the value within a field.

Parameters
objectFieldName The field name of the Salesforce object that a ChatEntity relates to
chatUserData The ChatUserData used to define what data is applied to matching Salesforce records
Returns

public ChatEntityField.Builder doCreate (boolean doCreate)

Define whether or not a new Salesforce record should be created if no matching results are found after performing a lookup if specified by passing true to doFind(boolean). Default value is false, meaning no new records will be created if none exist.

public ChatEntityField.Builder doFind (boolean doFind)

Define whether or not this ChatEntityField will perform a lookup query for records that match the ChatUserData value within the specified Salesforce object field. Default value is false, meaning no lookup will be performed.

public ChatEntityField.Builder isExactMatch (boolean isExactMatch)

Define whether or not the lookup should match Salesforce record results based on an exact match with the value provided by ChatUserData. Default value is false, meaning lookup queries may match with record fields that are not an exact match.