Class BookmarksEditParams
java.lang.Object
com.hubspot.slack.client.methods.params.bookmarks.BookmarksEditParams
- All Implemented Interfaces:
HasChannel,BookmarksEditParamsIF
@Generated(from="BookmarksEditParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BookmarksEditParams
extends Object
implements BookmarksEditParamsIF
Immutable implementation of
BookmarksEditParamsIF.
Use the builder to create immutable instances:
BookmarksEditParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBookmarksEditParams. -
Method Summary
Modifier and TypeMethodDescriptionstatic BookmarksEditParams.Builderbuilder()Creates a builder forBookmarksEditParams.static BookmarksEditParamscopyOf(BookmarksEditParamsIF instance) Creates an immutable copy of aBookmarksEditParamsIFvalue.booleanThis instance is equal to all instances ofBookmarksEditParamsthat have equal attribute values.getEmoji()getLink()getTitle()inthashCode()Computes a hash code from attributes:channelId,channel,bookmarkId,emoji,link,title.toString()Prints the immutable valueBookmarksEditParamswith attribute values.final BookmarksEditParamswithBookmarkId(String value) Copy the current immutable object by setting a value for thebookmarkIdattribute.final BookmarksEditParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final BookmarksEditParamsCopy the current immutable object by setting a present value for the optionalemojiattribute.final BookmarksEditParamsCopy the current immutable object by setting an optional value for theemojiattribute.final BookmarksEditParamsCopy the current immutable object by setting a present value for the optionallinkattribute.final BookmarksEditParamsCopy the current immutable object by setting an optional value for thelinkattribute.final BookmarksEditParamsCopy the current immutable object by setting a present value for the optionaltitleattribute.final BookmarksEditParamsCopy the current immutable object by setting an optional value for thetitleattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getChannel
- Specified by:
getChannelin interfaceBookmarksEditParamsIF- Returns:
- The computed-at-construction value of the
channelattribute
-
getBookmarkId
- Specified by:
getBookmarkIdin interfaceBookmarksEditParamsIF- Returns:
- The value of the
bookmarkIdattribute
-
getEmoji
- Specified by:
getEmojiin interfaceBookmarksEditParamsIF- Returns:
- The value of the
emojiattribute
-
getLink
- Specified by:
getLinkin interfaceBookmarksEditParamsIF- Returns:
- The value of the
linkattribute
-
getTitle
- Specified by:
getTitlein interfaceBookmarksEditParamsIF- Returns:
- The value of the
titleattribute
-
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
-
withBookmarkId
Copy the current immutable object by setting a value for thebookmarkIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bookmarkId- Returns:
- A modified copy or the
thisobject
-
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
-
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
-
withTitle
Copy the current immutable object by setting a present value for the optionaltitleattribute.- Parameters:
value- The value for title,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting an optional value for thetitleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for title- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBookmarksEditParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,channel,bookmarkId,emoji,link,title. -
toString
Prints the immutable valueBookmarksEditParamswith attribute values. -
copyOf
Creates an immutable copy of aBookmarksEditParamsIFvalue. 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 BookmarksEditParams instance
-
builder
Creates a builder forBookmarksEditParams.BookmarksEditParams.builder() .setChannelId(String) // requiredchannelId.setBookmarkId(String) // requiredbookmarkId.setEmoji(Optional<String>) // optionalemoji.setLink(Optional<String>) // optionallink.setTitle(Optional<String>) // optionaltitle.build();- Returns:
- A new BookmarksEditParams builder
-