Record Class InputPaidMediaPhoto
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputPaidMediaPhoto
- All Implemented Interfaces:
Serializable,ApiResult,InputPaidMedia
public record InputPaidMediaPhoto(@NotNull InputFile media)
extends Record
implements InputPaidMedia
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.InputPaidMedia
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputPaidMediaPhoto(@NotNull InputFile media) Creates an instance of aInputPaidMediaPhotorecord 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.@NotNull InputFilemedia()Returns the value of themediarecord component.static @NotNull lombok.Builderfinal StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InputPaidMediaPhoto
Creates an instance of aInputPaidMediaPhotorecord class.- Parameters:
media- the value for themediarecord component
-
-
Method Details
-
ofBuilder
-
type
- Specified by:
typein interfaceInputPaidMedia
-
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). -
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-