Class BookmarkListResponse
java.lang.Object
com.hubspot.slack.client.models.response.bookmarks.BookmarkListResponse
- All Implemented Interfaces:
BookmarkListResponseIF,SlackResponse
@Generated(from="BookmarkListResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BookmarkListResponse
extends Object
implements BookmarkListResponseIF
Immutable implementation of
BookmarkListResponseIF.
Use the builder to create immutable instances:
BookmarkListResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBookmarkListResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic BookmarkListResponse.Builderbuilder()Creates a builder forBookmarkListResponse.static BookmarkListResponsecopyOf(BookmarkListResponseIF instance) Creates an immutable copy of aBookmarkListResponseIFvalue.booleanThis instance is equal to all instances ofBookmarkListResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,bookmarks.booleanisOk()toString()Prints the immutable valueBookmarkListResponsewith attribute values.final BookmarkListResponsewithBookmarks(Bookmark... elements) Copy the current immutable object with elements that replace the content ofbookmarks.final BookmarkListResponsewithBookmarks(Iterable<? extends Bookmark> elements) Copy the current immutable object with elements that replace the content ofbookmarks.final BookmarkListResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final BookmarkListResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final BookmarkListResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getBookmarks
- Specified by:
getBookmarksin interfaceBookmarkListResponseIF- Returns:
- The value of the
bookmarksattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
public final BookmarkListResponse withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for responseMetadata- Returns:
- A modified copy or
thisif not changed
-
withBookmarks
Copy the current immutable object with elements that replace the content ofbookmarks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBookmarks
Copy the current immutable object with elements that replace the content ofbookmarks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of bookmarks elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBookmarkListResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,bookmarks. -
toString
Prints the immutable valueBookmarkListResponsewith attribute values. -
copyOf
Creates an immutable copy of aBookmarkListResponseIFvalue. 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 BookmarkListResponse instance
-
builder
Creates a builder forBookmarkListResponse.BookmarkListResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.addBookmarks|addAllBookmarks(com.hubspot.slack.client.models.bookmarks.Bookmark) //bookmarkselements .build();- Returns:
- A new BookmarkListResponse builder
-