Class RichTextQuote
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextQuote
- All Implemented Interfaces:
BlockElement,RichTextObject,RichTextQuoteIF
@Generated(from="RichTextQuoteIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class RichTextQuote
extends Object
implements RichTextQuoteIF
Immutable implementation of
RichTextQuoteIF.
Use the builder to create immutable instances:
RichTextQuote.builder().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextQuoteIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic RichTextQuote.Builderbuilder()Creates a builder forRichTextQuote.static RichTextQuotecopyOf(RichTextQuoteIF instance) Creates an immutable copy of aRichTextQuoteIFvalue.booleanThis instance is equal to all instances ofRichTextQuotethat have equal attribute values.com.google.common.collect.ImmutableList<RichTextElement> getType()inthashCode()Computes a hash code from attributes:type,elements,border.toString()Prints the immutable valueRichTextQuotewith attribute values.final RichTextQuotewithBorder(Integer value) Copy the current immutable object by setting a present value for the optionalborderattribute.final RichTextQuotewithBorder(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theborderattribute.final RichTextQuotewithElements(RichTextElement... elements) Copy the current immutable object with elements that replace the content ofelements.final RichTextQuotewithElements(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 interfaceRichTextQuoteIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getElements
- Specified by:
getElementsin interfaceRichTextQuoteIF- Returns:
- The value of the
elementsattribute
-
getBorder
- Specified by:
getBorderin interfaceRichTextQuoteIF- Returns:
- The value of the
borderattribute
-
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
-
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
-
equals
This instance is equal to all instances ofRichTextQuotethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,elements,border. -
toString
Prints the immutable valueRichTextQuotewith attribute values. -
copyOf
Creates an immutable copy of aRichTextQuoteIFvalue. 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 RichTextQuote instance
-
builder
Creates a builder forRichTextQuote.RichTextQuote.builder() .addElements|addAllElements(com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextElement) //elementselements .setBorder(Optional<Integer>) // optionalborder.build();- Returns:
- A new RichTextQuote builder
-