# ClimateProfileRequest.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/ClimateProfileRequest.java+class:androidx.car.app.hardware.climate.ClimateProfileRequest.Builder) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***


```
public final class ClimateProfileRequest.Builder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest.Builder#Builder()()` Creates an instance of `https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest.Builder`. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest.Builder` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest.Builder#addClimateProfileFeatures(androidx.car.app.hardware.climate.CarClimateFeature...)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html CarClimateFeature[] features)` Adds the given CarClimateFeatures in the request. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest.Builder#build()()` Constructs the `https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest` defined by this builder. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest.Builder` | `https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest.Builder#setAllClimateProfiles()()` Adds all CarClimateFeatures in the request by enabling all profiles. |

## Public constructors

### Builder

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

```
public Builder()
```

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

## Public methods

### addClimateProfileFeatures

```
public @NonNull ClimateProfileRequest.Builder addClimateProfileFeatures(@NonNull CarClimateFeature[] features)
```

Adds the given CarClimateFeatures in the request.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html CarClimateFeature[] features` | CarClimateFeatures indicates the features the application is interested in |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if the feature flag is not one of ClimateProfileFeatures |

### build

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

```
public @NonNull ClimateProfileRequest build()
```

Constructs the `https://developer.android.com/reference/androidx/car/app/hardware/climate/ClimateProfileRequest` defined by this builder.

### setAllClimateProfiles

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

```
public @NonNull ClimateProfileRequest.Builder setAllClimateProfiles()
```

Adds all CarClimateFeatures in the request by enabling all profiles.