AI-generated Key Takeaways
-
UpdateDraftActionResponseBuilder is used to build UpdateDraftActionResponse objects.
-
This builder allows setting actions to update the Bcc, body, Cc, subject, and To recipients of an email draft.
-
The
build()method finalizes and validates the constructed response.
A builder for Update
objects.
Methods
| Method | Return type | Brief description |
|---|---|---|
Update
|
Builds the current update draft action response and validates it. | |
Update
|
Sets an action that updates the email Bcc recipients of a draft. | |
Update
|
Set an action that updates the email body of a draft. | |
Update
|
Sets an action that updates the Cc recipients of a draft. | |
Update
|
Sets an action that updates the subject line of a draft. | |
Update
|
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
Update
— A validated draft action response.
Throws
Error
— if the constructed UpdateDraftActionResponse isn't valid.
set
Update
Draft
Bcc
Recipients
Action(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.
set
Update
Draft
Body
Action(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.
set
Update
Draft
Cc
Recipients
Action(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.
set
Update
Draft
Subject
Action(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.
set
Update
Draft
To
Recipients
Action(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.

