Class PhoneNumber

java.lang.Object
com.mypurecloud.sdk.v2.model.PhoneNumber
All Implemented Interfaces:
Serializable

public class PhoneNumber extends Object implements Serializable
PhoneNumber
See Also:
  • Constructor Details

    • PhoneNumber

      public PhoneNumber()
    • PhoneNumber

      public PhoneNumber(Boolean initWithEmptyList)
  • Method Details

    • display

      public PhoneNumber display(String display)
      The displayed form of the phone number string. Users should input the phone number in this field, but it will be altered by the API on write. If the phone number can be read as E164, the value will be replaced with international formatted-version of the number. If the number cannot be read as E164, the value will be preserved as-is. In both cases, the provided input string will be copied to the userInput field. Max: 512 characters.
    • getDisplay

      public String getDisplay()
    • setDisplay

      public void setDisplay(String display)
    • extension

      public PhoneNumber extension(Long extension)
      An optional extension for the provided phone number.
    • getExtension

      public Long getExtension()
    • setExtension

      public void setExtension(Long extension)
    • acceptsSMS

      public PhoneNumber acceptsSMS(Boolean acceptsSMS)
      Whether this phone number can accept SMS messages.
    • getAcceptsSMS

      public Boolean getAcceptsSMS()
    • setAcceptsSMS

      public void setAcceptsSMS(Boolean acceptsSMS)
    • normalizationCountryCode

      public PhoneNumber normalizationCountryCode(String normalizationCountryCode)
      The country code that will be used for E164 conversion of a provided phone number. If the country code is omitted from the provided phone number, the country code provided in this field will be used during the E164 conversion attempt. If this field is left empty, the default country code for any provided phone number that does not explicitly include a country code is assumed to be +1 (North America).
    • getNormalizationCountryCode

      public String getNormalizationCountryCode()
    • setNormalizationCountryCode

      public void setNormalizationCountryCode(String normalizationCountryCode)
    • userInput

      public PhoneNumber userInput(String userInput)
      The user-inputted phone number string that was provided to the display field on write. This field is not user-writeable and will always be set by the system.
    • getUserInput

      public String getUserInput()
    • setUserInput

      public void setUserInput(String userInput)
    • e164

      public PhoneNumber e164(String e164)
      The E164-formatted form of the provided phone number. This field is not user-writeable and will only be set when the provided phone number could be read as E164.
    • getE164

      public String getE164()
    • setE164

      public void setE164(String e164)
    • countryCode

      public PhoneNumber countryCode(String countryCode)
      The detected country code from the provided phone number. This field is not user-writeable and will only be set when the provided phone number could be read as E164. Max: 4 characters.
    • getCountryCode

      public String getCountryCode()
    • setCountryCode

      public void setCountryCode(String countryCode)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object