Class RichTextUserGroupElement
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextUserGroupElement
- All Implemented Interfaces:
BlockElement,RichTextElement,RichTextUserGroupElementIF
@Generated(from="RichTextUserGroupElementIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class RichTextUserGroupElement
extends Object
implements RichTextUserGroupElementIF
Immutable implementation of
RichTextUserGroupElementIF.
Use the builder to create immutable instances:
RichTextUserGroupElement.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeRichTextUserGroupElement.static final classImmutable implementation ofRichTextUserGroupElementIF.StyleIF.Nested classes/interfaces inherited from interface com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextUserGroupElementIF
RichTextUserGroupElementIF.StyleIF -
Field Summary
Fields inherited from interface com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextUserGroupElementIF
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forRichTextUserGroupElement.static RichTextUserGroupElementcopyOf(RichTextUserGroupElementIF instance) Creates an immutable copy of aRichTextUserGroupElementIFvalue.booleanThis instance is equal to all instances ofRichTextUserGroupElementthat have equal attribute values.getStyle()getType()inthashCode()Computes a hash code from attributes:type,userGroupId,style.toString()Prints the immutable valueRichTextUserGroupElementwith attribute values.final RichTextUserGroupElementCopy the current immutable object by setting a present value for the optionalstyleattribute.final RichTextUserGroupElementwithStyle(Optional<? extends RichTextUserGroupElementIF.StyleIF> optional) Copy the current immutable object by setting an optional value for thestyleattribute.final RichTextUserGroupElementwithUserGroupId(String value) Copy the current immutable object by setting a value for theuserGroupIdattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBlockElement- Specified by:
getTypein interfaceRichTextUserGroupElementIF- Returns:
- The computed-at-construction value of the
typeattribute
-
getUserGroupId
- Specified by:
getUserGroupIdin interfaceRichTextUserGroupElementIF- Returns:
- The value of the
userGroupIdattribute
-
getStyle
- Specified by:
getStylein interfaceRichTextUserGroupElementIF- Returns:
- The value of the
styleattribute
-
withUserGroupId
Copy the current immutable object by setting a value for theuserGroupIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for userGroupId- Returns:
- A modified copy or the
thisobject
-
withStyle
Copy the current immutable object by setting a present value for the optionalstyleattribute.- Parameters:
value- The value for style,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStyle
public final RichTextUserGroupElement withStyle(Optional<? extends RichTextUserGroupElementIF.StyleIF> optional) Copy the current immutable object by setting an optional value for thestyleattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for style- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofRichTextUserGroupElementthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,userGroupId,style. -
toString
Prints the immutable valueRichTextUserGroupElementwith attribute values. -
copyOf
Creates an immutable copy of aRichTextUserGroupElementIFvalue. 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 RichTextUserGroupElement instance
-
builder
Creates a builder forRichTextUserGroupElement.RichTextUserGroupElement.builder() .setUserGroupId(String) // requireduserGroupId.setStyle(Optional<com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextUserGroupElementIF.StyleIF>) // optionalstyle.build();- Returns:
- A new RichTextUserGroupElement builder
-