Class BookmarkListResponse.Builder
java.lang.Object
com.hubspot.slack.client.models.response.bookmarks.BookmarkListResponse.Builder
- Enclosing class:
BookmarkListResponse
@Generated(from="BookmarkListResponseIF",
generator="Immutables")
@NotThreadSafe
public static final class BookmarkListResponse.Builder
extends Object
Builds instances of type
BookmarkListResponse.
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 TypeMethodDescriptionaddAllBookmarks(Iterable<? extends Bookmark> elements) Adds elements tobookmarkslist.addBookmarks(Bookmark element) Adds one element tobookmarkslist.addBookmarks(Bookmark... elements) Adds elements tobookmarkslist.build()Builds a newBookmarkListResponse.from(BookmarkListResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.bookmarks.BookmarkListResponseIFinstance.from(SlackResponse instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.setBookmarks(Iterable<? extends Bookmark> elements) Sets or replaces all elements forbookmarkslist.setOk(boolean ok) Initializes the value for theokattribute.setResponseMetadata(ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.- 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.models.response.bookmarks.BookmarkListResponseIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setOk
Initializes the value for theokattribute.- Parameters:
ok- The value for ok- Returns:
thisbuilder for use in a chained invocation
-
setResponseMetadata
public final BookmarkListResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setResponseMetadata
public final BookmarkListResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata- Returns:
thisbuilder for use in a chained invocation
-
addBookmarks
Adds one element tobookmarkslist.- Parameters:
element- A bookmarks element- Returns:
thisbuilder for use in a chained invocation
-
addBookmarks
Adds elements tobookmarkslist.- Parameters:
elements- An array of bookmarks elements- Returns:
thisbuilder for use in a chained invocation
-
setBookmarks
Sets or replaces all elements forbookmarkslist.- Parameters:
elements- An iterable of bookmarks elements- Returns:
thisbuilder for use in a chained invocation
-
addAllBookmarks
Adds elements tobookmarkslist.- Parameters:
elements- An iterable of bookmarks elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newBookmarkListResponse.- Returns:
- An immutable instance of BookmarkListResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-