Class BookmarksAddParams
java.lang.Object
com.hubspot.slack.client.methods.params.bookmarks.BookmarksAddParams
- All Implemented Interfaces:
HasChannel,BookmarksAddParamsIF
@Generated(from="BookmarksAddParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BookmarksAddParams
extends Object
implements BookmarksAddParamsIF
Immutable implementation of
BookmarksAddParamsIF.
Use the builder to create immutable instances:
BookmarksAddParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BookmarksAddParams.Builderbuilder()Creates a builder forBookmarksAddParams.static BookmarksAddParamscopyOf(BookmarksAddParamsIF instance) Creates an immutable copy of aBookmarksAddParamsIFvalue.booleanThis instance is equal to all instances ofBookmarksAddParamsthat have equal attribute values.getEmoji()getLink()getTitle()getType()inthashCode()Computes a hash code from attributes:channelId,channel,title,type,emoji,entityId,link,parentId.toString()Prints the immutable valueBookmarksAddParamswith attribute values.final BookmarksAddParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final BookmarksAddParamsCopy the current immutable object by setting a present value for the optionalemojiattribute.final BookmarksAddParamsCopy the current immutable object by setting an optional value for theemojiattribute.final BookmarksAddParamswithEntityId(String value) Copy the current immutable object by setting a present value for the optionalentityIdattribute.final BookmarksAddParamswithEntityId(Optional<String> optional) Copy the current immutable object by setting an optional value for theentityIdattribute.final BookmarksAddParamsCopy the current immutable object by setting a present value for the optionallinkattribute.final BookmarksAddParamsCopy the current immutable object by setting an optional value for thelinkattribute.final BookmarksAddParamswithParentId(String value) Copy the current immutable object by setting a present value for the optionalparentIdattribute.final BookmarksAddParamswithParentId(Optional<String> optional) Copy the current immutable object by setting an optional value for theparentIdattribute.final BookmarksAddParamsCopy the current immutable object by setting a value for thetitleattribute.final BookmarksAddParamswithType(BookmarkType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getChannel
- Specified by:
getChannelin interfaceBookmarksAddParamsIF- Returns:
- The computed-at-construction value of the
channelattribute
-
getTitle
- Specified by:
getTitlein interfaceBookmarksAddParamsIF- Returns:
- The value of the
titleattribute
-
getType
- Specified by:
getTypein interfaceBookmarksAddParamsIF- Returns:
- The value of the
typeattribute
-
getEmoji
- Specified by:
getEmojiin interfaceBookmarksAddParamsIF- Returns:
- The value of the
emojiattribute
-
getEntityId
- Specified by:
getEntityIdin interfaceBookmarksAddParamsIF- Returns:
- The value of the
entityIdattribute
-
getLink
- Specified by:
getLinkin interfaceBookmarksAddParamsIF- Returns:
- The value of the
linkattribute
-
getParentId
- Specified by:
getParentIdin interfaceBookmarksAddParamsIF- Returns:
- The value of the
parentIdattribute
-
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
-
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
-
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
-
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
-
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
-
withParentId
Copy the current immutable object by setting a present value for the optionalparentIdattribute.- Parameters:
value- The value for parentId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withParentId
Copy the current immutable object by setting an optional value for theparentIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for parentId- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBookmarksAddParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,channel,title,type,emoji,entityId,link,parentId. -
toString
Prints the immutable valueBookmarksAddParamswith attribute values. -
copyOf
Creates an immutable copy of aBookmarksAddParamsIFvalue. 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 BookmarksAddParams instance
-
builder
Creates a builder forBookmarksAddParams.BookmarksAddParams.builder() .setChannelId(String) // requiredchannelId.setTitle(String) // requiredtitle.setType(com.hubspot.slack.client.models.bookmarks.BookmarkType) // requiredtype.setEmoji(Optional<String>) // optionalemoji.setEntityId(Optional<String>) // optionalentityId.setLink(Optional<String>) // optionallink.setParentId(Optional<String>) // optionalparentId.build();- Returns:
- A new BookmarksAddParams builder
-