Class SlackTeamIcon

java.lang.Object
com.hubspot.slack.client.models.teams.SlackTeamIcon
All Implemented Interfaces:
SlackTeamIconIF

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

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

  • Method Details

    • getImage88

      public Optional<String> getImage88()
      Specified by:
      getImage88 in interface SlackTeamIconIF
      Returns:
      The value of the image88 attribute
    • getImageOriginal

      @Deprecated public Optional<String> getImageOriginal()
      Deprecated.
      Specified by:
      getImageOriginal in interface SlackTeamIconIF
      Returns:
      The value of the imageOriginal attribute
    • withImage88

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

      public final SlackTeamIcon withImage88(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the image88 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 image88
      Returns:
      A modified copy or this if not changed
    • withImageOriginal

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

      @Deprecated public final SlackTeamIcon withImageOriginal(Optional<String> optional)
      Deprecated.
      Copy the current immutable object by setting an optional value for the imageOriginal 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 imageOriginal
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of SlackTeamIcon 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: image88, imageOriginal.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static SlackTeamIcon copyOf(SlackTeamIconIF instance)
      Creates an immutable copy of a SlackTeamIconIF 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 SlackTeamIcon instance
    • builder

      public static SlackTeamIcon.Builder builder()
      Creates a builder for SlackTeamIcon.
       SlackTeamIcon.builder()
          .setImage88(Optional<String>) // optional image88
          .setImageOriginal(Optional<String>) // optional imageOriginal
          .build();
       
      Returns:
      A new SlackTeamIcon builder