A builder for Update objects.
Methods
Detailed documentation
build()
Builds the current update draft action response and validates it.
Return
Update — A validated draft action response.
Throws
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 |
|---|---|---|
send | Send | The enum that indicates whether or not the email sends after the update action. |
Return
Update — This object, for chaining.
setUpdateDraftBccRecipientsAction(updateDraftBccRecipientsAction)
Sets an action that updates the email Bcc recipients of a draft.
Parameters
| Name | Type | Description |
|---|---|---|
update | Update | The action that updates the draft Bcc recipients. |
Return
Update — This object, for chaining.
setUpdateDraftBodyAction(updateDraftBodyAction)
Set an action that updates the email body of a draft.
Parameters
| Name | Type | Description |
|---|---|---|
update | Update | The action that updates the draft body. |
Return
Update — This object, for chaining.
setUpdateDraftCcRecipientsAction(updateDraftCcRecipientsAction)
Sets an action that updates the Cc recipients of a draft.
Parameters
| Name | Type | Description |
|---|---|---|
update | Update | The action that updates the draft Cc recipients. |
Return
Update — This object, for chaining.
setUpdateDraftSubjectAction(updateDraftSubjectAction)
Sets an action that updates the subject line of a draft.
Parameters
| Name | Type | Description |
|---|---|---|
update | Update | The action that updates the subject line. |
Return
Update — This object, for chaining.
setUpdateDraftToRecipientsAction(updateDraftToRecipientsAction)
Sets an action that updates the To recipients of a draft.
Parameters
| Name | Type | Description |
|---|---|---|
update | Update | The action that updates the To recipients. |
Return
Update — This object, for chaining.