Record Class PhoneNumber

java.lang.Object
java.lang.Record
com.whatsapp.api.domain.phone.PhoneNumber
Record Components:
id - The ID associated with the phone number.
displayPhoneNumber - The string representation of the phone number.
nameStatus - The current status of the review of your business name.
codeVerificationStatus - Code Verification Status
qualityRating - The quality rating of the phone number based on how messages have been received by recipients in recent days. Valid values are:
  • Green: High Quality
  • Yellow: Medium Quality
  • Red: Low Quality
  • NA: Quality has not been determined
verifiedName - the verified name
platformType - Platform the business phone number is registered with.
throughput - The business phone number's Cloud API throughput level.

public record PhoneNumber(String displayPhoneNumber, QualityRatingType qualityRating, String verifiedName, String id, String codeVerificationStatus, NameStatusType nameStatus, PlatformType platformType, Throughput throughput) extends Record
The type Phone number.
See Also:
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • displayPhoneNumber

      public String displayPhoneNumber()
      Returns the value of the displayPhoneNumber record component.
      Returns:
      the value of the displayPhoneNumber record component
    • qualityRating

      public QualityRatingType qualityRating()
      Returns the value of the qualityRating record component.
      Returns:
      the value of the qualityRating record component
    • verifiedName

      public String verifiedName()
      Returns the value of the verifiedName record component.
      Returns:
      the value of the verifiedName record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • codeVerificationStatus

      public String codeVerificationStatus()
      Returns the value of the codeVerificationStatus record component.
      Returns:
      the value of the codeVerificationStatus record component
    • nameStatus

      public NameStatusType nameStatus()
      Returns the value of the nameStatus record component.
      Returns:
      the value of the nameStatus record component
    • platformType

      public PlatformType platformType()
      Returns the value of the platformType record component.
      Returns:
      the value of the platformType record component
    • throughput

      public Throughput throughput()
      Returns the value of the throughput record component.
      Returns:
      the value of the throughput record component