Class RichTextUserGroupElement.Style.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.elements.richtextelements.RichTextUserGroupElement.Style.Builder
- Enclosing class:
RichTextUserGroupElement.Style
@Generated(from="RichTextUserGroupElementIF.StyleIF",
generator="Immutables")
@NotThreadSafe
public static final class RichTextUserGroupElement.Style.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newStyle.from(RichTextUserGroupElementIF.StyleIF instance) Fill a builder with attribute values from the providedStyleIFinstance.Initializes the optional valueboldto bold.Initializes the optional valueboldto bold.setClientHighlight(Boolean clientHighlight) Initializes the optional valueclientHighlightto clientHighlight.setClientHighlight(Optional<Boolean> clientHighlight) Initializes the optional valueclientHighlightto clientHighlight.setHighlight(Boolean highlight) Initializes the optional valuehighlightto highlight.setHighlight(Optional<Boolean> highlight) Initializes the optional valuehighlightto highlight.Initializes the optional valueitalicto italic.Initializes the optional valueitalicto italic.Initializes the optional valuestriketo strike.Initializes the optional valuestriketo strike.setUnderline(Boolean underline) Initializes the optional valueunderlineto underline.setUnderline(Optional<Boolean> underline) Initializes the optional valueunderlineto underline.Initializes the optional valueunlinkto unlink.Initializes the optional valueunlinkto unlink.
-
Method Details
-
from
public final RichTextUserGroupElement.Style.Builder from(RichTextUserGroupElementIF.StyleIF instance) Fill a builder with attribute values from the providedStyleIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setBold
Initializes the optional valueboldto bold.- Parameters:
bold- The value for bold,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setBold
Initializes the optional valueboldto bold.- Parameters:
bold- The value for bold- Returns:
thisbuilder for use in a chained invocation
-
setItalic
Initializes the optional valueitalicto italic.- Parameters:
italic- The value for italic,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setItalic
Initializes the optional valueitalicto italic.- Parameters:
italic- The value for italic- Returns:
thisbuilder for use in a chained invocation
-
setStrike
Initializes the optional valuestriketo strike.- Parameters:
strike- The value for strike,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setStrike
Initializes the optional valuestriketo strike.- Parameters:
strike- The value for strike- Returns:
thisbuilder for use in a chained invocation
-
setHighlight
Initializes the optional valuehighlightto highlight.- Parameters:
highlight- The value for highlight,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setHighlight
Initializes the optional valuehighlightto highlight.- Parameters:
highlight- The value for highlight- Returns:
thisbuilder for use in a chained invocation
-
setClientHighlight
public final RichTextUserGroupElement.Style.Builder setClientHighlight(@Nullable Boolean clientHighlight) Initializes the optional valueclientHighlightto clientHighlight.- Parameters:
clientHighlight- The value for clientHighlight,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setClientHighlight
public final RichTextUserGroupElement.Style.Builder setClientHighlight(Optional<Boolean> clientHighlight) Initializes the optional valueclientHighlightto clientHighlight.- Parameters:
clientHighlight- The value for clientHighlight- Returns:
thisbuilder for use in a chained invocation
-
setUnlink
Initializes the optional valueunlinkto unlink.- Parameters:
unlink- The value for unlink,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUnlink
Initializes the optional valueunlinkto unlink.- Parameters:
unlink- The value for unlink- Returns:
thisbuilder for use in a chained invocation
-
setUnderline
Initializes the optional valueunderlineto underline.- Parameters:
underline- The value for underline,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUnderline
Initializes the optional valueunderlineto underline.- Parameters:
underline- The value for underline- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newStyle.- Returns:
- An immutable instance of Style
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-