# ThermostatTrait.AddThermostatSuggestionCommand.Request

# ThermostatTrait.AddThermostatSuggestionCommand.Request


```
class ThermostatTrait.AddThermostatSuggestionCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the AddThermostatSuggestion command.

## 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/ThermostatTrait.AddThermostatSuggestionCommand.Request.CommandFields : 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 command's request fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AddThermostatSuggestionCommand.Request#Request(kotlin.ByteArray,kotlin.UInt,kotlin.UShort)( presetHandle: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html, effectiveTime: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?, expirationInMinutes: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html )` Creates a request payload for the AddThermostatSuggestion command. |

| ### 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/ThermostatTrait.AddThermostatSuggestionCommand.Request#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/ThermostatTrait.AddThermostatSuggestionCommand.Request#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-int/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AddThermostatSuggestionCommand.Request#effectiveTime()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AddThermostatSuggestionCommand.Request#expirationInMinutes()` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AddThermostatSuggestionCommand.Request#presetHandle()` |

## Public constructors

### Request

```
Request(
    presetHandle: ByteArray = ByteArray(0),
    effectiveTime: UInt? = null,
    expirationInMinutes: UShort
)
```

Creates a request payload for the AddThermostatSuggestion command.

## 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

### effectiveTime

```
val effectiveTime: UInt?
```

### expirationInMinutes

```
val expirationInMinutes: UShort
```

### presetHandle

```
val presetHandle: ByteArray
```