Package com.whatsapp.api.domain.phone
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 StatusqualityRating- 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 nameplatformType- 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.
- 
Constructor Summary
ConstructorsConstructorDescriptionPhoneNumber(String displayPhoneNumber, QualityRatingType qualityRating, String verifiedName, String id, String codeVerificationStatus, NameStatusType nameStatus, PlatformType platformType, Throughput throughput) Creates an instance of aPhoneNumberrecord class. - 
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecodeVerificationStatusrecord component.Returns the value of thedisplayPhoneNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thenameStatusrecord component.Returns the value of theplatformTyperecord component.Returns the value of thequalityRatingrecord component.Returns the value of thethroughputrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverifiedNamerecord component. 
- 
Constructor Details
- 
PhoneNumber
public PhoneNumber(String displayPhoneNumber, QualityRatingType qualityRating, String verifiedName, String id, String codeVerificationStatus, NameStatusType nameStatus, PlatformType platformType, Throughput throughput) Creates an instance of aPhoneNumberrecord class.- Parameters:
 displayPhoneNumber- the value for thedisplayPhoneNumberrecord componentqualityRating- the value for thequalityRatingrecord componentverifiedName- the value for theverifiedNamerecord componentid- the value for theidrecord componentcodeVerificationStatus- the value for thecodeVerificationStatusrecord componentnameStatus- the value for thenameStatusrecord componentplatformType- the value for theplatformTyperecord componentthroughput- the value for thethroughputrecord component
 
 - 
 - 
Method Details
- 
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. - 
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. - 
equals
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 withObjects::equals(Object,Object). - 
displayPhoneNumber
Returns the value of thedisplayPhoneNumberrecord component.- Returns:
 - the value of the 
displayPhoneNumberrecord component 
 - 
qualityRating
Returns the value of thequalityRatingrecord component.- Returns:
 - the value of the 
qualityRatingrecord component 
 - 
verifiedName
Returns the value of theverifiedNamerecord component.- Returns:
 - the value of the 
verifiedNamerecord component 
 - 
id
Returns the value of theidrecord component.- Returns:
 - the value of the 
idrecord component 
 - 
codeVerificationStatus
Returns the value of thecodeVerificationStatusrecord component.- Returns:
 - the value of the 
codeVerificationStatusrecord component 
 - 
nameStatus
Returns the value of thenameStatusrecord component.- Returns:
 - the value of the 
nameStatusrecord component 
 - 
platformType
Returns the value of theplatformTyperecord component.- Returns:
 - the value of the 
platformTyperecord component 
 - 
throughput
Returns the value of thethroughputrecord component.- Returns:
 - the value of the 
throughputrecord component 
 
 -