# EnergyEvseTrait.EnableChargingCommand.Request

# EnergyEvseTrait.EnableChargingCommand.Request


```
class EnergyEvseTrait.EnableChargingCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the EnableCharging 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/EnergyEvseTrait.EnableChargingCommand.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/EnergyEvseTrait.EnableChargingCommand.Request#Request(kotlin.UInt,kotlin.Long,kotlin.Long)( chargingEnabledUntil: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html?, minimumChargeCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html, maximumChargeCurrent: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html )` Creates a request payload for the EnableCharging 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/EnergyEvseTrait.EnableChargingCommand.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/EnergyEvseTrait.EnableChargingCommand.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/EnergyEvseTrait.EnableChargingCommand.Request#chargingEnabledUntil()` The time, in UTC, when charging becomes disabled. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnableChargingCommand.Request#maximumChargeCurrent()` The maximum current, in milliamps, that the EVSE can deliver to the electric vehicle. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/EnergyEvseTrait.EnableChargingCommand.Request#minimumChargeCurrent()` The minimum current, in milliamps, that the EVSE can deliver to the electric vehicle. |

## Public constructors

### Request

```
Request(
    chargingEnabledUntil: UInt? = null,
    minimumChargeCurrent: Long = 0,
    maximumChargeCurrent: Long = 0
)
```

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

### chargingEnabledUntil

```
val chargingEnabledUntil: UInt?
```

The time, in UTC, when charging becomes disabled. If the value is in the past, charging is disabled. If the value is null, charging is permanently enabled.

### maximumChargeCurrent

```
val maximumChargeCurrent: Long
```

The maximum current, in milliamps, that the EVSE can deliver to the electric vehicle.

### minimumChargeCurrent

```
val minimumChargeCurrent: Long
```

The minimum current, in milliamps, that the EVSE can deliver to the electric vehicle.