Class MatchCriteriaTwilio

  • All Implemented Interfaces:
    MatchCriteria

    public class MatchCriteriaTwilio
    extends java.lang.Object
    implements MatchCriteria
    MatchCriteriaTwilio
    • Field Detail

      • JSON_PROPERTY_TYPE

        public static final java.lang.String JSON_PROPERTY_TYPE
        See Also:
        Constant Field Values
      • JSON_PROPERTY_INTEGRATION_ID

        public static final java.lang.String JSON_PROPERTY_INTEGRATION_ID
        See Also:
        Constant Field Values
      • JSON_PROPERTY_PRIMARY

        public static final java.lang.String JSON_PROPERTY_PRIMARY
        See Also:
        Constant Field Values
      • JSON_PROPERTY_PHONE_NUMBER

        public static final java.lang.String JSON_PROPERTY_PHONE_NUMBER
        See Also:
        Constant Field Values
    • Constructor Detail

      • MatchCriteriaTwilio

        public MatchCriteriaTwilio()
    • Method Detail

      • getType

        public java.lang.String getType()
        The channel type.
        Specified by:
        getType in interface MatchCriteria
        Returns:
        type
      • setType

        public void setType​(java.lang.String type)
      • getIntegrationId

        public java.lang.String getIntegrationId()
        The ID of the integration to link. Must match the provided type.
        Returns:
        integrationId
      • setIntegrationId

        public void setIntegrationId​(java.lang.String integrationId)
      • getPrimary

        @Nullable
        public java.lang.Boolean getPrimary()
        Flag indicating whether the client will become the primary for the target conversation once linking is complete.
        Returns:
        primary
      • setPrimary

        public void setPrimary​(java.lang.Boolean primary)
      • getPhoneNumber

        public java.lang.String getPhoneNumber()
        The user’s phone number. It must contain the + prefix and the country code. Examples of valid phone numbers: +1 212-555-2368, +12125552368, +1 212 555 2368. Examples of invalid phone numbers: 212 555 2368, 1 212 555 2368.
        Returns:
        phoneNumber
      • setPhoneNumber

        public void setPhoneNumber​(java.lang.String phoneNumber)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object