Record Class PostControlsEditMessageTextProperties
java.lang.Object
java.lang.Record
io.github.yvasyliev.forwarder.telegram.bot.configuration.PostControlsEditMessageTextProperties
- Record Components:
options- the map of options for editing message textsuppressedApiResponses- the set of API responses to be suppressed
@ConfigurationProperties("telegram.post-controls.edit-message-text")
@Validated
public record PostControlsEditMessageTextProperties(@NotEmpty Map<String, PostControlsEditMessageTextProperties.EditMessageTextProperties> options, @NotEmpty Set<String> suppressedApiResponses)
extends Record
Configuration properties for post controls edit message text in the Telegram bot.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordProperties for editing message text. -
Constructor Summary
ConstructorsConstructorDescriptionPostControlsEditMessageTextProperties(@NotEmpty Map<String, PostControlsEditMessageTextProperties.EditMessageTextProperties> options, @NotEmpty Set<String> suppressedApiResponses) Creates an instance of aPostControlsEditMessageTextPropertiesrecord 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.Returns the value of thesuppressedApiResponsesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostControlsEditMessageTextProperties
public PostControlsEditMessageTextProperties(@NotEmpty @NotEmpty Map<String, PostControlsEditMessageTextProperties.EditMessageTextProperties> options, @NotEmpty @NotEmpty Set<String> suppressedApiResponses) Creates an instance of aPostControlsEditMessageTextPropertiesrecord class.- Parameters:
options- the value for theoptionsrecord componentsuppressedApiResponses- the value for thesuppressedApiResponsesrecord 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, PostControlsEditMessageTextProperties.EditMessageTextProperties> options()Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
suppressedApiResponses
Returns the value of thesuppressedApiResponsesrecord component.- Returns:
- the value of the
suppressedApiResponsesrecord component
-