Package dev.tobee.telegram.request.body
Record Class SetWebHookBody
java.lang.Object
java.lang.Record
dev.tobee.telegram.request.body.SetWebHookBody
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedUpdatesrecord component.Returns the value of thedropPendingUpdatesrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of theipAddressrecord component.Returns the value of themaxConnectionsrecord component.path()Returns the value of thepathrecord component.toString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
SetWebHookBody
public SetWebHookBody(String url, Optional<Path> path, Optional<String> ipAddress, Optional<Integer> maxConnections, List<UpdateTypes> allowedUpdates, Optional<Boolean> dropPendingUpdates)Creates an instance of aSetWebHookBodyrecord class.- Parameters:
url- the value for theurlrecord componentpath- the value for thepathrecord componentipAddress- the value for theipAddressrecord componentmaxConnections- the value for themaxConnectionsrecord componentallowedUpdates- the value for theallowedUpdatesrecord componentdropPendingUpdates- the value for thedropPendingUpdatesrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
ipAddress
Returns the value of theipAddressrecord component.- Returns:
- the value of the
ipAddressrecord component
-
maxConnections
Returns the value of themaxConnectionsrecord component.- Returns:
- the value of the
maxConnectionsrecord component
-
allowedUpdates
Returns the value of theallowedUpdatesrecord component.- Returns:
- the value of the
allowedUpdatesrecord component
-
dropPendingUpdates
Returns the value of thedropPendingUpdatesrecord component.- Returns:
- the value of the
dropPendingUpdatesrecord component
-