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:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface 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 InputPaidMediaPhoto.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
-
toBuilder
-
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). -
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-