Record Class Localization.Integration.Discord.Embed
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Integration.Discord.Embed
- Enclosing class:
Localization.Integration.Discord
public static record Localization.Integration.Discord.Embed(String color, String title, String url, Localization.Integration.Discord.Embed.Author author, String description, String thumbnail, List<Localization.Integration.Discord.Embed.Field> fields, String image, Boolean timestamp, Localization.Integration.Discord.Embed.Footer footer)
extends Record
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionEmbed(String color, String title, String url, Localization.Integration.Discord.Embed.Author author, String description, String thumbnail, List<Localization.Integration.Discord.Embed.Field> fields, String image, Boolean timestamp, Localization.Integration.Discord.Embed.Footer footer) Creates an instance of aEmbedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.builder()color()Returns the value of thecolorrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.footer()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.Returns the value of thethumbnailrecord component.Returns the value of thetimestamprecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.withDescription(String description) withThumbnail(String thumbnail) withTimestamp(Boolean timestamp)
-
Constructor Details
-
Method Details
-
builder
-
toBuilder
-
withColor
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTitle
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withUrl
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAuthor
public Localization.Integration.Discord.Embed withAuthor(Localization.Integration.Discord.Embed.Author author) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDescription
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withThumbnail
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFields
public Localization.Integration.Discord.Embed withFields(List<Localization.Integration.Discord.Embed.Field> fields) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withImage
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTimestamp
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-