# Subscriber

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

## withHardware(hardware)


Set the hardware attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **hardware** | `Hardware` | ❌ | optionals field |

### Retorna

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

{{% /notice %}}

---
## withId(id)


Set the id attribute

### Parámetros

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

### Retorna

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

{{% /notice %}}

---
## withName(name)


Set the name attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **name** | `string` | ❌ | optional field |

### Retorna

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

{{% /notice %}}

---
## withType(type)


Set the type attribute

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **type** | `string` | ❌ | optional field |

### Retorna

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

{{% /notice %}}

---

