# CarPowerPolicyFilter.Builder

Summary:[Ctors](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder#pubctors)\|[Methods](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder#inhmethods)  

# CarPowerPolicyFilter.Builder

`
public
static
final

class
CarPowerPolicyFilter.Builder
`  
`

extends Object


``


`

|---|---------------------------------------------------------|
| java.lang.Object                                           ||
| ↳ | android.car.hardware.power.CarPowerPolicyFilter.Builder |

<br />

*** ** * ** ***

A builder for[CarPowerPolicyFilter](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter)

## Summary

|                                                     ### Public constructors                                                     ||
|------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Builder](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder#Builder())`() ` |

|                                                                                                                                                      ### Public methods                                                                                                                                                       ||
|------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[CarPowerPolicyFilter](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter)                 | ` `[build](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder#build())`() ` Builds the instance.                                             |
| ` `[CarPowerPolicyFilter.Builder](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder) | ` `[setComponents](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder#setComponents(int[]))`(int... value) ` List of components of interest. |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### Builder

```
public Builder ()
```

<br />

<br />

## Public methods

### build

```
public CarPowerPolicyFilter build ()
```

Builds the instance. This builder should not be touched after calling this!

<br />

|                                                         Returns                                                         ||
|-----------------------------------------------------------------------------------------------------------------|--------|
| [CarPowerPolicyFilter](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter) | <br /> |

### setComponents

```
public CarPowerPolicyFilter.Builder setComponents (int... value)
```

List of components of interest. Components are one of`android.frameworks.automotive.powerpolicy.PowerComponent`.

<br />

|      Parameters       ||
|---------|--------------|
| `value` | `int` <br /> |

|                                                                 Returns                                                                 ||
|---------------------------------------------------------------------------------------------------------------------------------|--------|
| [CarPowerPolicyFilter.Builder](https://developer.android.com/reference/android/car/hardware/power/CarPowerPolicyFilter.Builder) | <br /> |