Class BookmarksAddParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.bookmarks.BookmarksAddParams.Builder
- Enclosing class:
BookmarksAddParams
@Generated(from="BookmarksAddParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class BookmarksAddParams.Builder
extends Object
Builds instances of type
BookmarksAddParams.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newBookmarksAddParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(BookmarksAddParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.bookmarks.BookmarksAddParamsIFinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.Initializes the optional valueemojito emoji.Initializes the optional valueemojito emoji.setEntityId(String entityId) Initializes the optional valueentityIdto entityId.setEntityId(Optional<String> entityId) Initializes the optional valueentityIdto entityId.Initializes the optional valuelinkto link.Initializes the optional valuelinkto link.setParentId(String parentId) Initializes the optional valueparentIdto parentId.setParentId(Optional<String> parentId) Initializes the optional valueparentIdto parentId.Initializes the value for thetitleattribute.setType(BookmarkType type) Initializes the value for thetypeattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.- 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.methods.params.bookmarks.BookmarksAddParamsIFinstance.- Parameters:
instance- The instance from which to copy values- 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
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- 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
-
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
-
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
-
setParentId
Initializes the optional valueparentIdto parentId.- Parameters:
parentId- The value for parentId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setParentId
Initializes the optional valueparentIdto parentId.- Parameters:
parentId- The value for parentId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBookmarksAddParams.- Returns:
- An immutable instance of BookmarksAddParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-