Class Bookmark.Builder
java.lang.Object
com.hubspot.slack.client.models.bookmarks.Bookmark.Builder
- Enclosing class:
Bookmark
@Generated(from="BookmarkIF",
generator="Immutables")
@NotThreadSafe
public static final class Bookmark.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newBookmark.final Bookmark.Builderfrom(BookmarkIF instance) Fill a builder with attribute values from the providedBookmarkIFinstance.final Bookmark.BuilderInitializes the optional valueappIdto appId.final Bookmark.BuilderInitializes the optional valueappIdto appId.final Bookmark.BuildersetChannelId(String channelId) Initializes the value for thechannelIdattribute.final Bookmark.BuildersetDateCreatedEpochSeconds(long dateCreatedEpochSeconds) Initializes the value for thedateCreatedEpochSecondsattribute.final Bookmark.BuildersetDateUpdatedEpochSeconds(long dateUpdatedEpochSeconds) Initializes the value for thedateUpdatedEpochSecondsattribute.final Bookmark.BuilderInitializes the optional valueemojito emoji.final Bookmark.BuilderInitializes the optional valueemojito emoji.final Bookmark.BuildersetEntityId(String entityId) Initializes the optional valueentityIdto entityId.final Bookmark.BuildersetEntityId(Optional<String> entityId) Initializes the optional valueentityIdto entityId.final Bookmark.BuildersetIconUrl(String iconUrl) Initializes the optional valueiconUrlto iconUrl.final Bookmark.BuildersetIconUrl(Optional<String> iconUrl) Initializes the optional valueiconUrlto iconUrl.final Bookmark.BuilderInitializes the value for theidattribute.final Bookmark.BuildersetLastUpdatedByTeamId(String lastUpdatedByTeamId) Initializes the optional valuelastUpdatedByTeamIdto lastUpdatedByTeamId.final Bookmark.BuildersetLastUpdatedByTeamId(Optional<String> lastUpdatedByTeamId) Initializes the optional valuelastUpdatedByTeamIdto lastUpdatedByTeamId.final Bookmark.BuildersetLastUpdatedByUserId(String lastUpdatedByUserId) Initializes the optional valuelastUpdatedByUserIdto lastUpdatedByUserId.final Bookmark.BuildersetLastUpdatedByUserId(Optional<String> lastUpdatedByUserId) Initializes the optional valuelastUpdatedByUserIdto lastUpdatedByUserId.final Bookmark.BuilderInitializes the optional valuelinkto link.final Bookmark.BuilderInitializes the optional valuelinkto link.final Bookmark.BuilderInitializes the optional valuerankto rank.final Bookmark.BuilderInitializes the optional valuerankto rank.final Bookmark.BuildersetShortcutId(String shortcutId) Initializes the optional valueshortcutIdto shortcutId.final Bookmark.BuildersetShortcutId(Optional<String> shortcutId) Initializes the optional valueshortcutIdto shortcutId.final Bookmark.BuilderInitializes the value for thetitleattribute.final Bookmark.BuildersetType(BookmarkType type) Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedBookmarkIFinstance. 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
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setId
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
setLink
Initializes the optional valuelinkto link.- Parameters:
link- The value for link,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setLink
Initializes the optional valuelinkto link.- Parameters:
link- The value for link- Returns:
thisbuilder for use in a chained invocation
-
setEmoji
Initializes the optional valueemojito emoji.- Parameters:
emoji- The value for emoji,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setEmoji
Initializes the optional valueemojito emoji.- Parameters:
emoji- The value for emoji- Returns:
thisbuilder for use in a chained invocation
-
setIconUrl
Initializes the optional valueiconUrlto iconUrl.- Parameters:
iconUrl- The value for iconUrl,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIconUrl
Initializes the optional valueiconUrlto iconUrl.- Parameters:
iconUrl- The value for iconUrl- Returns:
thisbuilder for use in a chained invocation
-
setEntityId
Initializes the optional valueentityIdto entityId.- Parameters:
entityId- The value for entityId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setEntityId
Initializes the optional valueentityIdto entityId.- Parameters:
entityId- The value for entityId- Returns:
thisbuilder for use in a chained invocation
-
setDateCreatedEpochSeconds
Initializes the value for thedateCreatedEpochSecondsattribute.- Parameters:
dateCreatedEpochSeconds- The value for dateCreatedEpochSeconds- Returns:
thisbuilder for use in a chained invocation
-
setDateUpdatedEpochSeconds
Initializes the value for thedateUpdatedEpochSecondsattribute.- Parameters:
dateUpdatedEpochSeconds- The value for dateUpdatedEpochSeconds- Returns:
thisbuilder for use in a chained invocation
-
setRank
Initializes the optional valuerankto rank.- Parameters:
rank- The value for rank,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setRank
Initializes the optional valuerankto rank.- Parameters:
rank- The value for rank- Returns:
thisbuilder for use in a chained invocation
-
setLastUpdatedByUserId
Initializes the optional valuelastUpdatedByUserIdto lastUpdatedByUserId.- Parameters:
lastUpdatedByUserId- The value for lastUpdatedByUserId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setLastUpdatedByUserId
Initializes the optional valuelastUpdatedByUserIdto lastUpdatedByUserId.- Parameters:
lastUpdatedByUserId- The value for lastUpdatedByUserId- Returns:
thisbuilder for use in a chained invocation
-
setLastUpdatedByTeamId
Initializes the optional valuelastUpdatedByTeamIdto lastUpdatedByTeamId.- Parameters:
lastUpdatedByTeamId- The value for lastUpdatedByTeamId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setLastUpdatedByTeamId
Initializes the optional valuelastUpdatedByTeamIdto lastUpdatedByTeamId.- Parameters:
lastUpdatedByTeamId- The value for lastUpdatedByTeamId- Returns:
thisbuilder for use in a chained invocation
-
setShortcutId
Initializes the optional valueshortcutIdto shortcutId.- Parameters:
shortcutId- The value for shortcutId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setShortcutId
Initializes the optional valueshortcutIdto shortcutId.- Parameters:
shortcutId- The value for shortcutId- Returns:
thisbuilder for use in a chained invocation
-
setAppId
Initializes the optional valueappIdto appId.- Parameters:
appId- The value for appId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setAppId
Initializes the optional valueappIdto appId.- Parameters:
appId- The value for appId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBookmark.- Returns:
- An immutable instance of Bookmark
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-