Class BookmarkEditResponse
java.lang.Object
com.hubspot.slack.client.models.response.bookmarks.BookmarkEditResponse
- All Implemented Interfaces:
BookmarkEditResponseIF,SlackResponse
@Generated(from="BookmarkEditResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BookmarkEditResponse
extends Object
implements BookmarkEditResponseIF
Immutable implementation of
BookmarkEditResponseIF.
Use the builder to create immutable instances:
BookmarkEditResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBookmarkEditResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic BookmarkEditResponse.Builderbuilder()Creates a builder forBookmarkEditResponse.static BookmarkEditResponsecopyOf(BookmarkEditResponseIF instance) Creates an immutable copy of aBookmarkEditResponseIFvalue.booleanThis instance is equal to all instances ofBookmarkEditResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,bookmark.booleanisOk()toString()Prints the immutable valueBookmarkEditResponsewith attribute values.final BookmarkEditResponsewithBookmark(Bookmark value) Copy the current immutable object by setting a value for thebookmarkattribute.final BookmarkEditResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final BookmarkEditResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final BookmarkEditResponsewithResponseMetadata(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
-
getBookmark
- Specified by:
getBookmarkin interfaceBookmarkEditResponseIF- Returns:
- The value of the
bookmarkattribute
-
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 BookmarkEditResponse 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
-
withBookmark
Copy the current immutable object by setting a value for thebookmarkattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bookmark- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofBookmarkEditResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,bookmark. -
toString
Prints the immutable valueBookmarkEditResponsewith attribute values. -
copyOf
Creates an immutable copy of aBookmarkEditResponseIFvalue. 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 BookmarkEditResponse instance
-
builder
Creates a builder forBookmarkEditResponse.BookmarkEditResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setBookmark(com.hubspot.slack.client.models.bookmarks.Bookmark) // requiredbookmark.build();- Returns:
- A new BookmarkEditResponse builder
-