# DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct


```
class DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct : ClusterStruct
```

<br />

*** ** * ** ***

Represents the power adjustment capability of the ESA.

## 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.PowerAdjustCapabilityStruct.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/DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct#PowerAdjustCapabilityStruct(kotlin.collections.List,com.google.home.matter.standard.DeviceEnergyManagementTrait.PowerAdjustReasonEnum)( powerAdjustCapability: 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.PowerAdjustStruct>?, cause: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.PowerAdjustReasonEnum )` Creates the PowerAdjustCapabilityStruct 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/DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct#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.PowerAdjustCapabilityStruct#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.PowerAdjustReasonEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct#cause()` The cause of the adjustment capability. |
| `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.PowerAdjustStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/DeviceEnergyManagementTrait.PowerAdjustCapabilityStruct#powerAdjustCapability()` Indicates how the ESA can be adjusted at the current time. |

## Public constructors

### PowerAdjustCapabilityStruct

```
PowerAdjustCapabilityStruct(
    powerAdjustCapability: List<DeviceEnergyManagementTrait.PowerAdjustStruct>? = null,
    cause: DeviceEnergyManagementTrait.PowerAdjustReasonEnum = PowerAdjustReasonEnum.NoAdjustment
)
```

Creates the PowerAdjustCapabilityStruct 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

### cause

```
val cause: DeviceEnergyManagementTrait.PowerAdjustReasonEnum
```

The cause of the adjustment capability.

### powerAdjustCapability

```
val powerAdjustCapability: List<DeviceEnergyManagementTrait.PowerAdjustStruct>?
```

Indicates how the ESA can be adjusted at the current time.