Record Class ForceReplyKeyboard
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ForceReplyKeyboard
- All Implemented Interfaces:
Serializable,ApiResult,ReplyKeyboard
public record ForceReplyKeyboard(boolean forceReply, @Nullable String inputFieldPlaceholder, boolean selective)
extends Record
implements ReplyKeyboard
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionForceReplyKeyboard(boolean forceReply, @Nullable String inputFieldPlaceholder, boolean selective) Creates an instance of aForceReplyKeyboardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceReplyrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theinputFieldPlaceholderrecord component.lombok.BuilderofBuilder(boolean forceReply) booleanReturns the value of theselectiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ForceReplyKeyboard
public ForceReplyKeyboard(boolean forceReply, @Nullable @Nullable String inputFieldPlaceholder, boolean selective) Creates an instance of aForceReplyKeyboardrecord class.- Parameters:
forceReply- the value for theforceReplyrecord componentinputFieldPlaceholder- the value for theinputFieldPlaceholderrecord componentselective- the value for theselectiverecord component
-
-
Method Details
-
ofBuilder
public lombok.Builder ofBuilder(boolean forceReply) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
forceReply
public boolean forceReply()Returns the value of theforceReplyrecord component.- Returns:
- the value of the
forceReplyrecord component
-
inputFieldPlaceholder
Returns the value of theinputFieldPlaceholderrecord component.- Returns:
- the value of the
inputFieldPlaceholderrecord component
-
selective
public boolean selective()Returns the value of theselectiverecord component.- Returns:
- the value of the
selectiverecord component
-