# MicrowaveOvenControlTrait.SetCookingParametersCommand.Request

# MicrowaveOvenControlTrait.SetCookingParametersCommand.Request


```
class MicrowaveOvenControlTrait.SetCookingParametersCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the SetCookingParameters 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/MicrowaveOvenControlTrait.SetCookingParametersCommand.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/MicrowaveOvenControlTrait.SetCookingParametersCommand.Request#Request(com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( cookMode: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>, cookTime: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>, powerSetting: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>, wattSettingIndex: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>, startAfterSetting: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html> )` Creates a request payload for the SetCookingParameters 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/MicrowaveOvenControlTrait.SetCookingParametersCommand.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/MicrowaveOvenControlTrait.SetCookingParametersCommand.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://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.SetCookingParametersCommand.Request#cookMode()` The value to which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenModeTrait.Attributes#currentMode()` attribute should be set. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.SetCookingParametersCommand.Request#cookTime()` The cook time associated with the operation of the device. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.SetCookingParametersCommand.Request#powerSetting()` The power setting associated with the operation of the device. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.SetCookingParametersCommand.Request#startAfterSetting()` Indicates whether or not the oven should be started when the command is received. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.SetCookingParametersCommand.Request#wattSettingIndex()` The value to which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#selectedWattIndex()` attribute is set. |

## Public constructors

### Request

```
Request(
    cookMode: OptionalValue<UByte> = OptionalValue.absent(),
    cookTime: OptionalValue<UInt> = OptionalValue.absent(),
    powerSetting: OptionalValue<UByte> = OptionalValue.absent(),
    wattSettingIndex: OptionalValue<UByte> = OptionalValue.absent(),
    startAfterSetting: OptionalValue<Boolean> = OptionalValue.absent()
)
```

Creates a request payload for the SetCookingParameters 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

### cookMode

```
val cookMode: OptionalValue<UByte>
```

The value to which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenModeTrait.Attributes#currentMode()` attribute should be set.

### cookTime

```
val cookTime: OptionalValue<UInt>
```

The cook time associated with the operation of the device.

### powerSetting

```
val powerSetting: OptionalValue<UByte>
```

The power setting associated with the operation of the device.

### startAfterSetting

```
val startAfterSetting: OptionalValue<Boolean>
```

Indicates whether or not the oven should be started when the command is received.

### wattSettingIndex

```
val wattSettingIndex: OptionalValue<UByte>
```

The value to which the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/MicrowaveOvenControlTrait.Attributes#selectedWattIndex()` attribute is set.