# OccupancySensingTrait.HoldTimeLimitsStruct


```
class OccupancySensingTrait.HoldTimeLimitsStruct : ClusterStruct
```

<br />

*** ** * ** ***

Provides information on the server's supported values for the holdTime attribute.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OccupancySensingTrait.HoldTimeLimitsStruct.StructFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OccupancySensingTrait.HoldTimeLimitsStruct#HoldTimeLimitsStruct(kotlin.UShort,kotlin.UShort,kotlin.UShort)( holdTimeMin: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, holdTimeMax: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, holdTimeDefault: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html )` Creates the HoldTimeLimitsStruct class. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OccupancySensingTrait.HoldTimeLimitsStruct#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OccupancySensingTrait.HoldTimeLimitsStruct#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OccupancySensingTrait.HoldTimeLimitsStruct#holdTimeDefault()` The default value for the holdTime attribute, in seconds. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OccupancySensingTrait.HoldTimeLimitsStruct#holdTimeMax()` The maximum supported value for the holdTime attribute, in seconds. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/OccupancySensingTrait.HoldTimeLimitsStruct#holdTimeMin()` The minimum supported value for the holdTime attribute, in seconds. |

## Public constructors

### HoldTimeLimitsStruct

```
HoldTimeLimitsStruct(
    holdTimeMin: UShort,
    holdTimeMax: UShort,
    holdTimeDefault: UShort
)
```

Creates the HoldTimeLimitsStruct class.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### holdTimeDefault

```
val holdTimeDefault: UShort
```

The default value for the holdTime attribute, in seconds.

### holdTimeMax

```
val holdTimeMax: UShort
```

The maximum supported value for the holdTime attribute, in seconds.

### holdTimeMin

```
val holdTimeMin: UShort
```

The minimum supported value for the holdTime attribute, in seconds.