Class ImChannel

java.lang.Object
com.hubspot.slack.client.models.channel.ImChannel
All Implemented Interfaces:
ImChannelIF

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

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

  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface ImChannelIF
      Returns:
      The value of the id attribute
    • getCreated

      public int getCreated()
      Specified by:
      getCreated in interface ImChannelIF
      Returns:
      The value of the created attribute
    • getIsIm

      public boolean getIsIm()
      Specified by:
      getIsIm in interface ImChannelIF
      Returns:
      The value of the isIm attribute
    • getIsOrgShared

      public boolean getIsOrgShared()
      Specified by:
      getIsOrgShared in interface ImChannelIF
      Returns:
      The value of the isOrgShared attribute
    • getUser

      public String getUser()
      Specified by:
      getUser in interface ImChannelIF
      Returns:
      The value of the user attribute
    • getIsOpen

      public boolean getIsOpen()
      Specified by:
      getIsOpen in interface ImChannelIF
      Returns:
      The value of the isOpen attribute
    • withId

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

      public final ImChannel withCreated(int value)
      Copy the current immutable object by setting a value for the created attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for created
      Returns:
      A modified copy or the this object
    • withIsIm

      public final ImChannel withIsIm(boolean value)
      Copy the current immutable object by setting a value for the isIm attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isIm
      Returns:
      A modified copy or the this object
    • withIsOrgShared

      public final ImChannel withIsOrgShared(boolean value)
      Copy the current immutable object by setting a value for the isOrgShared attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isOrgShared
      Returns:
      A modified copy or the this object
    • withUser

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

      public final ImChannel withIsOpen(boolean value)
      Copy the current immutable object by setting a value for the isOpen attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isOpen
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImChannel 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: id, created, isIm, isOrgShared, user, isOpen.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static ImChannel.Builder builder()
      Creates a builder for ImChannel.
       ImChannel.builder()
          .setId(String) // required id
          .setCreated(int) // required created
          .setIsIm(boolean) // required isIm
          .setIsOrgShared(boolean) // required isOrgShared
          .setUser(String) // required user
          .setIsOpen(boolean) // required isOpen
          .build();
       
      Returns:
      A new ImChannel builder