Class BadgeCondition

All Implemented Interfaces:
Serializable

@Generated("com.atlan.generators.ModelGeneratorV2") public class BadgeCondition extends AtlanStruct
Detailed information about a condition used in coloring a custom metadata badge in Atlan.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • of

      public static BadgeCondition of(BadgeComparisonOperator operator, String value, BadgeConditionColor color)
      Build a new condition for a badge on a string-based custom metadata property (including options (enumerations)). Note that this will wrap the value itself in double-quotes, as this is needed to properly set the value for the badge. So for example if you set the value as abc123 and you retrieve this value back from the badge condition, you will receive back "abc123".
      Parameters:
      operator - the comparison operator for the condition
      value - the value to match against the comparison operator
      color - the color to use when a value matches (from the standard colors available in the UI)
      Returns:
      the badge condition with these criteria
    • of

      public static BadgeCondition of(BadgeComparisonOperator operator, String value, String color)
      Build a new condition for a badge on a string-based custom metadata property (including options (enumerations)). Note that this will wrap the value itself in double-quotes, as this is needed to properly set the value for the badge. So for example if you set the value as abc123 and you retrieve this value back from the badge condition, you will receive back "abc123".
      Parameters:
      operator - the comparison operator for the condition
      value - the value to match against the comparison operator
      color - the color to use when a value matches (any valid RGB hex string of the form #ffffff)
      Returns:
      the badge condition with these criteria
    • of

      public static BadgeCondition of(BadgeComparisonOperator operator, Number value, BadgeConditionColor color)
      Build a new condition for a badge on a number-based custom metadata property.
      Parameters:
      operator - the comparison operator for the condition
      value - the value to match against the comparison operator
      color - the color to use when a value matches (from the standard colors available in the UI)
      Returns:
      the badge condition with these criteria
    • of

      public static BadgeCondition of(BadgeComparisonOperator operator, Number value, String color)
      Build a new condition for a badge on a number-based custom metadata property.
      Parameters:
      operator - the comparison operator for the condition
      value - the value to match against the comparison operator
      color - the color to use when a value matches (any valid RGB hex string of the form #ffffff)
      Returns:
      the badge condition with these criteria
    • of

      public static BadgeCondition of(BadgeComparisonOperator operator, boolean value, BadgeConditionColor color)
      Build a new condition for a badge on a boolean-based custom metadata property.
      Parameters:
      operator - the comparison operator for the condition
      value - the value to match against the comparison operator
      color - the color to use when a value matches (from the standard colors available in the UI)
      Returns:
      the badge condition with these criteria
    • of

      public static BadgeCondition of(BadgeComparisonOperator operator, boolean value, String color)
      Build a new condition for a badge on a boolean-based custom metadata property.
      Parameters:
      operator - the comparison operator for the condition
      value - the value to match against the comparison operator
      color - the color to use when a value matches (any valid RGB hex string of the form #ffffff)
      Returns:
      the badge condition with these criteria
    • builder

      public static BadgeCondition.BadgeConditionBuilder<?,?> builder()
    • toBuilder

      public BadgeCondition.BadgeConditionBuilder<?,?> toBuilder()
    • getBadgeConditionOperator

      public BadgeComparisonOperator getBadgeConditionOperator()
      Comparison operator to use when comparing a custom metadata attribute's value.
    • getBadgeConditionValue

      public String getBadgeConditionValue()
      Value against which to compare the custom metadata attribute's content.
    • getBadgeConditionColorhex

      public String getBadgeConditionColorhex()
      Color (in RGB hex, with a # prefix) to use when custom metadata attribute's content matches the value through the comparison operator.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AtlanStruct
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AtlanStruct
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AtlanStruct
    • toString

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class AtlanObject
    • getTypeName

      public String getTypeName()
      Fixed typeName for BadgeCondition.
      Overrides:
      getTypeName in class AtlanStruct