Class RichTextList
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextList
- All Implemented Interfaces:
BlockElement,RichTextListIF,RichTextObject
@Generated(from="RichTextListIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class RichTextList
extends Object
implements RichTextListIF
Immutable implementation of
RichTextListIF.
Use the builder to create immutable instances:
RichTextList.builder().
Use the static factory method to create immutable instances:
RichTextList.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextListIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic RichTextList.Builderbuilder()Creates a builder forRichTextList.static RichTextListcopyOf(RichTextListIF instance) Creates an immutable copy of aRichTextListIFvalue.booleanThis instance is equal to all instances ofRichTextListthat have equal attribute values.com.google.common.collect.ImmutableList<RichTextSection> getStyle()getType()inthashCode()Computes a hash code from attributes:type,elements,style,indent,border,offset.static RichTextListof(RichTextListStyle style) Construct a new immutableRichTextListinstance.toString()Prints the immutable valueRichTextListwith attribute values.final RichTextListwithBorder(Integer value) Copy the current immutable object by setting a present value for the optionalborderattribute.final RichTextListwithBorder(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theborderattribute.final RichTextListwithElements(RichTextSection... elements) Copy the current immutable object with elements that replace the content ofelements.final RichTextListwithElements(Iterable<? extends RichTextSection> elements) Copy the current immutable object with elements that replace the content ofelements.final RichTextListwithIndent(Integer value) Copy the current immutable object by setting a present value for the optionalindentattribute.final RichTextListwithIndent(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theindentattribute.final RichTextListwithOffset(Integer value) Copy the current immutable object by setting a present value for the optionaloffsetattribute.final RichTextListwithOffset(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theoffsetattribute.final RichTextListwithStyle(RichTextListStyle value) Copy the current immutable object by setting a value for thestyleattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceRichTextListIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getElements
- Specified by:
getElementsin interfaceRichTextListIF- Returns:
- The value of the
elementsattribute
-
getStyle
- Specified by:
getStylein interfaceRichTextListIF- Returns:
- The value of the
styleattribute
-
getIndent
- Specified by:
getIndentin interfaceRichTextListIF- Returns:
- The value of the
indentattribute
-
getBorder
- Specified by:
getBorderin interfaceRichTextListIF- Returns:
- The value of the
borderattribute
-
getOffset
- Specified by:
getOffsetin interfaceRichTextListIF- Returns:
- The value of the
offsetattribute
-
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
-
withStyle
Copy the current immutable object by setting a value for thestyleattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for style- Returns:
- A modified copy or the
thisobject
-
withIndent
Copy the current immutable object by setting a present value for the optionalindentattribute.- Parameters:
value- The value for indent,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIndent
Copy the current immutable object by setting an optional value for theindentattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for indent- Returns:
- A modified copy or
thisif not changed
-
withBorder
Copy the current immutable object by setting a present value for the optionalborderattribute.- Parameters:
value- The value for border,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withBorder
Copy the current immutable object by setting an optional value for theborderattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for border- Returns:
- A modified copy or
thisif not changed
-
withOffset
Copy the current immutable object by setting a present value for the optionaloffsetattribute.- Parameters:
value- The value for offset,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withOffset
Copy the current immutable object by setting an optional value for theoffsetattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for offset- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofRichTextListthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,elements,style,indent,border,offset. -
toString
Prints the immutable valueRichTextListwith attribute values. -
of
Construct a new immutableRichTextListinstance.- Parameters:
style- The value for thestyleattribute- Returns:
- An immutable RichTextList instance
-
copyOf
Creates an immutable copy of aRichTextListIFvalue. 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 RichTextList instance
-
builder
Creates a builder forRichTextList.RichTextList.builder() .addElements|addAllElements(RichTextSection) //elementselements .setStyle(com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextListStyle) // requiredstyle.setIndent(Optional<Integer>) // optionalindent.setBorder(Optional<Integer>) // optionalborder.setOffset(Optional<Integer>) // optionaloffset.build();- Returns:
- A new RichTextList builder
-