Record Class WebsmsRestHelper.SmsApiRequest
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.sms.impl.services.WebsmsRestHelper.SmsApiRequest
- Enclosing class:
WebsmsRestHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageContentrecord component.Returns the value of therecipientAddressListrecord component.@Nullable StringReturns the value of thesenderAddressrecord component.@Nullable StringReturns the value of thesenderAddressTyperecord component.test()Returns the value of thetestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SmsApiRequest
public SmsApiRequest(String messageContent, List<String> recipientAddressList, @Nullable String senderAddress, @Nullable String senderAddressType, Boolean test) Creates an instance of aSmsApiRequestrecord class.- Parameters:
messageContent- the value for themessageContentrecord componentrecipientAddressList- the value for therecipientAddressListrecord componentsenderAddress- the value for thesenderAddressrecord componentsenderAddressType- the value for thesenderAddressTyperecord componenttest- the value for thetestrecord component
-
-
Method Details
-
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). -
messageContent
Returns the value of themessageContentrecord component.- Returns:
- the value of the
messageContentrecord component
-
recipientAddressList
-
senderAddress
Returns the value of thesenderAddressrecord component.- Returns:
- the value of the
senderAddressrecord component
-
senderAddressType
Returns the value of thesenderAddressTyperecord component.- Returns:
- the value of the
senderAddressTyperecord component
-
test
Returns the value of thetestrecord component.- Returns:
- the value of the
testrecord component
-