Enum ButtonStyle

java.lang.Object
java.lang.Enum<ButtonStyle>
com.hubspot.slack.client.models.actions.ButtonStyle
All Implemented Interfaces:
Serializable, Comparable<ButtonStyle>

public enum ButtonStyle extends Enum<ButtonStyle>
  • Enum Constant Details

    • DEFAULT

      public static final ButtonStyle DEFAULT
      Buttons will look simple.
    • PRIMARY

      public static final ButtonStyle PRIMARY
      Use this sparingly, when the button represents a key action to accomplish. You should probably only ever have one primary button within a set.
    • DANGER

      public static final ButtonStyle DANGER
      Use this when the consequence of the button click will result in the destruction of something, like a piece of data stored on your servers. Use even more sparingly than primary.
  • Method Details

    • values

      public static ButtonStyle[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ButtonStyle valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public static ButtonStyle get(String key) throws UnmappedKeyException
      Throws:
      UnmappedKeyException
    • find

      public static Optional<ButtonStyle> find(String key)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ButtonStyle>