Package dev.postproxy.sdk.param
Record Class SendMessageParams
java.lang.Object
java.lang.Record
dev.postproxy.sdk.param.SendMessageParams
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.static SendMessageParams.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.media()Returns the value of themediarecord component.Returns the value of themediaFilesrecord component.Returns the value of theprofileGroupIdrecord component.Returns the value of thereplyMarkuprecord component.Returns the value of thereplyToExternalIdrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SendMessageParams
public SendMessageParams(String body, List<String> media, List<Path> mediaFiles, String tag, String replyToExternalId, Map<String, Object> replyMarkup, String profileGroupId) Creates an instance of aSendMessageParamsrecord class.- Parameters:
body- the value for thebodyrecord componentmedia- the value for themediarecord componentmediaFiles- the value for themediaFilesrecord componenttag- the value for thetagrecord componentreplyToExternalId- the value for thereplyToExternalIdrecord componentreplyMarkup- the value for thereplyMarkuprecord componentprofileGroupId- the value for theprofileGroupIdrecord component
-
-
Method Details
-
builder
-
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). -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
mediaFiles
Returns the value of themediaFilesrecord component.- Returns:
- the value of the
mediaFilesrecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
replyToExternalId
Returns the value of thereplyToExternalIdrecord component.- Returns:
- the value of the
replyToExternalIdrecord component
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-
profileGroupId
Returns the value of theprofileGroupIdrecord component.- Returns:
- the value of the
profileGroupIdrecord component
-