Package com.atlan.model.structs
Class BadgeCondition
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.structs.AtlanStruct
com.atlan.model.structs.BadgeCondition
- All Implemented Interfaces:
Serializable
Detailed information about a condition used in coloring a custom metadata badge in Atlan.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
BadgeCondition.BadgeConditionBuilder<C extends BadgeCondition,
B extends BadgeCondition.BadgeConditionBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.structs.AtlanStruct
AtlanStruct.AtlanStructBuilder<C extends AtlanStruct,
B extends AtlanStruct.AtlanStructBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionstatic BadgeCondition.BadgeConditionBuilder<?,
?> builder()
protected boolean
boolean
Color (in RGB hex, with a # prefix) to use when custom metadata attribute's content matches the value through the comparison operator.Comparison operator to use when comparing a custom metadata attribute's value.Value against which to compare the custom metadata attribute's content.Fixed typeName for BadgeCondition.int
hashCode()
static BadgeCondition
of
(BadgeComparisonOperator operator, boolean value, BadgeConditionColor color) Build a new condition for a badge on a boolean-based custom metadata property.static BadgeCondition
of
(BadgeComparisonOperator operator, boolean value, String color) Build a new condition for a badge on a boolean-based custom metadata property.static BadgeCondition
of
(BadgeComparisonOperator operator, Number value, BadgeConditionColor color) Build a new condition for a badge on a number-based custom metadata property.static BadgeCondition
of
(BadgeComparisonOperator operator, Number value, String color) Build a new condition for a badge on a number-based custom metadata property.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)).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)).toString()
Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
BadgeCondition
-
-
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 asabc123
and you retrieve this value back from the badge condition, you will receive back"abc123"
.- Parameters:
operator
- the comparison operator for the conditionvalue
- the value to match against the comparison operatorcolor
- the color to use when a value matches (from the standard colors available in the UI)- Returns:
- the badge condition with these criteria
-
of
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 asabc123
and you retrieve this value back from the badge condition, you will receive back"abc123"
.- Parameters:
operator
- the comparison operator for the conditionvalue
- the value to match against the comparison operatorcolor
- 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 conditionvalue
- the value to match against the comparison operatorcolor
- the color to use when a value matches (from the standard colors available in the UI)- Returns:
- the badge condition with these criteria
-
of
Build a new condition for a badge on a number-based custom metadata property.- Parameters:
operator
- the comparison operator for the conditionvalue
- the value to match against the comparison operatorcolor
- 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 conditionvalue
- the value to match against the comparison operatorcolor
- the color to use when a value matches (from the standard colors available in the UI)- Returns:
- the badge condition with these criteria
-
of
Build a new condition for a badge on a boolean-based custom metadata property.- Parameters:
operator
- the comparison operator for the conditionvalue
- the value to match against the comparison operatorcolor
- 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
-
toBuilder
-
getBadgeConditionOperator
Comparison operator to use when comparing a custom metadata attribute's value. -
getBadgeConditionValue
Value against which to compare the custom metadata attribute's content. -
getBadgeConditionColorhex
Color (in RGB hex, with a # prefix) to use when custom metadata attribute's content matches the value through the comparison operator. -
equals
- Overrides:
equals
in classAtlanStruct
-
canEqual
- Overrides:
canEqual
in classAtlanStruct
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanStruct
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-
getTypeName
Fixed typeName for BadgeCondition.- Overrides:
getTypeName
in classAtlanStruct
-