# Datastream

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

## withDatapoint(datapoint)


Add a datapoint in datapoints

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **datapoint** | `Datapoint` | ❌ | required field |

### Retorna

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

{{% /notice %}}

---
## withFeed(feed)


Set the feed attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withId(id)


Set the id attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **id** | `string` | ❌ | required field |

### Retorna

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

{{% /notice %}}

---

