Class RichTextEmojiElement
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextEmojiElement
- All Implemented Interfaces:
BlockElement,RichTextElement,RichTextEmojiElementIF
@Generated(from="RichTextEmojiElementIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class RichTextEmojiElement
extends Object
implements RichTextEmojiElementIF
Immutable implementation of
RichTextEmojiElementIF.
Use the builder to create immutable instances:
RichTextEmojiElement.builder().
Use the static factory method to create immutable instances:
RichTextEmojiElement.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeRichTextEmojiElement. -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextEmojiElementIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic RichTextEmojiElement.Builderbuilder()Creates a builder forRichTextEmojiElement.static RichTextEmojiElementcopyOf(RichTextEmojiElementIF instance) Creates an immutable copy of aRichTextEmojiElementIFvalue.booleanThis instance is equal to all instances ofRichTextEmojiElementthat have equal attribute values.getName()getType()inthashCode()Computes a hash code from attributes:type,name,unicode.static RichTextEmojiElementConstruct a new immutableRichTextEmojiElementinstance.toString()Prints the immutable valueRichTextEmojiElementwith attribute values.final RichTextEmojiElementCopy the current immutable object by setting a value for thenameattribute.final RichTextEmojiElementwithUnicode(String value) Copy the current immutable object by setting a present value for the optionalunicodeattribute.final RichTextEmojiElementwithUnicode(Optional<String> optional) Copy the current immutable object by setting an optional value for theunicodeattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceRichTextEmojiElementIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getName
- Specified by:
getNamein interfaceRichTextEmojiElementIF- Returns:
- The value of the
nameattribute
-
getUnicode
- Specified by:
getUnicodein interfaceRichTextEmojiElementIF- Returns:
- The value of the
unicodeattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withUnicode
Copy the current immutable object by setting a present value for the optionalunicodeattribute.- Parameters:
value- The value for unicode,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withUnicode
Copy the current immutable object by setting an optional value for theunicodeattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for unicode- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofRichTextEmojiElementthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,name,unicode. -
toString
Prints the immutable valueRichTextEmojiElementwith attribute values. -
of
Construct a new immutableRichTextEmojiElementinstance.- Parameters:
name- The value for thenameattribute- Returns:
- An immutable RichTextEmojiElement instance
-
copyOf
Creates an immutable copy of aRichTextEmojiElementIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable RichTextEmojiElement instance
-
builder
Creates a builder forRichTextEmojiElement.RichTextEmojiElement.builder() .setName(String) // requiredname.setUnicode(Optional<String>) // optionalunicode.build();- Returns:
- A new RichTextEmojiElement builder
-