# ThermostatTrait.AtomicRequestCommand

# ThermostatTrait.AtomicRequestCommand


```
object ThermostatTrait.AtomicRequestCommand : CommandDescriptor
```

<br />

*** ** * ** ***

Begin, commit, or cancel an atomic write.

| See also |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatCommands#atomicRequest(com.google.home.matter.standard.ThermostatTrait.AtomicRequestTypeEnum,kotlin.collections.List,kotlin.Function1)` | Use this command from the `trait(Thermostat)` method. |

## Summary

| ### Nested types |
|---|
| `interface https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicRequestCommand.OptionalArgs` Optional arguments for the command AtomicRequestCommand Request |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicRequestCommand.Request : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The request payload for the AtomicRequest command. |
| `@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.AtomicRequestCommand.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. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicRequestCommand.Response : https://developers.home.google.com/reference/kotlin/com/google/home/ClusterStruct` The result of the atomic request. |
| `@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.AtomicRequestCommand.Response.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 response fields. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/Field?` | `@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.AtomicRequestCommand#getCommandRequestFieldByName(kotlin.String)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicRequestCommand#commandId()` Unique id corresponding to the command. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicRequestCommand#commandName()` Human-friendly name of the command. |

## Public functions

### getCommandRequestFieldByName

```
@HomeExperimentalGenericApi
open fun getCommandRequestFieldByName(name: String): Field?
```

## Public properties

### commandId

```
open val commandId: String
```

Unique id corresponding to the command.

### commandName

```
open val commandName: String
```

Human-friendly name of the command.