# ClimateStateRequest.Builder

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/hardware/climate/ClimateStateRequest.java+class:androidx.car.app.hardware.climate.ClimateStateRequest.Builder) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***


```
class ClimateStateRequest.Builder<T>
```

<br />

*** ** * ** ***

A builder of `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest`

| Parameters |
|---|---|
| `<T>` | data type of request value |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest.Builder#Builder(int,T)(requestedFeature: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, requestedValue: T!)` Creates an instance of `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest.Builder`. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest.Builder<T!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest.Builder#addCarZones(androidx.car.app.hardware.common.CarZone)(carZone: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone)` Adds CarZone into `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest`. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest<T!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest.Builder#build()()` Constructs a `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest` defined by this builder |

## Public constructors

### Builder

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
Builder(requestedFeature: Int, requestedValue: T!)
```

Creates an instance of `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest.Builder`.

| Parameters |
|---|---|
| `requestedFeature: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | one of integer flags in ClimateProfileRequest.ClimateProfileFeature |
| `requestedValue: T!` | the requested value for the feature |

## Public functions

### addCarZones

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun addCarZones(carZone: CarZone): ClimateStateRequest.Builder<T!>
```

Adds CarZone into `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest`.

Without calling this method, the request will contain CarZone#CAR_ZONE_GLOBAL.

| Parameters |
|---|---|
| `carZone: https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarZone` | the CarZone which the set operation will be applied |

### build

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
fun build(): ClimateStateRequest<T!>
```

Constructs a `https://developer.android.com/reference/kotlin/androidx/car/app/hardware/climate/ClimateStateRequest` defined by this builder