Record Class SmsClient.Sms
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.sms.api.services.SmsClient.Sms
- Enclosing interface:
SmsClient
public static record SmsClient.Sms(SmsClient.SmsRecipient recipient, String content, @Nullable String smsSender, @Nullable String senderAddressType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSms(SmsClient.SmsRecipient recipient, String content, @Nullable String smsSender, @Nullable String senderAddressType) Creates an instance of aSmsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static SmsClient.Smsof(SmsClient.SmsRecipient recipient, String content, @Nullable Entity sender) Returns the value of therecipientrecord component.@Nullable StringReturns the value of thesenderAddressTyperecord component.@Nullable StringReturns the value of thesmsSenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Sms
public Sms(SmsClient.SmsRecipient recipient, String content, @Nullable String smsSender, @Nullable String senderAddressType) Creates an instance of aSmsrecord class.- Parameters:
recipient- the value for therecipientrecord componentcontent- the value for thecontentrecord componentsmsSender- the value for thesmsSenderrecord componentsenderAddressType- the value for thesenderAddressTyperecord component
-
-
Method Details
-
of
public static SmsClient.Sms of(SmsClient.SmsRecipient recipient, String content, @Nullable Entity sender) -
toString
-
hashCode
-
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). -
recipient
Returns the value of therecipientrecord component.- Returns:
- the value of the
recipientrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
smsSender
Returns the value of thesmsSenderrecord component.- Returns:
- the value of the
smsSenderrecord component
-
senderAddressType
Returns the value of thesenderAddressTyperecord component.- Returns:
- the value of the
senderAddressTyperecord component
-