Record Class PostControlsSendMessageProperties
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.bot.configuration.PostControlsSendMessageProperties
- Record Components:
text- the text of the message to be sentreplyMarkup- the inline keyboard markup for the message
@ConfigurationProperties("telegram.post-controls.send-message")
@Validated
public record PostControlsSendMessageProperties(@NotBlank String text, @NotNull @Valid PostControlsSendMessageProperties.InlineKeyboardMarkupProperties replyMarkup)
extends Record
Configuration properties for post controls send message in the Telegram bot.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordProperties for inline keyboard markup. -
Constructor Summary
ConstructorsConstructorDescriptionPostControlsSendMessageProperties(@NotBlank String text, @NotNull @Valid PostControlsSendMessageProperties.InlineKeyboardMarkupProperties replyMarkup) Creates an instance of aPostControlsSendMessagePropertiesrecord class. -
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.@NotNull @Valid PostControlsSendMessageProperties.InlineKeyboardMarkupPropertiesReturns the value of thereplyMarkuprecord component.@NotBlank Stringtext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostControlsSendMessageProperties
public PostControlsSendMessageProperties(@NotBlank @NotBlank String text, @NotNull @Valid @NotNull @Valid PostControlsSendMessageProperties.InlineKeyboardMarkupProperties replyMarkup) Creates an instance of aPostControlsSendMessagePropertiesrecord class.- Parameters:
text- the value for thetextrecord componentreplyMarkup- the value for thereplyMarkuprecord 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). -
text
-
replyMarkup
@NotNull @Valid public @NotNull @Valid PostControlsSendMessageProperties.InlineKeyboardMarkupProperties replyMarkup()Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-