UpdateDraftActionResponseBuilder

A builder for `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response` objects.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#build()` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response` | Builds the current update draft action response and validates it. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#setSendStatus(SendStatus)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` | Sets the enum field that determines whether or not the email sends after the update action. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#setUpdateDraftBccRecipientsAction(UpdateDraftBccRecipientsAction)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` | Sets an action that updates the email Bcc recipients of a draft. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#setUpdateDraftBodyAction(UpdateDraftBodyAction)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` | Set an action that updates the email body of a draft. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#setUpdateDraftCcRecipientsAction(UpdateDraftCcRecipientsAction)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` | Sets an action that updates the Cc recipients of a draft. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#setUpdateDraftSubjectAction(UpdateDraftSubjectAction)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` | Sets an action that updates the subject line of a draft. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#setUpdateDraftToRecipientsAction(UpdateDraftToRecipientsAction)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` | Sets an action that updates the To recipients of a draft. |

## Detailed documentation

### `build()`

Builds the current update draft action response and validates it.

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response` --- A validated draft action response.

#### Throws


[`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) --- if the constructed UpdateDraftActionResponse isn't valid.

*** ** * ** ***

### `setSendStatus(sendStatus)`

Sets the enum field that determines whether or not the email sends after the update action.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `sendStatus` | `https://developers.google.com/apps-script/reference/add-ons-response-service/send-status` | The enum that indicates whether or not the email sends after the update action. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` --- This object, for chaining.

*** ** * ** ***

### `setUpdateDraftBccRecipientsAction(updateDraftBccRecipientsAction)`

Sets an action that updates the email Bcc recipients of a draft.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `updateDraftBccRecipientsAction` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-bcc-recipients-action` | The action that updates the draft Bcc recipients. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` --- This object, for chaining.

*** ** * ** ***

### `setUpdateDraftBodyAction(updateDraftBodyAction)`

Set an action that updates the email body of a draft.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `updateDraftBodyAction` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-body-action` | The action that updates the draft body. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` --- This object, for chaining.

*** ** * ** ***

### `setUpdateDraftCcRecipientsAction(updateDraftCcRecipientsAction)`

Sets an action that updates the Cc recipients of a draft.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `updateDraftCcRecipientsAction` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-cc-recipients-action` | The action that updates the draft Cc recipients. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` --- This object, for chaining.

*** ** * ** ***

### `setUpdateDraftSubjectAction(updateDraftSubjectAction)`

Sets an action that updates the subject line of a draft.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `updateDraftSubjectAction` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-subject-action` | The action that updates the subject line. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` --- This object, for chaining.

*** ** * ** ***

### `setUpdateDraftToRecipientsAction(updateDraftToRecipientsAction)`

Sets an action that updates the To recipients of a draft.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `updateDraftToRecipientsAction` | `https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-to-recipients-action` | The action that updates the To recipients. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response-builder#` --- This object, for chaining.