Record Class PostControlsSendMessageProperties.InlineKeyboardMarkupProperties
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.bot.configuration.PostControlsSendMessageProperties.InlineKeyboardMarkupProperties
- Record Components:
keyboard- the keyboard layout
- Enclosing class:
PostControlsSendMessageProperties
public static record PostControlsSendMessageProperties.InlineKeyboardMarkupProperties(@NotEmpty List<List<PostControlsSendMessageProperties.InlineKeyboardMarkupProperties.InlineKeyboardButtonProperties>> keyboard)
extends Record
Properties for inline keyboard markup.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordProperties for an inline keyboard button. -
Constructor Summary
ConstructorsConstructorDescriptionInlineKeyboardMarkupProperties(@NotEmpty List<List<PostControlsSendMessageProperties.InlineKeyboardMarkupProperties.InlineKeyboardButtonProperties>> keyboard) Creates an instance of aInlineKeyboardMarkupPropertiesrecord 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.@NotEmpty List<List<PostControlsSendMessageProperties.InlineKeyboardMarkupProperties.InlineKeyboardButtonProperties>> keyboard()Returns the value of thekeyboardrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InlineKeyboardMarkupProperties
public InlineKeyboardMarkupProperties(@NotEmpty @NotEmpty List<List<PostControlsSendMessageProperties.InlineKeyboardMarkupProperties.InlineKeyboardButtonProperties>> keyboard) Creates an instance of aInlineKeyboardMarkupPropertiesrecord class.- Parameters:
keyboard- the value for thekeyboardrecord 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). -
keyboard
@NotEmpty public @NotEmpty List<List<PostControlsSendMessageProperties.InlineKeyboardMarkupProperties.InlineKeyboardButtonProperties>> keyboard()Returns the value of thekeyboardrecord component.- Returns:
- the value of the
keyboardrecord component
-