# ThermostatTrait.AtomicAttributeStatusStruct

# ThermostatTrait.AtomicAttributeStatusStruct


```
class ThermostatTrait.AtomicAttributeStatusStruct : ClusterStruct
```

<br />

*** ** * ** ***

The status of an attribute during an atomic write.

## 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/ThermostatTrait.AtomicAttributeStatusStruct.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/ThermostatTrait.AtomicAttributeStatusStruct#AtomicAttributeStatusStruct(kotlin.UInt,kotlin.UByte)(attributeId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html, statusCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html)` Creates the AtomicAttributeStatusStruct 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/ThermostatTrait.AtomicAttributeStatusStruct#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/ThermostatTrait.AtomicAttributeStatusStruct#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/ThermostatTrait.AtomicAttributeStatusStruct#attributeId()` The ID of the attribute. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ThermostatTrait.AtomicAttributeStatusStruct#statusCode()` The atomic status of an attribute. |

## Public constructors

### AtomicAttributeStatusStruct

```
AtomicAttributeStatusStruct(attributeId: UInt, statusCode: UByte)
```

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

### attributeId

```
val attributeId: UInt
```

The ID of the attribute.

### statusCode

```
val statusCode: UByte
```

The atomic status of an attribute.