Class Bookmark
java.lang.Object
com.hubspot.slack.client.models.bookmarks.Bookmark
- All Implemented Interfaces:
BookmarkIF
@Generated(from="BookmarkIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Bookmark
extends Object
implements BookmarkIF
Immutable implementation of
BookmarkIF.
Use the builder to create immutable instances:
Bookmark.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Bookmark.Builderbuilder()Creates a builder forBookmark.static BookmarkcopyOf(BookmarkIF instance) Creates an immutable copy of aBookmarkIFvalue.booleanThis instance is equal to all instances ofBookmarkthat have equal attribute values.getAppId()longlonggetEmoji()getId()getLink()getRank()getTitle()getType()inthashCode()Computes a hash code from attributes:type,id,channelId,title,link,emoji,iconUrl,entityId,dateCreatedEpochSeconds,createdAt,dateUpdatedEpochSeconds,updatedAt,rank,lastUpdatedByUserId,lastUpdatedByTeamId,shortcutId,appId.toString()Prints the immutable valueBookmarkwith attribute values.final BookmarkCopy the current immutable object by setting a present value for the optionalappIdattribute.final BookmarkCopy the current immutable object by setting an optional value for theappIdattribute.final BookmarkwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final BookmarkwithDateCreatedEpochSeconds(long value) Copy the current immutable object by setting a value for thedateCreatedEpochSecondsattribute.final BookmarkwithDateUpdatedEpochSeconds(long value) Copy the current immutable object by setting a value for thedateUpdatedEpochSecondsattribute.final BookmarkCopy the current immutable object by setting a present value for the optionalemojiattribute.final BookmarkCopy the current immutable object by setting an optional value for theemojiattribute.final BookmarkwithEntityId(String value) Copy the current immutable object by setting a present value for the optionalentityIdattribute.final BookmarkwithEntityId(Optional<String> optional) Copy the current immutable object by setting an optional value for theentityIdattribute.final BookmarkwithIconUrl(String value) Copy the current immutable object by setting a present value for the optionaliconUrlattribute.final BookmarkwithIconUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theiconUrlattribute.final BookmarkCopy the current immutable object by setting a value for theidattribute.final BookmarkwithLastUpdatedByTeamId(String value) Copy the current immutable object by setting a present value for the optionallastUpdatedByTeamIdattribute.final BookmarkwithLastUpdatedByTeamId(Optional<String> optional) Copy the current immutable object by setting an optional value for thelastUpdatedByTeamIdattribute.final BookmarkwithLastUpdatedByUserId(String value) Copy the current immutable object by setting a present value for the optionallastUpdatedByUserIdattribute.final BookmarkwithLastUpdatedByUserId(Optional<String> optional) Copy the current immutable object by setting an optional value for thelastUpdatedByUserIdattribute.final BookmarkCopy the current immutable object by setting a present value for the optionallinkattribute.final BookmarkCopy the current immutable object by setting an optional value for thelinkattribute.final BookmarkCopy the current immutable object by setting a present value for the optionalrankattribute.final BookmarkCopy the current immutable object by setting an optional value for therankattribute.final BookmarkwithShortcutId(String value) Copy the current immutable object by setting a present value for the optionalshortcutIdattribute.final BookmarkwithShortcutId(Optional<String> optional) Copy the current immutable object by setting an optional value for theshortcutIdattribute.final BookmarkCopy the current immutable object by setting a value for thetitleattribute.final BookmarkwithType(BookmarkType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceBookmarkIF- Returns:
- The value of the
typeattribute
-
getId
- Specified by:
getIdin interfaceBookmarkIF- Returns:
- The value of the
idattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceBookmarkIF- Returns:
- The value of the
channelIdattribute
-
getTitle
- Specified by:
getTitlein interfaceBookmarkIF- Returns:
- The value of the
titleattribute
-
getLink
- Specified by:
getLinkin interfaceBookmarkIF- Returns:
- The value of the
linkattribute
-
getEmoji
- Specified by:
getEmojiin interfaceBookmarkIF- Returns:
- The value of the
emojiattribute
-
getIconUrl
- Specified by:
getIconUrlin interfaceBookmarkIF- Returns:
- The value of the
iconUrlattribute
-
getEntityId
- Specified by:
getEntityIdin interfaceBookmarkIF- Returns:
- The value of the
entityIdattribute
-
getDateCreatedEpochSeconds
public long getDateCreatedEpochSeconds()- Specified by:
getDateCreatedEpochSecondsin interfaceBookmarkIF- Returns:
- The value of the
dateCreatedEpochSecondsattribute
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceBookmarkIF- Returns:
- The computed-at-construction value of the
createdAtattribute
-
getDateUpdatedEpochSeconds
public long getDateUpdatedEpochSeconds()- Specified by:
getDateUpdatedEpochSecondsin interfaceBookmarkIF- Returns:
- The value of the
dateUpdatedEpochSecondsattribute
-
getUpdatedAt
- Specified by:
getUpdatedAtin interfaceBookmarkIF- Returns:
- The computed-at-construction value of the
updatedAtattribute
-
getRank
- Specified by:
getRankin interfaceBookmarkIF- Returns:
- The value of the
rankattribute
-
getLastUpdatedByUserId
- Specified by:
getLastUpdatedByUserIdin interfaceBookmarkIF- Returns:
- The value of the
lastUpdatedByUserIdattribute
-
getLastUpdatedByTeamId
- Specified by:
getLastUpdatedByTeamIdin interfaceBookmarkIF- Returns:
- The value of the
lastUpdatedByTeamIdattribute
-
getShortcutId
- Specified by:
getShortcutIdin interfaceBookmarkIF- Returns:
- The value of the
shortcutIdattribute
-
getAppId
- Specified by:
getAppIdin interfaceBookmarkIF- Returns:
- The value of the
appIdattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy or the
thisobject
-
withLink
Copy the current immutable object by setting a present value for the optionallinkattribute.- Parameters:
value- The value for link,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLink
Copy the current immutable object by setting an optional value for thelinkattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for link- Returns:
- A modified copy or
thisif not changed
-
withEmoji
Copy the current immutable object by setting a present value for the optionalemojiattribute.- Parameters:
value- The value for emoji,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEmoji
Copy the current immutable object by setting an optional value for theemojiattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for emoji- Returns:
- A modified copy or
thisif not changed
-
withIconUrl
Copy the current immutable object by setting a present value for the optionaliconUrlattribute.- Parameters:
value- The value for iconUrl,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIconUrl
Copy the current immutable object by setting an optional value for theiconUrlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for iconUrl- Returns:
- A modified copy or
thisif not changed
-
withEntityId
Copy the current immutable object by setting a present value for the optionalentityIdattribute.- Parameters:
value- The value for entityId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withEntityId
Copy the current immutable object by setting an optional value for theentityIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for entityId- Returns:
- A modified copy or
thisif not changed
-
withDateCreatedEpochSeconds
Copy the current immutable object by setting a value for thedateCreatedEpochSecondsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dateCreatedEpochSeconds- Returns:
- A modified copy or the
thisobject
-
withDateUpdatedEpochSeconds
Copy the current immutable object by setting a value for thedateUpdatedEpochSecondsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dateUpdatedEpochSeconds- Returns:
- A modified copy or the
thisobject
-
withRank
Copy the current immutable object by setting a present value for the optionalrankattribute.- Parameters:
value- The value for rank,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withRank
Copy the current immutable object by setting an optional value for therankattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for rank- Returns:
- A modified copy or
thisif not changed
-
withLastUpdatedByUserId
Copy the current immutable object by setting a present value for the optionallastUpdatedByUserIdattribute.- Parameters:
value- The value for lastUpdatedByUserId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLastUpdatedByUserId
Copy the current immutable object by setting an optional value for thelastUpdatedByUserIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for lastUpdatedByUserId- Returns:
- A modified copy or
thisif not changed
-
withLastUpdatedByTeamId
Copy the current immutable object by setting a present value for the optionallastUpdatedByTeamIdattribute.- Parameters:
value- The value for lastUpdatedByTeamId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withLastUpdatedByTeamId
Copy the current immutable object by setting an optional value for thelastUpdatedByTeamIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for lastUpdatedByTeamId- Returns:
- A modified copy or
thisif not changed
-
withShortcutId
Copy the current immutable object by setting a present value for the optionalshortcutIdattribute.- Parameters:
value- The value for shortcutId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withShortcutId
Copy the current immutable object by setting an optional value for theshortcutIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for shortcutId- Returns:
- A modified copy or
thisif not changed
-
withAppId
Copy the current immutable object by setting a present value for the optionalappIdattribute.- Parameters:
value- The value for appId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withAppId
Copy the current immutable object by setting an optional value for theappIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for appId- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBookmarkthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,id,channelId,title,link,emoji,iconUrl,entityId,dateCreatedEpochSeconds,createdAt,dateUpdatedEpochSeconds,updatedAt,rank,lastUpdatedByUserId,lastUpdatedByTeamId,shortcutId,appId. -
toString
Prints the immutable valueBookmarkwith attribute values. -
copyOf
Creates an immutable copy of aBookmarkIFvalue. 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 Bookmark instance
-
builder
Creates a builder forBookmark.Bookmark.builder() .setType(com.hubspot.slack.client.models.bookmarks.BookmarkType) // requiredtype.setId(String) // requiredid.setChannelId(String) // requiredchannelId.setTitle(String) // requiredtitle.setLink(Optional<String>) // optionallink.setEmoji(Optional<String>) // optionalemoji.setIconUrl(Optional<String>) // optionaliconUrl.setEntityId(Optional<String>) // optionalentityId.setDateCreatedEpochSeconds(long) // requireddateCreatedEpochSeconds.setDateUpdatedEpochSeconds(long) // requireddateUpdatedEpochSeconds.setRank(Optional<String>) // optionalrank.setLastUpdatedByUserId(Optional<String>) // optionallastUpdatedByUserId.setLastUpdatedByTeamId(Optional<String>) // optionallastUpdatedByTeamId.setShortcutId(Optional<String>) // optionalshortcutId.setAppId(Optional<String>) // optionalappId.build();- Returns:
- A new Bookmark builder
-