Class NumberIdentity

java.lang.Object
com.sinch.sdk.domains.verification.models.v1.Identity
com.sinch.sdk.domains.verification.models.v1.NumberIdentity

public class NumberIdentity extends Identity
Identity based onto a phone number
  • Method Details

    • getEndpoint

      public String getEndpoint()
      Get related endpoint

      See NumberIdentity.Builder.setEndpoint(String) setter

      Returns:
      Phone number value
    • toString

      public String toString()
      Overrides:
      toString in class Identity
    • valueOf

      public static NumberIdentity valueOf(String phoneNumber)
      Create a NumberIdentity from a phone number as a String
      Parameters:
      phoneNumber - String representation of phone number
      Returns:
      Instance of NumberIdentity
      Since:
      1.0
    • valueOf

      public static NumberIdentity valueOf(E164PhoneNumber phoneNumber)
      Create a NumberIdentity from a phone number as a E164PhoneNumber
      Parameters:
      phoneNumber - E164PhoneNumber representation of phone number
      Returns:
      Instance of NumberIdentity
      Since:
      1.0
    • equals

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

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

      public static NumberIdentity.Builder builder()
      Getting Builder
      Returns:
      New Builder instance