Cardinality class

A Cardinality condition for the Waiter resource. A cardinality condition is met when the number of variables under a specified path prefix reaches a predefined number. For example, if you set a Cardinality condition where the path is set to /foo and the number of paths is set to 2, the following variables would meet the condition in a RuntimeConfig resource: + /foo/variable1 = "value1" + /foo/variable2 = "value2" + /bar/variable3 = "value3" It would not satisfy the same condition with the number set to 3, however, because there is only 2 paths that start with /foo. Cardinality conditions are recursive; all subtrees under the specific path prefix are counted.

Constructors

Cardinality({Input<int>? number, Input<String>? path})
Creates a new Cardinality. number The number variables under the path that must exist to meet this condition. Defaults to 1 if not specified. path The root of the variable subtree to monitor. For example, /foo.
const
Cardinality.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
number → Input<int>?
The number variables under the path that must exist to meet this condition. Defaults to 1 if not specified.
final
path → Input<String>?
The root of the variable subtree to monitor. For example, /foo.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited