Class SlackAppUninstalledEvent

java.lang.Object
com.hubspot.slack.client.models.events.app.SlackAppUninstalledEvent
All Implemented Interfaces:
SlackAppUninstalledEventIF, SlackEvent

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

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

  • Method Details

    • getType

      public SlackEventType getType()
      Specified by:
      getType in interface SlackEvent
      Returns:
      The value of the type attribute
    • withType

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

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

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

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

      public static SlackAppUninstalledEvent.Builder builder()
      Creates a builder for SlackAppUninstalledEvent.
       SlackAppUninstalledEvent.builder()
          .setType(com.hubspot.slack.client.models.events.SlackEventType) // required type
          .build();
       
      Returns:
      A new SlackAppUninstalledEvent builder