# Power Supply

This is a base object that allows the user to create a Datapoint.

## withBatteryChargeLevelPercentage(percentage)


Set the BatteryChargeLevel percentage attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **percentage** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `PowerSupply`
<br>

{{% /notice %}}

---
## withBatteryChargeLevelStatus(status)


Set the battery status attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **status** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `PowerSupply`
<br>

{{% /notice %}}

---
## withBatteryChargeLevelTrend(trend)


Set the trend attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **trend** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `PowerSupply`
<br>

{{% /notice %}}

---
## withOutageDate(outageDate)


Set the OutageDate attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **outageDate** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `PowerSupply`
<br>

{{% /notice %}}

---
## withOutageDuration(duration)


Set the duration attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **duration** | `number` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `PowerSupply`
<br>

{{% /notice %}}

---
## withSource(source)


Set the source attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **source** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `PowerSupply`
<br>

{{% /notice %}}

---
## withStatus(status)


Set the status attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **status** | `string` | ❌ | optionals field |

### Retorna

{{% notice tip %}}
**Tipo:** `PowerSupply`
<br>

{{% /notice %}}

---

