Class BookmarksEditParams

java.lang.Object
com.hubspot.slack.client.methods.params.bookmarks.BookmarksEditParams
All Implemented Interfaces:
HasChannel, BookmarksEditParamsIF

@Generated(from="BookmarksEditParamsIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class BookmarksEditParams extends Object implements BookmarksEditParamsIF
Immutable implementation of BookmarksEditParamsIF.

Use the builder to create immutable instances: BookmarksEditParams.builder().

  • Method Details

    • getChannelId

      public String getChannelId()
      Specified by:
      getChannelId in interface HasChannel
      Returns:
      The value of the channelId attribute
    • getChannel

      public String getChannel()
      Specified by:
      getChannel in interface BookmarksEditParamsIF
      Returns:
      The computed-at-construction value of the channel attribute
    • getBookmarkId

      public String getBookmarkId()
      Specified by:
      getBookmarkId in interface BookmarksEditParamsIF
      Returns:
      The value of the bookmarkId attribute
    • getEmoji

      public Optional<String> getEmoji()
      Specified by:
      getEmoji in interface BookmarksEditParamsIF
      Returns:
      The value of the emoji attribute
    • getLink

      public Optional<String> getLink()
      Specified by:
      getLink in interface BookmarksEditParamsIF
      Returns:
      The value of the link attribute
    • getTitle

      public Optional<String> getTitle()
      Specified by:
      getTitle in interface BookmarksEditParamsIF
      Returns:
      The value of the title attribute
    • withChannelId

      public final BookmarksEditParams withChannelId(String value)
      Copy the current immutable object by setting a value for the channelId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for channelId
      Returns:
      A modified copy or the this object
    • withBookmarkId

      public final BookmarksEditParams withBookmarkId(String value)
      Copy the current immutable object by setting a value for the bookmarkId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for bookmarkId
      Returns:
      A modified copy or the this object
    • withEmoji

      public final BookmarksEditParams withEmoji(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional emoji attribute.
      Parameters:
      value - The value for emoji, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withEmoji

      public final BookmarksEditParams withEmoji(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the emoji attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for emoji
      Returns:
      A modified copy or this if not changed
    • withLink

      public final BookmarksEditParams withLink(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional link attribute.
      Parameters:
      value - The value for link, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withLink

      public final BookmarksEditParams withLink(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the link attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for link
      Returns:
      A modified copy or this if not changed
    • withTitle

      public final BookmarksEditParams withTitle(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional title attribute.
      Parameters:
      value - The value for title, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withTitle

      public final BookmarksEditParams withTitle(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the title attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for title
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of BookmarksEditParams that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: channelId, channel, bookmarkId, emoji, link, title.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value BookmarksEditParams with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static BookmarksEditParams copyOf(BookmarksEditParamsIF instance)
      Creates an immutable copy of a BookmarksEditParamsIF value. 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 BookmarksEditParams instance
    • builder

      public static BookmarksEditParams.Builder builder()
      Creates a builder for BookmarksEditParams.
       BookmarksEditParams.builder()
          .setChannelId(String) // required channelId
          .setBookmarkId(String) // required bookmarkId
          .setEmoji(Optional<String>) // optional emoji
          .setLink(Optional<String>) // optional link
          .setTitle(Optional<String>) // optional title
          .build();
       
      Returns:
      A new BookmarksEditParams builder