Class Header.Builder
java.lang.Object
com.hubspot.slack.client.models.blocks.Header.Builder
- Enclosing class:
Header
@Generated(from="HeaderIF",
generator="Immutables")
@NotThreadSafe
public static final class Header.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newHeader.final Header.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.Blockinstance.final Header.BuilderFill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.HeaderIFinstance.final Header.BuildersetBlockId(String blockId) Initializes the optional valueblockIdto blockId.final Header.BuildersetBlockId(Optional<String> blockId) Initializes the optional valueblockIdto blockId.final Header.BuilderInitializes the value for thetextattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.Blockinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.blocks.HeaderIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setBlockId
Initializes the optional valueblockIdto blockId.- Parameters:
blockId- The value for blockId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setBlockId
Initializes the optional valueblockIdto blockId.- Parameters:
blockId- The value for blockId- Returns:
thisbuilder for use in a chained invocation
-
setText
Initializes the value for thetextattribute.- Parameters:
text- The value for text- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newHeader.- Returns:
- An immutable instance of Header
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-