Record Class PostControlsAnswerCallbackQueryProperties
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.bot.configuration.PostControlsAnswerCallbackQueryProperties
- Record Components:
options- the map of options for answering callback queries
@ConfigurationProperties("telegram.post-controls.answer-callback-query")
@Validated
public record PostControlsAnswerCallbackQueryProperties(@NotEmpty Map<String, PostControlsAnswerCallbackQueryProperties.AnswerCallbackQueryProperties> options)
extends Record
Configuration properties for post controls answer callback query in the Telegram bot.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordProperties for answering a callback query. -
Constructor Summary
ConstructorsConstructorDescriptionPostControlsAnswerCallbackQueryProperties(@NotEmpty Map<String, PostControlsAnswerCallbackQueryProperties.AnswerCallbackQueryProperties> options) Creates an instance of aPostControlsAnswerCallbackQueryPropertiesrecord 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.options()Returns the value of theoptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostControlsAnswerCallbackQueryProperties
public PostControlsAnswerCallbackQueryProperties(@NotEmpty @NotEmpty Map<String, PostControlsAnswerCallbackQueryProperties.AnswerCallbackQueryProperties> options) Creates an instance of aPostControlsAnswerCallbackQueryPropertiesrecord class.- Parameters:
options- the value for theoptionsrecord 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). -
options
@NotEmpty public @NotEmpty Map<String, PostControlsAnswerCallbackQueryProperties.AnswerCallbackQueryProperties> options()Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-