# EnumConstraint

# EnumConstraint


```
class EnumConstraint<T : Enum<*>> : Constraint
```

<br />

*** ** * ** ***

Represents possible values a field can take.

## Summary

| ### Public constructors |
|---|
| `<T : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html<*>> https://developers.home.google.com/reference/kotlin/com/google/home/automation/EnumConstraint#EnumConstraint(kotlin.collections.Set)(allowedSet: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html<T>)` Create an `EnumConstraint` instance. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html<T>` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/EnumConstraint#allowedSet()` The allowed values. |

## Public constructors

### EnumConstraint

```
<T : Enum<*>> EnumConstraint(allowedSet: Set<T>)
```

Create an `EnumConstraint` instance.

## Public properties

### allowedSet

```
val allowedSet: Set<T>
```

The allowed values.