Class PhoneNumberWithCid
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.PhoneNumberWithCid
-
public class PhoneNumberWithCid extends java.lang.ObjectPhoneNumberWithCidAn object defining the message recipient telephone number with the message's custom identifier assigned by the User
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhoneNumberWithCid.Builder
-
Constructor Summary
Constructors Constructor Description PhoneNumberWithCid(java.lang.String nr)PhoneNumberWithCid(java.lang.String nr, java.util.Optional<java.lang.String> cid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhoneNumberWithCid.Builderbuilder()java.util.Optional<java.lang.String>cid()Custom message ID assigned by the Userbooleanequals(java.lang.Object o)inthashCode()java.lang.Stringnr()A telephone number in international format (with a plus sign and the country code at the beginning, e.g.java.lang.StringtoString()PhoneNumberWithCidwithCid(java.lang.String cid)Custom message ID assigned by the UserPhoneNumberWithCidwithCid(java.util.Optional<java.lang.String> cid)Custom message ID assigned by the UserPhoneNumberWithCidwithNr(java.lang.String nr)A telephone number in international format (with a plus sign and the country code at the beginning, e.g.
-
-
-
Method Detail
-
nr
public java.lang.String nr()
A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
-
cid
public java.util.Optional<java.lang.String> cid()
Custom message ID assigned by the User
-
builder
public static PhoneNumberWithCid.Builder builder()
-
withNr
public PhoneNumberWithCid withNr(java.lang.String nr)
A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
-
withCid
public PhoneNumberWithCid withCid(java.lang.String cid)
Custom message ID assigned by the User
-
withCid
public PhoneNumberWithCid withCid(java.util.Optional<java.lang.String> cid)
Custom message ID assigned by the User
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-