Class RichTextSection
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextSection
- All Implemented Interfaces:
BlockElement,RichTextObject,RichTextSectionIF
@Generated(from="RichTextSectionIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class RichTextSection
extends Object
implements RichTextSectionIF
Immutable implementation of
RichTextSectionIF.
Use the builder to create immutable instances:
RichTextSection.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextSectionIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic RichTextSection.Builderbuilder()Creates a builder forRichTextSection.static RichTextSectioncopyOf(RichTextSectionIF instance) Creates an immutable copy of aRichTextSectionIFvalue.booleanThis instance is equal to all instances ofRichTextSectionthat have equal attribute values.com.google.common.collect.ImmutableList<RichTextElement> getType()inthashCode()Computes a hash code from attributes:type,elements.toString()Prints the immutable valueRichTextSectionwith attribute values.final RichTextSectionwithElements(RichTextElement... elements) Copy the current immutable object with elements that replace the content ofelements.final RichTextSectionwithElements(Iterable<? extends RichTextElement> elements) Copy the current immutable object with elements that replace the content ofelements.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceRichTextSectionIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getElements
- Specified by:
getElementsin interfaceRichTextSectionIF- Returns:
- The value of the
elementsattribute
-
withElements
Copy the current immutable object with elements that replace the content ofelements.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withElements
Copy the current immutable object with elements that replace the content ofelements. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of elements elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofRichTextSectionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,elements. -
toString
Prints the immutable valueRichTextSectionwith attribute values. -
copyOf
Creates an immutable copy of aRichTextSectionIFvalue. 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 RichTextSection instance
-
builder
Creates a builder forRichTextSection.RichTextSection.builder() .addElements|addAllElements(com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextElement) //elementselements .build();- Returns:
- A new RichTextSection builder
-