# DeviceEnergyManagementTrait.ModifyForecastRequestCommand.Request

# DeviceEnergyManagementTrait.ModifyForecastRequestCommand.Request


```
class DeviceEnergyManagementTrait.ModifyForecastRequestCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the ModifyForecastRequest 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/DeviceEnergyManagementTrait.ModifyForecastRequestCommand.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/DeviceEnergyManagementTrait.ModifyForecastRequestCommand.Request#Request(kotlin.UInt,kotlin.collections.List,com.google.home.matter.standard.DeviceEnergyManagementTrait.AdjustmentCauseEnum)( forecastId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, slotAdjustments: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.SlotAdjustmentStruct>, cause: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.AdjustmentCauseEnum )` Creates a request payload for the ModifyForecastRequest 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/DeviceEnergyManagementTrait.ModifyForecastRequestCommand.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/DeviceEnergyManagementTrait.ModifyForecastRequestCommand.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/standard/DeviceEnergyManagementTrait.AdjustmentCauseEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.ModifyForecastRequestCommand.Request#cause()` The cause of the request from the EMS. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.ModifyForecastRequestCommand.Request#forecastId()` The ID of the forecast to modify. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.SlotAdjustmentStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.ModifyForecastRequestCommand.Request#slotAdjustments()` A list of `slotAdjustment` parameters that should be modified in the corresponding forecast. |

## Public constructors

### Request

```
Request(
    forecastId: UInt,
    slotAdjustments: List<DeviceEnergyManagementTrait.SlotAdjustmentStruct> = emptyList(),
    cause: DeviceEnergyManagementTrait.AdjustmentCauseEnum = AdjustmentCauseEnum.LocalOptimization
)
```

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

### cause

```
val cause: DeviceEnergyManagementTrait.AdjustmentCauseEnum
```

The cause of the request from the EMS.

### forecastId

```
val forecastId: UInt
```

The ID of the forecast to modify.

### slotAdjustments

```
val slotAdjustments: List<DeviceEnergyManagementTrait.SlotAdjustmentStruct>
```

A list of `slotAdjustment` parameters that should be modified in the corresponding forecast.